Пример #1
0
 /**
  * Find all real roots of p.
  *
  * @param p
  * @return
  */
 public double[] findAllRoots(UnivariatePolynomial p) {
   return findAllRootsIn(
       p,
       -p.stretch(-1.0).maxPositiveRootBound() * (1.0 + 2.220446049250313E-16),
       p.maxPositiveRootBound() * (1.0 + 2.220446049250313E-16));
 }