Trigonometric Functions for the HP-38C/HP-12C
|
07-12-2017, 09:36 PM
(This post was last modified: 07-12-2017 09:37 PM by Dieter.)
Post: #22
|
|||
|
|||
RE: Trigonometric Functions for the HP-38C/HP-12C
(07-12-2017 09:25 PM)tiptongrange Wrote: Since the regular 12C doesn't have the x^2 function, whenever it's called, I use GTO ###, where ### is a register at the end of the program leading the sequence (2, y^x, GTO %%%) where %%% sends it back to the line after GTO ###. Please, do not use 2 y^x for squaring. [ENTER] [x] is much faster and less prone to roundoff errors. It even sets LastX correctly. (07-12-2017 09:25 PM)tiptongrange Wrote: This is done to preserve the correct references for the rest of the GTO functions throughout the program--if I had entered (2, y^x) in place of (y^2) directly into the code, the extra step would have thrown all of the references off. You could adjust these references and thus avoid all those slow forward and backward jumps. Since you got the listing you can easily do it on paper, doublecheck everything and then simply enter the modified program. ;-) Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)