-
Notifications
You must be signed in to change notification settings - Fork 25
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
roots
returns NaNs for roots with complicated function
#169
Comments
What a nasty function! You can write without the index The function diverges when i == -1, so I don't think the
although this will not prove the uniqueness of the root.
to try to exclude some of those If you have prior knowledge about the function then you should use that to exclude these badly-behaved places from consideration. |
My goal is to return the nearest root to zero between -2..2 or Unfortunately, I don't know in advance how well behaved a series of cashflows will be. Do you know of techniques where I could efficiently search outwards from zero? |
I wonder if Roots.jl would be better behaved for this particular problem? |
Thanks, Roots.jl does seem to work better in this situation. Do you want me to leave the issue open? |
OK I'm glad to hear it. Yes let's leave it open since it's a useful test case to think about, thanks! |
This is related to #59, as you probably want to limit the number of unknown intervals to significant less than 19K. Then filtering the resulting intervals to find the root closest to 0 should not be a problem. |
roots
hangsroots
returns NaNs for roots with complicated function
I am trying to build a more robust internal rate of return solver for ActuaryUtilities.jl and couldn't get IntervalRootFinding to pass some tests finding the roots. The following case failed for me.
This worked:
But the following takes considerable time and returns a bunch of roots that are actually `N⚓
f
shoots up towards infinity around-0.5
, so maybe related to #161?The text was updated successfully, but these errors were encountered: