Comment

Comment by chongli

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.
parent chongli 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton