Post Reply 
Trigonometric Functions for the HP-38C/HP-12C
03-26-2016, 08:21 PM
Post: #6
RE: Trigonometric Functions for the HP-38C/HP-12C
Thanks for the updated constants.
By loading these values I'm getting excellent results:

R0: 1.74532925199433E-02
R1: -0.3333323779
R2: 0.19987227
R3: -0.139705
R4: -8.86096146249340E-07
R5: 1.349582775E-11
R6: -9.73259E-17

The emulator for the HP-38C allows RCL arithmetic so in some cases I've been able to combine steps, so I can put GOTO instructions at the beginning so now I can use:
COS(x): [R/S]
SIN(x): [R/S] [x<>y]
TAN(x): [R/S] [/]
ASIN(x): [g] [GTO] 02 [R/S]
ACOS(x): [g] [GTO] 03 [R/S]
ATAN(x): [g] [GTO] 04 [R/S]

This (iOS) emulator is so fast as soon as I hit R/S I see the result. Regs are not shared with program steps so all are available. Fortunately, when I save the program the constants & display settings are saved as well so I don't have to reload anything after I use other programs.

The Trig functions are working like a charm.

Thanks so much!

P.S. If you get an RPN-38 CX emulator let me know. I'll be happy to send the modified program listing.

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Trigonometric Functions for the HP-38C/HP-12C - bshoring - 03-26-2016 08:21 PM

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