http://qs1969.pair.com?node_id=1189398


in reply to Re: solve cubic equations
in thread solve cubic equations

Quite so. If you want the complex roots, use $t multiplied by the three cube roots of unity (1 and -1/2 ± i*sqrt(3)/2) in the first if branch.