Post Reply 
(32S) Accurate TVM with direct solutions
12-31-2015, 02:08 PM
Post: #11
RE: (32S) Accurate TVM with direct solutions
(12-31-2015 01:49 PM)Dieter Wrote:  
(12-31-2015 01:37 PM)Dave Britten Wrote:  Just for comparison's sake, this is the one-label solver version that I keep in my pocket 32S notebook "just in case".

Are you sure this code is correct? What does the RCL L do – this variable is not used anywhere else.
Edit: it seems that L is supposed to hold ln(1+i), but this value is not calculated anywhere in this program.

And why don't you just use 100 instead of 2 10^x resp. 200 ÷ instead of 2 10^x ÷ 2 ÷...? ;-)
Also, there is no need for a temporary register T during the e^x–1 calculation as x/2 is saved in LastX.

Dieter

Whoops, I mis-transcribed it in my haste. I'll correct it above.

The 100 vs. 10^2 thing is a peculiarity of the way the 32S stores numbers. Integers from 0-99 take up 1.5 bytes. Anything else is 9.5 bytes. So 100 is 9.5 bytes, whereas 2 10^x is only 3 bytes.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 35s - TVM from Gene Wright - PedroLeiva - 12-03-2015, 12:39 PM
RE: (32S) Accurate TVM with direct solutions - Dave Britten - 12-31-2015 02:08 PM



User(s) browsing this thread: 1 Guest(s)