BaseMax / CubicEquationCalculator

Cubic Solver: Cubic Equation Calculator (A X^3 + B X^2 + C X^1 + D = 0)
https://basemax.github.io/CubicEquationCalculator/cubic.html
GNU General Public License v3.0
6 stars 1 forks source link

Bug fix on discrim<0 case. #2

Open Hanlin-Dong opened 1 year ago

Hanlin-Dong commented 1 year ago

-term1 was added to a wrong place. Corrected.

BaseMax commented 1 year ago

Thank you so much. Can you provide a few unit tests to make sure the calculation is correct?