William Stein schrieb:
On Fri, Apr 2, 2010 at 10:11 AM, bb <[email protected]> wrote:
Why does Sage not solve the equation? (The quadratic equation is just a
test.)

sage: x,y,a,b = var('x, y, a, b')
sage:  solve([x - 2*y == a,  x + 3*y == b],[x,y]);
sage: solve([x^2 + a*x + b == 0],x)
[x == -1/2*a - 1/2*sqrt(a^2 - 4*b), x == -1/2*a + 1/2*sqrt(a^2 - 4*b)]
sage:  solve([x - 2*y - a == 0,  x + 3*y -b == 0],[x,y]);
sage:  solve([x - 2*y - a == 0,  x + 3*y -b == 0],x,y);
sage:

Semicolons surpress printing:

sage: solve([x - 2*y - a == 0, x + 3*y  - b == 0],[x,y])
[[x == 3/5*a + 2/5*b, y == -1/5*a + 1/5*b]]
sage: 2+2;
sage: 2+2
4


Maxima delivers the solution:


                            2 b + 3 a        a - b
(%o2)                   [[x = ---------, y = - -----]]
                                5              5


--
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
URL: http://www.sagemath.org

To unsubscribe, reply using "remove me" as the subject.




Tnx, I forgot! Sorry!

--
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
URL: http://www.sagemath.org

Reply via email to