(32S) Accurate TVM with direct solutions
|
12-31-2015, 02:04 PM
(This post was last modified: 12-31-2015 02:13 PM by Jeff_Kearns.)
Post: #10
|
|||
|
|||
RE: (32S) Accurate TVM with direct solutions
Dieter,
You are correct! I failed to modify the code for the Pioneers after correcting the same mistake in my HP-15 code. It now uses using the more accurate e^x-1 formula: 2 * sinh(x / 2) * e ^ (x / 2). Corrected 43-line code for Accurate TVM in HP-32S / HP-32sii / HP-33s / HP-35S T001 LBL T T002 INPUT N T003 INPUT I T004 INPUT B T005 INPUT P T006 INPUT F T007 INPUT E T008 RCL I T009 100 T010 / T011 ENTER T012 ENTER T013 1 T014 + T015 LN T016 x<>y switch x with y T017 LASTx T018 1 T019 X<>Y? x not equal to y? T020 - T021 / T022 * T023 RCLx N T024 ENTER T025 e^x T026 RCLx B T027 x<>y T028 2 T029 / T030 SINH T031 LASTx T032 e^x T033 x T034 2 T035 x T036 RCLxP T037 100 T038 RCL/I T039 RCL+E T040 x T041 + T042 RCL+F T043 RTN It now solves correctly for the VVL (very, very, low ;-) interest rate example you gave. Regards, Jeff Kearns Dieter wrote: Addendum: Here is a version that includes both ln(1+x) – using a different method that IHMO performs even better than the original one – as well as an e^x–1 implementation and some slight general improvements. I missed that post of yours but presume that my program, being one step shorter than yours, is OK. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(32S) Accurate TVM with direct solutions - Dave Britten - 05-17-2015, 12:55 AM
HP 35s - TVM from Gene Wright - PedroLeiva - 12-03-2015, 12:39 PM
RE: (32S) Accurate TVM with direct solutions - Jeff_Kearns - 12-26-2015, 11:24 PM
RE: (32S) Accurate TVM with direct solutions - Dieter - 12-30-2015, 08:22 AM
RE: (32S) Accurate TVM with direct solutions - Dave Britten - 12-30-2015, 12:13 PM
RE: (32S) Accurate TVM with direct solutions - Jeff_Kearns - 12-30-2015, 03:05 PM
RE: (32S) Accurate TVM with direct solutions - Dieter - 12-31-2015, 12:23 PM
RE: (32S) Accurate TVM with direct solutions - Dave Britten - 12-31-2015, 01:37 PM
RE: (32S) Accurate TVM with direct solutions - Dieter - 12-31-2015, 01:49 PM
RE: (32S) Accurate TVM with direct solutions - Dave Britten - 12-31-2015, 02:08 PM
RE: (32S) Accurate TVM with direct solutions - Dieter - 01-01-2016, 02:11 PM
RE: (32S) Accurate TVM with direct solutions - Jeff_Kearns - 12-31-2015 02:04 PM
|
User(s) browsing this thread: 5 Guest(s)