Thread Closed 
history of the 4-level stack
09-07-2014, 02:17 PM
Post: #14
RE: history of the 4-level stack
(09-07-2014 10:19 AM)axd1967 Wrote:  Why did trig operations impact T in the 35? Why not 'log', for example?

In short: the pseudo-multiplication used to calculate tangens involves 2 coordinates to keep track of. Thus the list of pseudo-quotients is saved to the stack (c -> stack) and later recalled again (stack -> a):

Code:
tan18:    shift right b[wp]
    shift right b[wp]
tan19:    c - 1 -> c[s]
    if no carry go to tan18
    a + c -> c[wp]
    a - b -> a[wp]
    b exchange c[wp]
tan13:    b -> c[w]
    a - 1 -> a[s]
    if no carry go to tan19
    a exchange c[wp]
    stack -> a
    if b[s] = 0
         then go to tan15
    shift left a[w]
tan14:    a exchange c[wp]
    c -> stack
    shift right b[wp]
    c - 1 -> c[s]
    b exchange c[s]

In case of logarithms it's just one constant that has to be multiplied by the pseudo-quotient and added to a total.

I recommend to have a look at:
HP35 trigonometric algorithm
HP 35 Logarithm Algorithm

Quote:Note that the stack is used (at 01374) destroying thus its top.

Cheers
Thomas
Find all posts by this user
Thread Closed 


Messages In This Thread
history of the 4-level stack - axd1967 - 09-05-2014, 09:11 PM
RE: history of the 4-level stack - d b - 09-11-2014, 07:21 PM
RE: history of the 4-level stack - axd1967 - 09-06-2014, 05:15 PM
RE: history of the 4-level stack - jebem - 09-06-2014, 07:33 AM
RE: history of the 4-level stack - axd1967 - 09-06-2014, 05:27 PM
RE: history of the 4-level stack - axd1967 - 09-06-2014, 06:06 PM
RE: history of the 4-level stack - axd1967 - 09-07-2014, 10:19 AM
RE: history of the 4-level stack - axd1967 - 09-07-2014, 10:04 AM
OT: deep stack issues - axd1967 - 09-07-2014, 02:21 PM
RE: history of the 4-level stack - Thomas Klemm - 09-07-2014 02:17 PM
RE: history of the 4-level stack - axd1967 - 09-07-2014, 03:13 PM
RE: history of the 4-level stack - John R - 09-11-2014, 02:31 AM
RE: history of the 4-level stack - John R - 09-11-2014, 02:39 AM
RE: history of the 4-level stack - axd1967 - 09-11-2014, 08:35 AM
RE: history of the 4-level stack - John R - 09-11-2014, 01:22 PM
RE: history of the 4-level stack - axd1967 - 09-10-2014, 09:35 AM
RE: history of the 4-level stack - axd1967 - 09-11-2014, 05:13 PM



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