[R] Ryacas behaving weird
francogrex
francogrex at mail.com
Thu Jan 24 16:18:24 CET 2008
There is either something wrong with either me or is Yacas/Ryacas doing odd
things. See below I ask to simpify an expression and the there's output! If
this is a simplification.. well.. Do you think there is something set wrong
somewhere. Thanks.
> library(Ryacas)
Loading required package: XML
> a=Sym("a")
> N=Sym("N")
> b=Sym("b")
> E=Sym("E")
>
> Simplify(
+ a * ((1/(b + E) - b/(b + E)^2)/(b/(b + E))) - N * ((1/(b + E) -
+ b/(b + E)^2)/(1 - (b/(b + E))))
+ )
[1] "Starting Yacas!"
expression((a * b^5 * E^2 + 5 * (a * b^4 * E^3) + 10 * (a * b^3 *
E^4) + 10 * (a * b^2 * E^5) + 5 * (a * b * E^6) + a * E^7 +
(-5 * (b^5 * E^2 * N) - b^6 * E * N - 10 * (b^4 * E^3 * N) -
10 * (b^3 * E^4 * N) - 5 * (b^2 * E^5 * N) - b * E^6 *
N))/(b^7 * E + 6 * (b^6 * E^2) + 15 * (b^5 * E^3) + 20 *
(b^4 * E^4) + 15 * (b^3 * E^5) + 6 * (b^2 * E^6) + b * E^7))
--
View this message in context: http://www.nabble.com/Ryacas-behaving-weird-tp15065744p15065744.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list