@ACos (Formula Language)

Calculates the arc (inverse) cosine, using the cosine of an angle.

Syntax

@ACos( cosine )

Parameters

cosine

Number or number list. A cosine of an angle, from -1 through 1.

Return value

angle

Number or number list. An angle, in radians, from 0 through pi. This represents an angle between 0 and 180 degrees.

Usage

If the parameter is a list, the function operates on each element of the list, and the return value is a list with the same number of elements.

Examples

  1. This example returns pi/2.
    @ACos( 0 )
  2. This example returns 1.0472 radians (60 degrees).
    @ACos( 0.5 )
  3. This example returns 1.0472 radians and pi/2 in a list.
    @ACos( 0 : 0.5 )