Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Polynomial (gb.gsl)

This class implements a polynomial with real or complex coefficients.

This class is creatable.

This class can be used as a function.

This class acts like a read / write array.

Properties
Count   Return the maximum number of coefficients.
Degree   Return the polynomial degree, i.e. the index of its greatest non-null coefficient.

Methods
Eval   Evaluate the polynomial, i.e. return the value of the polynomial for a given value of X.
Solve   Return the polynomial roots, i.e. solve the following equation: P(x) = 0, provided that the polynomial coefficient are reals.
ToString   Return the string representation of a polynomial.