Class ScaledPolynomial

All Implemented Interfaces:
AbelianGroup<Polynomial>, Monoid<Polynomial>, Ring<Polynomial>, VectorSpace<Polynomial,Real>, Function<Vector,Double>, RealScalarFunction, UnivariateRealFunction

public class ScaledPolynomial extends Polynomial
This constructs a scaled polynomial that has neither too big or too small coefficients, hence avoiding overflow or underflow. This scaling factor is automatically computed from the coefficients of the given polynomial and is a power of the base.
  • Constructor Details

    • ScaledPolynomial

      public ScaledPolynomial(Polynomial p, double base)
      Construct a scaled polynomial, with a base of the scaling factor.
      Parameters:
      p - a polynomial
      base - base of the scaling factor
    • ScaledPolynomial

      public ScaledPolynomial(Polynomial p)
      Construct a scaled polynomial, with 2 as the base of the scaling factor.
      Parameters:
      p - a polynomial