Re: [R] evaluation of equations from Ryacas

2013-06-19 Thread Gabor Grothendieck
On Wed, Jun 19, 2013 at 1:03 AM, Erin Hodgess wrote: > Hello again. > > Now I have the following: >> xx > [1] "Solve(1 - R/100==(2*y)/1,R)" >> yacas(xx) > expression(list(R == 100 * (1 - 2 * y/1))) >> Try the Ryacas Sym interface: > library(Ryacas) > > R <- Sym("R") > y <- Sym("y") > ans

Re: [R] evaluation of equations from Ryacas

2013-06-19 Thread William Dunlap
ject.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Søren Højsgaard > Sent: Wednesday, June 19, 2013 12:06 AM > To: Erin Hodgess; R help > Subject: Re: [R] evaluation of equations from Ryacas > > Dear Erin, > > Not exactly elegant, but > > > e<

Re: [R] evaluation of equations from Ryacas

2013-06-19 Thread Søren Højsgaard
n...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Erin Hodgess Sent: 19. juni 2013 07:03 To: R help Subject: [R] evaluation of equations from Ryacas Hello again. Now I have the following: > xx [1] "Solve(1 - R/100==(2*y)/1,R)" > yacas(xx) expression(list(R == 10

[R] evaluation of equations from Ryacas

2013-06-18 Thread Erin Hodgess
Hello again. Now I have the following: > xx [1] "Solve(1 - R/100==(2*y)/1,R)" > yacas(xx) expression(list(R == 100 * (1 - 2 * y/1))) > I would like to put in a value for y and obtain R. I've tried more stuff with eval and Eval, but no luck yet. Any suggestions would be much appreciated.