Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
var('y')
P = x^18
eqn = x^2 == y + 1
soln = solve(eqn,x)
P = P.subs(x=soln[0].rhs())
P.expand().subs(y=x)
click to hide/show revision 2
No.2 Revision

updated 2014-02-06 05:58:02 -0500

kcrisman gravatar image
var('y')
P = x^18
eqn = x^2 == y + 1
soln = solve(eqn,x)
P = P.subs(x=soln[0].rhs())
P.expand().subs(y=x)