ACS Example
! Test triangle leg 1 = 3 units, leg 2 = 4 units, hyp. = 5
! units. Find the
! angle between leg 2 and hyp. /|
! 5 / |3
! / |
! -----
! 4
! The ACS function returns the angle between, in this case
! leg 2 and the hyp. Take the adjacent leg (4) over the
! hyp. (5) -- which is the cosine. ACS is the opposite
! of COS.
CLEAR SCREEN
PRINT "The angle, using arc-cosine function."
RAD
PRINT "is";ACS(4/5);"radians."
DEG
PRINT "or";ACS(4/5);"degrees."
END