[R] evaluation of equations from Ryacas
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Jun 19 18:29:31 CEST 2013
On Wed, Jun 19, 2013 at 1:03 AM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Hello again.
>
> Now I have the following:
>> xx
> [1] "Solve(1 - R/100==(2*y)/10000,R)"
>> yacas(xx)
> expression(list(R == 100 * (1 - 2 * y/10000)))
>>
Try the Ryacas Sym interface:
> library(Ryacas)
>
> R <- Sym("R")
> y <- Sym("y")
> ans <- Solve(R == 100 * (1 - 2 * y / 10000), R)
> ans
expression(list(R == 100 * (1 - 2 * y/10000)))
> Set(y, 3)
expression(3)
> ans
expression(list(R == 4997/50))
> Set(y, 4)
expression(4)
> ans
expression(list(R == 2498/25))
--
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