Hello,
In the sage tutorial, I found how to solve equations:

sage: x, b, c = var('x b c')
sage: solve([x^2 + b*x + c == 0],x)
[x == (-sqrt(b^2 - 4*c) - b)/2, x == (sqrt(b^2 - 4*c) - b)/2]

However, I could not find how to assign the solution to some variable.
That is, something that will do:
assign the value  (-sqrt(b^2 - 4*c) - b)/2 (first solution of the
equation) to the variable X
assign the value  (sqrt(b^2 - 4*c) - b)/2 (second solution of the
equation) to the variable Y

How can this  be done ?

Thanks,

Eli


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to