-
Notifications
You must be signed in to change notification settings - Fork 8
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
Divergence at IRR values near zero #1
Comments
interesting – will take a look |
I have a few more examples if you need them. |
sure – if you can send them over i'll add them as unit tests |
|
I think the problem is your polynomials have two roots, one where you expect it, and then another weird root for some large negative number. let me figure it out later |
Hey,
Really like how fast the algorithm is but at IRR values that are supposed to be close to zero, the irr_binary_search calculation diverges, irr_newton seem to find the proper solution as well as numpy.irr.
Here's an example of a list that would return a -1 instead of -.01:
[-13897.515699392789, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, 678.69417667002108, -426.40303828879155]
You've ever ran into such problems?
The text was updated successfully, but these errors were encountered: