Quantcast

calculus using R

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

calculus using R

ATANU
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??
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: calculus using R

David Winsemius

On Mar 21, 2010, at 11:26 AM, ATANU 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??

?D
?integrate
?pmax
?pmin
package:RYacas

Continuity? Limits? R is of necessity being run on discrete machines  
and R is not a symbolic algebra machine.

--
David.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: calculus using R

Gabor Grothendieck
In reply to this post by ATANU
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 <[hidden email]> 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.
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Loading...