Polynomials
While matrices and vectors are the core of linear algebra, many engineering problems—such as curve fitting, signal processing, and finding eigenvalues— revolve around Polynomials.
In SepalSolver, we represent a polynomial as a specialized class that manages a collection of coefficients and provides methods for evaluation, fitting, convolution, deconvolution, differentiation, and integration of polynomials.
A polynomial P(x)=a_0 x^n + a_1 x^{n-1} + a_2 x^{n - 2} + \cdots + a_n is defined by its coefficients. In SepalSolver, we store these in a double[] array where the index corresponds to the power of x. This makes the "Degree" of the polynomial exactly coefficients.Length - 1.
Sections in this chapter
- 02.1Polynomial Evaluation2 units · 4 examples · 10 min
- 02.2Polynomial Fitting4 units · 7 examples · 22 min
- 02.3Polynomial Differentiation and Integration1 units · 2 examples · 5 min
- 02.4Polynomial Arithmetics2 units · 6 examples · 14 min
- 02.5Polynomial Roots2 units · 5 examples · 12 min
- 02.6Exercise On Polynomials1 units · 10 examples · 21 min · exercises