[−][src]Module automatica::polynomial
Polynomials
Polynomial implementation
- builder from coefficients or roots
- degree
- extend by adding 0 coefficients to higher order terms
- arithmetic operations between polynomials (addition, subtraction, multiplication, division, reminder, negation)
- arithmetic operations with floats (addition, subtraction, multiplication, division)
- transformation to monic form
- roots finding (real and complex) using eigenvalues of the companion matrix
- differentiation and integration
- evaluation using real or complex numbers
- coefficient indexing
- zero and unit polynomials
Modules
arithmetic | Arithmetic module for polynomials |
Structs
Poly | Polynomial object |
Functions
complex_quadratic_roots | Calculate the complex roots of the quadratic equation x^2 + b*x + c = 0. |
real_quadratic_roots | Calculate the real roots of the quadratic equation x^2 + b*x + c = 0. |