41C/CV root finders
|
05-22-2015, 01:14 PM
(This post was last modified: 05-26-2015 05:09 AM by Ángel Martin.)
Post: #12
|
|||
|
|||
RE: 41C/CV root finders
(05-20-2015 07:07 PM)Dave Britten Wrote: Does anybody have any recommendations for good root finders, or techniques for obtaining initial guesses for i%? Here's the formula I used in the TVM Module for the first derivative (as it uses Newton's method): f ’ (i) = (PMT / i^2 ) * [ (1+i)^(-n) - 1 ] + n * [PMT (1 + ip)/i – FV ] * (1+i)^-(n+1) with initial value: i0 = [ abs( PV + n*PMT + FV) ]^1/n Seems to hold up quite well but again this is a MCODE implementation using the internal 13-digit precision routines from the OS. Note: edited to add the missing exponent signs. Cheers, AM "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: 1 Guest(s)