Computing: Free Pascal Programming

Quadratic equations in one variable.


Download eququad console program (Windows 64bit) Download eququad source code (Lazarus/Free Pascal)

Description: The program solves quadratic equations in one variable (equations of the form ax^2 + bx + c = 0) by calculating the discriminant. The user may choose to display or not the complex roots (in the case, where the discriminant is less than 0) as well as the number of fractional digits to be displayed. After entering the equation coefficients a, b and c, the roots are calculated and displayed. Use the Esc key to terminate the program; any other key continuing with the next equation.

Free Pascal features: Number input with numeric-checking and default value, formatted output of real numbers, decision making on keyboard key pressed.

Screenshot:

Solving quadratic equations in 1 variable