solve and calculate
How can I solave an equation like x+z^2=1 and then calculate x with z=3 from the solution?
A variation on the Shashank'answer :
sage: z=var('z') sage: f(z)=solve(x+z^2==1,x).rhs() sage: f z |--> -z^2 + 1 sage: f.diff(z) z |--> -2*z sage: f.plot()
Here you consider the function "solution of the equation as function of z", and you do whatever with it.
Asked: 2012-01-26 12:21:21 -0500
Seen: 118 times
Last updated: Jan 26 '12