I am using the Solve function to obtain two solutions for a quadratic, then I want to use those two solutions as input for something else but I can't because they are in the form of (x->number}
potential = 5/2*x^2
solut2 = Part[Solve[potential == 40, x], 2]
The output that comes out is
{x -> 4}
but I need simply 4 to be the input in some other functions. Thank for your help!
Solveand its kin returns lists ofRules and those are meant to be used withReplace, e.g. as inx /. Solve[potential == 40, x][[2]]. – Henrik Schumacher May 22 '19 at 20:10Part[...,2]$\to$Part[..., 2, 1, 2]. – AccidentalFourierTransform May 22 '19 at 20:10