[R] some questions about sympy (that is, rSymPy)
Gabor Grothendieck
ggrothendieck at gmail.com
Sat Apr 14 23:05:54 CEST 2012
On Fri, Apr 13, 2012 at 9:50 PM, Kjetil Halvorsen
<kjetilbrinchmannhalvorsen at gmail.com> wrote:
> I am experimenting with rSymPy, and it seems to work nice.
>
>
> However, I dislike the need to wrap all sympy expressions within
> quotes, it leads to ugly calls like
> library(rSymPy)
> Var("x,y,z")
> sympy("(x+y)**2")
> and so on.
Suggest you review the rSymPy home page which illustrates how to use
the Sym interface, e.g.
> library(rSymPy)
> x <- Var("x")
> y <- Var("y")
> (x+y)*(x+y)
[1] "(x + y)**2"
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list