Polynomial ¶
A object that represents a polynomial.
properties¶
coef : ndArray
the coefficients of the polynomial in ascending order of degree.
domain : {number}
the scaled domain of the polynomial
window : {number}
the scaled window of the polynomial
symbol : string
the symbol of the polynomial
methods¶
degree -> () ¶
returns the degree of the polynomial.
cutdeg -> () ¶
returns a copy of the polynomial thats trimmed to the degree degree.
copy -> () ¶
returns a copy of the polynomial.
deriv -> () ¶
returns the derivative of the polynomial.
integ -> () ¶
returns the antiderivative of the polynomial.
trim -> () ¶
returns a copy of the polynomial without leading tols (tol being defaulted to 0).
companion -> () ¶
returns the companion matrix of the Polynomial.
roots -> () ¶
returns the roots the polynomial as a ndArray.