-
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
Error root #453
Comments
Thanks for the report. I'll investigate soon. |
Did 2.2.3 fix this? |
Hi jverzani
The error still persists, but when I approximate the initial value of the root the result is consistent. Thanks for answering. |
Thanks for following up. In this example, the issue becomes clearer. Internally, we have some checks to terminate early if an exact zero is found using
With this, the following returns what you want over a range of values
|
An error occurs when using Roots.jl to solve an equation, the result should be -2.0, not -1.58. The error only occurs when I use uncertainties.
using Measurements, Roots
a = measurement(1.0 , 0.1)
b = measurement(-3.0 , 0.1)
c = measurement(-10.0, 0.1)
f(x) = ax^2 + bx + c
find_zero(f, measurement(0.0, 0.1))
−1.58±0.12
The text was updated successfully, but these errors were encountered: