Reputation: 121
I've been searching on R help for a primitive function, because in my case I can't do it with integrate
function, is there any way to find a primitive function (antiderivative)?
Upvotes: 0
Views: 136
Reputation: 32351
If it is a one-off, you can use a computer-algebra system (Maxima, Maple, Wolfram Alpha, etc.).
If you want to do it from R, you can use the Ryacas
package.
For instance, yacas(expression(integrate(sin)))
returns -Cos(x)
.
Upvotes: 3
Reputation: 26647
There is no analytical method to generate F where F'=f and f is known but you can always approximate a value for a specific bounds when the bounds is known using the trapezoid approximation for instance.
Upvotes: 0