[R-SIG-Finance] Symbolic computation in R

Gabor Grothendieck ggrothendieck at gmail.com
Sun Jul 6 23:08:29 CEST 2008


The Ryacas package provides an interface to the yacas symbolic
algebra system.  yacas is not very sophisticated when it comes to
integration but for the very simplest of cases it should be ok:
For more info see home page at
http://ryacas.googlecode.com

> library(Ryacas)
Loading required package: XML
> x <- Sym("x")
> Integrate(x*x, x)
[1] "Starting Yacas!"
expression(x^3/3)
> y <- Sym("y")
> Solve(2*y == x, x)
expression(list(x == 2 * y))
> detach()
Thank you for using yacas


On Sun, Jul 6, 2008 at 4:57 PM, el_eli at gmx.de <el_eli at gmx.de> wrote:
> Hi,
>
> I'm a R-newbie and not very familiar with the concepts of numeric and
> symbolic programming environments.
> As an undergraduate student i have to compute a lot of symbolic stuff like
> partial derivatives or integrals.
> For that purpose Maple or Mathematica are quite good tools, but i want to
> stick to R.
> The following functions seem to be the ones to get symbolic derivatives:
> D (expr, name)
> deriv(expr, ...)
> deriv3(expr, ...)
> But i could'nt find any other functions for symbolic computation in R.
> So here are my questions:
>
> Is there a function to perform a symbolic integration?
>
> Is there a way to solve an expresion like 2*x=y for x symbolically?
>
> Best,
>
> Eli
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



More information about the R-SIG-Finance mailing list