How do I assign solutions of an equation to a variable?
a = solve(1-z-z^2==0,z)[0] has the result of a being 'z=-1/2*sqrt(5)-1/2'
But I would like to have just a = '-1/2*sqrt(5)-1/2'
How do I convert the expression to a number?
Thanks!