# ACOS()

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
ACOS( number )

Description:
Returns the inverse cosine of the argument 'number' in radians.

y = RAD(30) ' convert degrees to radians
PRINT "y= ";y
x = COS(y)
PRINT "x= ";x
r = ACOS(x)
PRINT "r= ";r
z = DEG(r) ' convert radians to degrees
PRINT "z= ";z
output:
y= 0.5235987756
x= 0.8660254038
r= 0.5235987756
z= 30
If your system doesn't have ACOS()

FUNCTION ASIN(x)
' angle in radians
ASIN=2*ATN(x/(1+SQR(1-x*x)))
END FUNCTION
FUNCTION ACOS(x)
' angle in radians
' requires ASIN()
ACOS=1.5708- ASIN(x)
END FUNCTION
Last edited: 29 September, 2020