quadratic (<num1>,<num2>,<num3>)
numeric
The solution to a quadratic equation. Two values are returned, these being the roots of the equation. If there are fewer than two unique roots, then the actual number can be found by querying the system numeric num_roots.
A quadratic equation is of the form: ax**2 + bx + c = 0.
<num1>
Quadratic coefficient
a.
<num2>
Quadratic coefficient
b.
<num3>
Quadratic coefficient
c. Default value is 0.
The following provides the solution for: x**2-3x+2=0.
numeric roots[] = quadratic(1,-3,2)
Functions: |
|
Identifiers: |
num_roots (numeric) |