[GiNaC-list] variable isolation
Andrea Monzali
andremonzali at gmail.com
Wed Jun 12 16:35:23 CEST 2013
Good evening everybody,
I'm new to ginac, i read the tutorial but i've a question, if I have an
equation expression, something like
symbol x("x"), y("y");
ex eq = 2*x + 3*x*y - 5*y == 0
is there a method to isolate a single variable, i.e.
cout << isolate(eq, x) << endl;
// x == 5*y*(2 + 3*y)^(-1)
cout << isolate(eq, y) << endl;
// y == 2*x*(5 - 3*x)^(-1)
thanks for all replies..
-am
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20130612/cff5016c/attachment.html>
More information about the GiNaC-list
mailing list