Quadratic Equation Calculator
By Jay Tanner of Waterloo, NY, USA
a
b
c
   View/Copy PHP Source Code      Download this PHP Program 

Double-Click Within Text Area to Select ALL Text



This program numerically solves the standard quadratic equation above for root (x).

Where:


It applies the standard quadratic solution:



Generally, in practice, there are two (x) roots: (x1) and (x2),
that will numerically solve the equation because the solutions
graphically represent the X-coordinates of two points on a line
passing through and intersecting with a parabola at two locations
along the curve. However, it could also intersect at a single point
and the possibility exists that both values could be numerically equal.

When applying a solution to a physical problem in the real world,
usually only one of the two (x) solutions will apply.

When plotting the equation on a graph,
then both solutions may apply.

A Simple Example:


The possibility exists that both values can be numerically equal.
PHP Program by Jay Tanner
v2.0 - Revised: 1970-January-01-Thursday at Local Time 12:00:00 AM (UTC−05:00)