Deutsches LiveCode Wiki
Advertisement

Returns the arc cosine of a number, in radians.Syntax:

acos(<number>)

Examples:

acos(-1)
acos(cos(.3))
acos(field "Opposite" + field "Sine")

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


Parameters:

  • number: A number between -1 and 1, or an expression that evaluates to such anumber.
  • Returns: The acos function returns a number between zero and pi.
  • The result: The result of the acos function is returned in radians. Toget this result in degrees, use the following function :.
Advertisement