[R] Deriv and integrate

tlorino@vet-alfort.fr tlorino at vet-alfort.fr
Thu Jul 4 16:32:26 CEST 2002

 Dear R users,

I would like to express a function (with only one argument) as the integrate of its derivate.
For example, for y=x^2, I would like something like

integrate(deriv(~x^2,"x", function(x) NULL, formal=T),0,2)

which would give me... 4.

Thank you,
École Nationale Vétérinaire d'Alfort - http://www.vet-alfort.fr,
Tél. 01 43 96 70 33
Mél. tlorino at vet-alfort.fr
Site personnel : http://daedale.free.fr

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list