TVM solve for interest rate, revisited
|
06-09-2024, 04:46 PM
Post: #32
|
|||
|
|||
RE: TVM solve for interest rate, revisited
I did* translate your code into R for use with the (R)mpfr library (in a very clunky manual way - it was only to serve the basic purpose of getting more precise results than the DM42/Plus42 can output).
But just for fun, here is it with the problem above, initial guess of 10%, solving with 1000 bits of precision: Code: iter i f f0 eps With i as: Code: 1 'mpfr' number of precision 1000 bits * probably before your changes above, though I don't think you've changed the algorithm of the newton method? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)