Acos Function

Returns the arccosine of a numeric expression.

Syntax
Acos(number)

Parameters

number
Specify the cosine of the angle as a real number value.

Return Values
Real value, in radians, representing the arccosine of the parameter number.

Description
Acos returns the arccosine of the numeric expression. Values range is from -1 to -1. The value returned by Acos will range from 0 to PI radians. If number is -1 or 1, an error occurs.

To convert from radians to degrees, use the RadToDeg function.

See Also
Abs Function, Asin Function, Atan Function, Atan2 Function, Cos Function, DegToRad Function, RadToDeg Function, Sgn Function, Sin Function, Tan Function, Val Function

Acos Function Example

Function acostest
  Double x

  x = Cos(DegToRad(30))
  Print "Acos of ", x, " is ", Acos(x)
Fend