HTBasic Help
×
Menu
Index

ASN Example

10! Test triangle leg 1 = 3 units, leg 2 = 4 units, hyp. = 5
20! units. Find the
30! angle between leg 2 and hyp. /|
40!                           5 / |3
50!                            /  |
60!                           -----
70!                             4
80!   The ASN function returns the angle between, in this case
90! leg 2 and the hyp. Take the opposite leg (3) over the
100! hyp. (5) -- which is the sine. ASN is the opposite
110! of SIN.
120   CLEAR SCREEN
130   PRINT "The angle, using arcsine function."
140   RAD
150   PRINT "is";ASN(3/5);"radians."
160   DEG
170   PRINT "or";ASN(3/5);"degrees."
180   END