Math: a quadratic equation solver

The tutor offers an online quadratic equation solver.

The solver below assumes the equation to be in the form

ax2 + bx + c = 0

The user enters the a, b, and c parameters, then clicks the button. The answers will appear below, or else the message that the equation has no real solution.

***The decimal separator is the period; eg, 7.43 not 7,43 ***

Inputs

a=

b=

c=

Answers

x=

x=

NS

If the expression “NaN” appears, it means JavaScript has tried to solve with your given values, but has decided it can’t do so. Just inspect your a, b, and c values, correct them as necessary, then retry.

Of course, this utility is provided for education and entertainment purposes only:)

Source:

w3schools.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply