[R] yacas

Gabor Grothendieck ggrothendieck at gmail.com
Wed May 6 00:59:09 CEST 2009


You haven't provided any code so we have no idea what
the problem is.   Make sure you have read the troubleshooting
sections on the home page?
http://ryacas.googlecode.com

Here is an example:

> library(Ryacas)
Loading required package: XML
> x <- Sym("x")
> Factor(x^2-1)
[1] "Starting Yacas!"
expression((x + 1) * (x - 1))


You can also try the rSymPy package.
Installation has fewer gotchas:

> library(rSymPy)
Loading required package: rJava
> sympy("var('x')") # define x to be symbolic
[1] "x"
> sympy("factor(x**2-1)")
[1] "-(1 + x)*(1 - x)"

See home page at http://rsympy.googlecode.com

On Tue, May 5, 2009 at 6:41 PM, Hassan Mohamed
<hassan_hany_fahmy at yahoo.com> wrote:
> Hi,
> as I find problems with yacas package...
> is there any R function equivalent to the yacas function "Factor" ?
> the factor function which i found in the R help is not the same.
> it doesn't factor an algebraic expression......
> thanks
> hassan
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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