ROOT_VAL INDEX

ROOT\_VAL _ _ _ _ _ _ _ _ _ _ _ _ operator

The operator root_val computes the roots of a univariate polynomial at system precision (or greater if required for root separation) and presents its result as a list of numbers.

syntax:

roots(<p>)

where <p> is a univariate polynomial.

examples:


root_val(x^5-2);

  {-0.929316490603 + 0.6751879524*i,
   -0.929316490603 - 0.6751879524*i,
   0.354967313105 + 1.09247705578*i,
   0.354967313105 - 1.09247705578*i,
   1.148698355}