| Functions | |
|---|---|
| cubic-formula | a b c d |
| cubic-formula-1 | p q r |
| evaluate-polynomial | coefficients number |
| quadratic-formula | a b c |
| quadratic-formula-1 | p q |
Evaluate a polynomial. First argument COEFFICIENTS is a sequence whose elements are the coefficients of the polynomial in descending order. Second argument NUMBER is the argument at which the polynomial is evaluated.
Calculate the roots of a monic quadratic function
f(x) = x² + p·x + q
Arguments P and Q are the coefficients of the polynomial.
Value is a list of two numbers.
Calculate the roots of a general quadratic function
f(x) = a·x² + b·x + c
Arguments A, B, and C are the coefficients of the polynomial.
Value is a list of two numbers.
Calculate the roots of a monic cubic function
f(x) = x³ + p·x² + q·x + r
Arguments P, Q, and R are the coefficients of the polynomial.
Value is a list of three numbers.
The first element is a real number.