Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 595 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 595 Bytes

ComputerV1

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.

Requirments

Python 3.8
regex module:
pip install regex

Usage

  • 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...