Why not use Newton’s method? Your computer is using numerical approximations for computing those roots anyway. The reason the cubic formula isn’t used is because it’s very convoluted and it doesn’t solve any problems you couldn’t solve with Newton’s method, unless you’re doing algebra and you need an exact solution.