[R] general inverse solver?

Gabor Grothendieck ggrothendieck at gmail.com
Tue Feb 10 03:46:10 CET 2009


The forms of equations are limited but its not limited to just one:

> library(Ryacas)
Loading required package: XML
> x <- Sym("x")
> y <- Sym("y")
> Solve(List(x+y == 2, x-y == 0), List(x, y))
[1] "Starting Yacas!"
expression(list(list(x == 2 - y, y == 1)))


On Mon, Feb 9, 2009 at 7:45 PM, Carl Witthoft <carl at witthoft.com> wrote:
> Gabor G a ecrit:
> Check out the Ryacas package.   There is a vignette with some
> examples.
>
> ----
> Which led me to the manuals for yacas itself.  I'm guessing there may be a
> way to use yacas'  "AND" construct to combine a few equations and then hope
> the Newton Solver can work with that, but it's not clear that will work.
>
> TK!Solver is nice because you aren't limited to linear equations, nor to
> equations which "fit" into a matrix structure, and because it's legal to
> have more than one unknown to be back-solved (assuming the problem is not
> under- or over-defined, of course).
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list