# 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.

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.

1

1

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.

Asked: **
2012-01-26 12:21:21 -0500
**

Seen: **128 times**

Last updated: **Jan 26 '12**

obtain explicit solutions from "solve"

Solving multilinear integer equations

sage solve memory linear system runtime

Perform arithmetic on previous answer/result, without copying/re-entering it?

How to get all (numerical) solutions of an equation?

won't evaluate answers given by solve()

Solve system of equations with additional conditions in sage

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

If you think you have made a mistake in your question you can edit your question. Please do not post duplicate.