> Hi William, > > I used the groebner_basis() function of SAGE to solve for a system of > nonlinear equations. My result is of the form: > > c1 + c2*y + c3*x*y^2 > > I would like to substitute a value in for y and then solve for x but > can't figure out how to get SAGE to do this. Do you have an example > you could email me? Thank you.
Here is an example: sage: P.<x,y> = PolynomialRing(QQ,2) sage: f = 1 + 2*y + 3*x*y^2 sage: g = f.subs(y=2); g # or f.subs({y:2}) 12*x + 5 sage: g.univariate_polynomial().roots() [(-5/12, 1)] Best, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com 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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---