Arctangent function program [HP-42S, Free42]
|
09-15-2024, 04:55 PM
(This post was last modified: 09-15-2024 08:37 PM by Gerson W. Barbosa.)
Post: #17
|
|||
|
|||
RE: Arctangent function program [HP-42S, Free42]
(09-14-2024 10:37 PM)Thomas Klemm Wrote: Here's the program for the HP-12C: Since we’re at it, here’s tangent using basically the same nice scheme of yours: Code: 01 { 36 } ENTER 3.141592654 ENTER 4 / g GTO 00 R/S -> 1.000000000 1.5707 g GTO 00 R/S -> 10381.32(037) ( ~ 7 seconds on the good old 12C ) ———- P.S.: Or, if we want all of them on the stack: Code: ... g GTO 00 R/S -> T: TAN(x) Z: TAN(x) Y: COS(x) X: SIN(x) ———- Code:
g GTO 36 R/S -> Z: ATAN(x) Y: ACOS(x) X: ASIN(x) (*) These are left as an exercise to the interested reader. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)