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.
A X3 + B X2 + C X1 + D = 0
Demo: https://basemax.github.io/CubicEquationCalculator/cubic.html