First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Eliminating variables from a system of equations?

I'm (very) new to Sage, but am confused about why I can't get it to solve a simple system like this:

var('x, y, z') eqns = [ x^2 + y^2 == z, x == y]

but solve(eqns, z) gives an empty list back instead of my desired z = 2y^2

click to hide/show revision 2
No.2 Revision

updated 12 years ago

calc314 gravatar image

Eliminating variables from a system of equations?

I'm (very) new to Sage, but am confused about why I can't get it to solve a simple system like this:

var('x, y, z')
eqns = [ x^2 + y^2 == z, x == y]

y]

but solve(eqns, z) gives an empty list back instead of my desired z = 2y^2