I ﬁxed the bug described in this thread and cleaned up the root ﬁnding algorithm. I’m still unhappy about it, but I have no time to code a better one right now (i.e. Ridder, Brent). I also added changes.txt and todo.txt to keep track of things.
- Fixed call to throw in bisection
- Changed ﬁndBounds algo
- Added TestXirrBugs function
- Removed the NewValue functions everywhere
- The interaction of Bisection and Newton algo in ﬁndRoot needs review. It seems like it is working now, but it could use some love. Maybe I should switch to a better root ﬁnding algo (i.e. Rudder or Brent)