Polynomial equation solver, coded in Python.
- Solves polynomial equations given as program's argument
- Balances the equation and displays the reduced form
- Displays the degree of the equation
- Computes and display the discriminant's sign when it applies
- Computes and displays the equation's solutions
- The Makefile present in this repository provides multiple tests
- These tests can be launched with make testN ('N' replaced with the number of the test)
- Example: "make test4"
- Alternatively the program accepts one string as an argument and it must be formatted in the following way:
- "N1 * X^0 + N2 * X^1 ... Nn * X^t = M1 * X^0 + M2 * X^1 ... Mn * X^t"
- N1 ... Nn and M1 ... Mn are the coefficients of every X
- t is the maximum exponent of x (also the degree of the polynome)
- The program solves the equations of degrees up to 2
- The equation must be well formatted