A program that solves a polynomial second or lower degree equation, without the use of special math libraries.
Output shows:
- The equation in its reduced form.
- The degree of the equation.
- The solution.
Python 3.8
regex module:
pip install regex
- Terms are rational numbers or respect the from 'a * X[^p]'.
- In the case of 'X^1', simply 'X' can be used.
- Examples:
./computer "5 * X^0 + 4 * X^1 - 9.3 * X^2 = 1 * X^0"
./computer "5 + 4 * X + X^2 = X^2"
Note: Work in progress...