-
Notifications
You must be signed in to change notification settings - Fork 17
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
Make unique and filter results from Newton #156
Conversation
Nice! Does this work with multiple roots? |
cc0fcc3
to
e5e52fa
Compare
Current coverage is 93.84%@@ master #156 diff @@
==========================================
Files 20 20
Lines 948 959 +11
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 885 900 +15
+ Misses 63 59 -4
Partials 0 0
|
Yes!:
|
Very nice!! |
I think you should merge this right away! |
fd0735f
to
7ab3101
Compare
|
||
# bisecting | ||
roots = vcat( | ||
krawczyk(f, f_prime, Interval(x.lo, m), level+1, | ||
tolerance=tolerance, debug=debug, maxlevel=maxlevel), | ||
krawczyk(f, f_prime, Interval(nextfloat(m), x.hi), level+1, | ||
krawczyk(f, f_prime, Interval(m, x.hi), level+1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recall that we deliberately decided to use nextfloat(m)
to make sure that the two intervals considered were somehow separated. (Same comment for newton.jl.) Can you explain the reason behind the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the idea of adding nextfloat
was a mistake. Conceptually, it is incorrect since it misses out the interval between the two floats (compare unums). From a practical point of view, the current version is better since it allows to check for a non-empty intersection to see if the two intervals are neighbours.
Tests are failing on 0.5 due to some recent upstream breakage, apparently in base Julia. |
Tests pass in 0.4, and the problems seem to me to be related to FixedSizeArrays and appear in tests related to |
Since it's not clear how long that might take to fix, I'm going to merge. |
No description provided.