(12C) Actuarial Calculations
|
05-12-2018, 07:00 PM
Post: #2
|
|||
|
|||
RE: (12C) Actuarial Calculations
(05-12-2018 05:41 AM)Gamo Wrote: *Program to calculate [i] and use fractional [n] This seems to be a Newton-style solver that calculates the interest rate iteratively. This requires the usual convergence check: exit if the absolute value of the last change in i is less than 1E–8. Now take a look at line 53...56: here the HP programmer found a nice way to determine the absolute value of x. Code: 53 ENTER Compared with the common method (calculate √x²) this has three advantages: there are no roundoff errors, LastX is preserved and it also works for x ≥ 1E+50. (05-12-2018 05:41 AM)Gamo Wrote: Remark: Just to be clear – I assume what you want to say is this: Unlike the 12C, the TVM program in the 15C Advanced Functions Handbook does not round n to the next higher integer, it directly returns a fractional results if required. So the above programs are not needed there. Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) Actuarial Calculations - Gamo - 05-12-2018, 05:41 AM
RE: (12C) Actuarial Calculations - Dieter - 05-12-2018 07:00 PM
RE: (12C) Actuarial Calculations - Joe_H - 06-11-2019, 02:40 PM
RE: (12C) Actuarial Calculations - Joe_H - 06-11-2019, 02:50 PM
|
User(s) browsing this thread: 1 Guest(s)