Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.33 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.33 KB

Computorv1

Polynomial equation solver, coded in Python.

image

The project:

  • 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

Try it:

  • 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

Useful links that helped me with this project: