Solve a cubic equation in one variable

Hi,
i use PolynomialRoots.jl package.
the result is
image
but when i use Cubic Equation Calculator, there is a different result:
image
Am I using the roots function wrong and getting different results?

I think the coefficients are in the opposite order. (i.e. 4.7... is the x^3 term)

3 Likes

yes! you are right.
But I followed the example in github, and its order is reversed.