-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong roots with multroot #69
Comments
For such a small order polynomial, we should use a quadratic equation formula. But in general, |
seems that
that seems the correct result, but you need additional information |
Yes, that functionality was moved out of
|
Hi!
I've had issues with the multroot function.
I have the function f(x)=1.7273219441449328e-6+257.8444185695129x+111.17574047075945x^2
the roots for this polynomial function should be: -2.31925 and -6.699e-9
but if I do :
using Roots
f(x)=1.7273219441449328e-6+2*128.92220928475646*x+3*37.05858015691982*x^2
roots(f)
multroot(f)
I get the following results:
2-element Array{Float64,1}:
-2.31925
0.0
and:
([-2.31925,0.0],[1,1])
I know 0 is "almost the same thing" as -6.699e-9, but in what I am trying to do it makes a difference. Any idea why I get this problems?
(also if I compute the roots with the classic formula for 2nd order polynomial with Julia I get the right answers)
The text was updated successfully, but these errors were encountered: