Post Reply 
Problem with HEAD & TAIL Programmes on HP 33s
09-02-2022, 02:32 AM
Post: #7
RE: Problem with HEAD Programme on HP 33s
Very nice of you to take the time to help me & I hope others.

Yes, my version failed to preserve stack.

Deletion of old line 12 (new line 11 in programme below) causes errors for largest numbers (>999999999988) & it sems a shame to save one line to lose the full range.

I was a little shocked to discover my original version (1st in 1st posting) gave a wrong value for input 9.

A learning experience for me.

So here's latest version that preserves stack:

Code:
1.    LBL X
2.    x=0?
3.    RTN
4.    STO N
5.    SQRT
6.    LOG
7.    IP
8.    ALOG
9.    x<> N
10.    RCL/ N
11.    IP
12.    STO N
13.    LOG
14.    IP
15.    ALOG
16.    x<> N
17.    RCL/ N
18.    IP
19.    RTN

X: LN = 57
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problem with HEAD Programme on HP 33s - Gerald H - 09-02-2022 02:32 AM



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