Marco
Marco

Reputation: 121

Find a primitive function for the antiderivative?

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

Answers (2)

Vincent Zoonekynd
Vincent Zoonekynd

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

Niklas Rosencrantz
Niklas Rosencrantz

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

Related Questions