HP-12C trigonometrics revisited
|
10-15-2017, 08:00 PM
(This post was last modified: 10-17-2017 06:39 PM by tycho.)
Post: #1
|
|||
|
|||
HP-12C trigonometrics revisited
I recently bought my first HP-12C - brand new from ebay (serial CNA5...). I must say the build quality seems excellent and the speed is amazing. So I wanted to implement Valentin Albillo's trigonometric functions from the excellent "HP-12C Tried & Tricky Trigonometrics", but realized that the program has some major limitations in input ranges and usability for some of the functions.
Valentin's program usage: Code: Function: To compute, press: Input range . Using arguments outside -Pi/2 - Pi/2 may give wrong signs for Cos(x) and Tan(x), which is an obvious drawback. The other gripe I have is that it is very hard to remember those GTO lines for the Arc functions and Pi/2, as well as remembering that the default function (from step 00) returns Cos(x) and not Sin(x) which would be more intuitive for me at least. The challenge was that Valentin's program already used the max 99 steps. With some tricks I managed to modify it, while still keeping it within max. NEW (easier to remember) program usage and wider input ranges: Code: Function: To compute, press: Input range . Tan(x) is still not ideal. However, it takes "full range" input and gives correct sign - likewise with Cos(x). The program uses REG 4, 5, 6, like Valentin's, but additionally requires Pi/2 to be stored in REG 0 in order for Cos(x) and ArcCos(x) to work. Pi/2 = ArcSin(1), so to quickly store it in REG 0, type: Code: 1 On my new HP-12C, the functions returns answers almost instantly, probably as fast or faster than an HP-15C! The full program list: Code: 01 GTO 73 ' Sin |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)