Skip to content

A program solving polynomial equations, coded in Python

Notifications You must be signed in to change notification settings

Ysoroko/computorv1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

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:

Releases

No releases published

Packages

No packages published