Acos

Calculates the arccosine.

Syntax:

Acos(x)

Parameters:

(f) x:  floating point number whose arccosine is desired.

Returns:

(f)  the Acos function returns the arccosine result of x.

 

The Acos function returns the arccosine of x in the range 0 to p radians. The value of x must be between -1 and 1, otherwise a domain error will occur.

 

Example:

real=AskLine("ArcCos", "Enter a real number between -1 and 1", "0.5", 0)
answer=Acos(real)
Message("Arccos of %real% is",answer)

See Also:

Asin, Atan, Cos, Sin, Tan