Hello,
First,
I would like to congratulations for very cool package! It's very
nice
idea!...
Secondly,
Is there a way to send R'objects (variables) to yacas and make
symbolic
operations??
for example:
d - diag(3)
a - A
yacas( d * a )
Thanks,
Cleber Borges
Gabor Grothendieck wrote:
Its pretty limited right now but you can do this:
library(Ryacas)
d - List(List(1, 0, 0), List(0, 1, 0), List(0, 0, 1))
a - Sym(a)
a * d
expression(list(list(a, 0, 0), list(0, a, 0), list(0, 0, a)))
PrettyForm(%)
/\
| ( a ) ( 0 ) ( 0 ) |
||
| ( 0 ) (
Here is a slightly shorter way to do it although it involves passing
a yacas string directly:
yacas(a * Identity(3))
expression(list(list(a, 0, 0), list(0, a, 0), list(0, 0, a)))
PrettyForm(%)
/\
| ( a ) ( 0 ) ( 0 ) |
||
| ( 0 ) ( a ) ( 0 ) |
|
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions