Quadratics

Quadratic Formula

This program solves for the variable x in a quadratic equation (ax² + bx + c = 0), using the quadratic formula.

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$

Output

This is where the output will be...

Completing the Square

This program solves for the turning point of a quadratic equation by completing the square.

$$ax^2+bx+c = a(x+\frac{b}{2a})^2 + c - \frac{b^2}{4a}$$

Output

This is where the output will be...