My favorite cubic polynomial was f(z) = -\sqrt{2}z^3 + \frac{1+\sqrt{5}}{2}z^2+e^{\sqrt{3}}z-\pi. In order to apply Cardano’s algorithm to find the roots of f(z), we must first render f(z) into a monic cubic polynomial.
Note that:
-\sqrt{2}z^3 + \frac{1+\sqrt{5}}{2}z^2+e^{\sqrt{3}}z-\pi = 0 \iff z^3- \frac{\sqrt{2}+\sqrt{10}}{4}z^2-\frac{\sqrt{2}e^{\sqrt{3}}}{2}+\frac{\sqrt{2}\pi}{2}=0
Great! Now, since f(z) is in monic cubic form, we may apply Cardano’s algorithm using “cardanoSolve” on Mathematica as follows:
cardanoSolve[-0.25*(Sqrt[2] + Sqrt[10]), -0.5*(Sqrt[2]*Exp[Sqrt[3]]), 0.5*(Sqrt[2]*Pi)]
and our solution is shown:
{2.41733 + 0. i, 0.514147 + 0. i, -1.78736 + 0. i}
This solution is the same as when we use Mathematica’s “Solve” function, as shown in the previous post. Sadly, this solution will not be as beautiful as other solutions in this post. Perhaps this is due to the irrational coefficients in f(z)?