If I do this:
S = Solve[x^3 - 2*x^2 + 1 == 0, x]
I get this returned:
{{x -> 1}, {x -> 1/2 (1 - Sqrt[5])}, {x -> 1/2 (1 + Sqrt[5])}}
But I want to be able to take, say, the third expression and assign it to a function called y like:
y=1/2 (1 + Sqrt[5])
But without copy-paste because the actual expression I need to deal with is lengthy and ugly.
So I tried S[[3]] and that got be something that looks closer, but is still not right. How do I do it?