Interface UnivariatePolynomial

    • Method Detail

      • getNumCoefficients

        int getNumCoefficients()
        Returns the number of coefficients for this polynomial. This is not the same as the degree, since the high coefficients may be zero; it simply indicates the highest currently possible coefficient in this implementation.
      • getCoefficient

        double getCoefficient​(int n)
        Returns the nth coefficient for this polynomial.
        Throws:
        java.lang.IndexOutOfBoundsException - if n < 0 or n > getNumCoefficients()-1