41C/CV root finders
|
05-28-2015, 11:27 AM
(This post was last modified: 05-28-2015 11:28 AM by Ángel Martin.)
Post: #33
|
|||
|
|||
RE: 41C/CV root finders
(05-28-2015 09:59 AM)Dieter Wrote: Here's another, very simple method: I'll try this one first - easier to fit in the current room available. Will report results when done. I agree if FV = PV the user deserves to get an error message, ha! As to why the accuracy isn't 13-digits in the result - I was trying to avoid instabilities in the Newton algorithm, which happen due to oscillations around the result. I probably went overboard since the code checks that the delta be less than 1 E-8 and not 1 E-10 - I just assumed that many decimal digits don't make much sense for the nature of the variable, the interest rate (where anything beyond 2 decimal digits will probably be frowned at). ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)