Function: quadratic

Syntax

quadratic (<num1>,<num2>,<num3>)

Type

numeric

Returns

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.

Parameters

Example

The following provides the solution for: x**2-3x+2=0.

numeric roots[] = quadratic(1,-3,2)

See Also

Functions:

cubic (numeric), quartic (numeric)

Identifiers:

num_roots (numeric)