Solves the linear equation
Ax^3 + Bx^2 + Cx + D = 0
for x.
I searched about "Cubic Equation" topic and used exists source and code to implement this web page to calculate roots of Cubic Equation with supporting Complex Number.
- Fast
- Pure JS
- Supporting Complex number to finding roots
- Tiny and without needing any third-party tools
A X3 + B X2 + C X1 + D = 0
Demo: https://basemax.github.io/CubicEquationCalculator/cubic.html