NSolve¶
Numeric equation solver.
A bare polynomial stands for the equation poly == 0:
A cubic with machine-real coefficients has one real root and a conjugate pair:
$ wo 'Round[x /. NSolve[x^3 + 1.5 x^2 - 3.2 x + 4.7 == 0, x], 1/10^6]'
{-19079/6250, 2426/3125 - (120997*I)/125000, 2426/3125 + (120997*I)/125000}
A repeated root is listed once per multiplicity:
The variable may be left out, as with Solve:
Constraints narrow the answer to the root inside them: