solve and calculate
How can I solave an equation like x+z^2=1 and then calculate x with z=3 from the solution?
Thanks.
How can I solave an equation like x+z^2=1 and then calculate x with z=3 from the solution?
Thanks.
A variation on the Shashank'answer :
sage: z=var('z')
sage: f(z)=solve(x+z^2==1,x)[0].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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-01-26 19:21:21 +0100
Seen: 901 times
Last updated: Jan 27 '12
If you think you have made a mistake in your question you can edit your question. Please do not post duplicate.