comp • gb.gsl • polynomial

Polynomial (gb.gsl)

This class implements a polynomial with real or complex coefficients.

This class is
Create a new polynomial.
creatable
.
This class can be used as a
Evaluate the polynomial, i.e. return the value of the polynomial for a given value of X.
function
.
This class acts like a
Return the coefficient of the Indexth degree.
read
/
Set the coefficient of the Indexth degree.
write
array.

Properties

Methods
Return the maximum number of coefficients.
Count  
Return the polynomial degree, i.e. the index of its greatest non-null coefficient.
Degree  
Evaluate the polynomial, i.e. return the value of the polynomial for a given value of X.
Eval  
Return the polynomial roots, i.e. solve the following equation: P(x) = 0, provided that the polynomial coefficient are reals.
Solve  
Return the string representation of a polynomial.
ToString