tchopper / quadratic-solver-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For the fun of it - Quadratic equation solver

Limitations

  • Uses spaces to split the equation into terms
  • plus and minus signs must be attached to each term in the equation (+5x etc)
  • x must be used to denote the variable
  • Can only solve up to x^2

Build

$ go build -o main

Execute

$ ./main -equation="x^2 +5x +18 = 7363094" -constraint_lower=0 -constraint_upper=10000

About


Languages

Language:Go 100.0%