NEARESTROOT INDEX

NEARESTROOT _ _ _ _ _ _ _ _ _ _ _ _ operator

The operator nearestroot finds one root of a polynomial with an iteration using a given starting point.

syntax:

nearestroot(<p>,<pt>)

where <p> is a univariate polynomial and <pt> is a number.

examples:


nearestroot(x^2+2,2);

  {x=1.41421*i}

The minimal accuracy of the result values is controlled by rootacc.