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
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<
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
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.
4 matches
Mail list logo