acos

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the acos of <number>
acos(<number>)
Summary

Returns the arc cosine of a number, in radians.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
number

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

Example
acos(-1)
acos(cos(.3))
acos(field "Opposite" + field "Sine")
Values
NameTypeDescription
return

The acos function returns a number between zero and pi.

The result

The result of the acos function is returned in radians. To get this result in degrees, use the following function :.

RelatedKeyword: inverse
Constant: pi
Function: cos
Control Structure: function
Glossary: return, degree, math operation
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.

Tagsmath