[R] calculus using R

Gabor Grothendieck ggrothendieck at gmail.com
Sun Mar 21 21:45:18 CET 2010


Try this:

> library(Ryacas) # http://ryacas.googlecode.com
Loading required package: XML
>
> x <- Sym("x")
> h <- Sym("h")
>
> # limit
> Limit(1/(1-x), x, Infinity)
[1] "Starting Yacas!"
expression(0)
>
> # differentiation
> deriv(x^3, x)
expression(3 * x^2)
>
> # integration: indefinite and definite
> Integrate(x^3, x)
expression(x^4/4)
> Integrate(x^3, x, 0, 1)
expression(1/4)
>
> # mean value
> Limit((cos(x+h)-cos(x))/h, h, 0)
expression(-sin(x))
>
> # min/max
> Solve(deriv(x^2-x, x) == 0, x)
expression(list(x == 1/2))
>
> # continuity
> Limit(sin(x+h^2) - sin(x-h^2), h, 0)
expression(0)

On Sun, Mar 21, 2010 at 11:26 AM, ATANU <ata.sonu at gmail.com> wrote:
>
> can anyone suggest how can i do calculus
> (e.g.limit,differentiation,integrate,mean value theorem,definite
> integral,convergence,maxima minima of functions,checking continuity) using
> R??
> --
> View this message in context: http://n4.nabble.com/calculus-using-R-tp1676727p1676727.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list