Arctangent function program [HP-42S, Free42]
|
09-21-2024, 05:31 PM
(This post was last modified: 09-21-2024 06:27 PM by Albert Chan.)
Post: #29
|
|||
|
|||
RE: Arctangent function program [HP-42S, Free42]
Slightly improved Thomas code (previous post)
Note: no changes done to tan(x/2) calculations sin(x) * tan(x/2) = 2*sin(x/2)*cos(x/2) * sin(x/2)/cos(x/2) = 2*sin(x/2)^2 = versine(x) = 1 - cos(x) Code: 00 { 63-Byte Prgm } ; x PI 6 / R/S ; x = pi/6 T = 0.267949192431 ; tan(x/2) Z = 0.133974596216 ; versine(x) Y = 0.5 ; sin(x) X = 0.866025403784 ; cos(x) Update: replaced "X↑2" by "Enter ×" (reason, see next post) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)