acos

returns the arc cosine of a number, in radians.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

the acos of number

# Params

- number : A number between -1 and 1, or an expression that evaluates to such a number.

# Examples

acos(-1)

acos(cos(.3))

acos(field "Opposite" + field "Sine")

# Description

Use the acos function to find the arc cosine of a number.

The arc cosine of number is an angle whose cosine is equal to number. In other words, acos is an inverse of the cos function.

function acosInDegrees theMagnitude return acos(theMagnitude) * 180 / pi

end acosInDegrees

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

# Tags

# See

- **keyword:** inverse - **constant:** pi - **function:** cos - **control structure:** function - **glossary:** return, degree, math operation