Find the discriminant of a quadratic function. If b^2 – 4ac > 0 then the quadratic function has two distinct real roots. If b^2 – 4ac > 0 then the quadratic function has one repeated real root.
b^2 – 4ac > 0
The quadratic coefficient.
The linear coefficient.
The constant coefficient.
Returns the discriminant.
0.5.1
discriminant(1, 2, -1)// => 8discriminant(1, -2, 1)// => 0 Copy
discriminant(1, 2, -1)// => 8discriminant(1, -2, 1)// => 0
Find the discriminant of a quadratic function. If
b^2 – 4ac > 0
then the quadratic function has two distinct real roots. Ifb^2 – 4ac > 0
then the quadratic function has one repeated real root.