[GiNaC-list] Variable Isolation

Richard B. Kreckel kreckel at ginac.de
Thu Dec 13 21:06:37 CET 2012


On 12/13/2012 01:30 PM, David Narvaez wrote:
> On Thu, Dec 13, 2012 at 3:04 AM, Richard B. Kreckel<kreckel at ginac.de>  wrote:
>> I don't know what you mean by "isolate". Maybe the the collect and coeff
>> methods are what you are looking for.
>
> I mean something like
>
> isolate("x + y = 1", x) ->  "x = 1 - y"
> isolate("(y+2)^2+x * (y+2)+1=0", yplus2) ->  "y+2 = (-x + sqrt(x^2-4))/2"

For the linear case, check out lsolve.

   -richy.
-- 
Richard B. Kreckel


More information about the GiNaC-list mailing list