Deutsches LiveCode Wiki
Advertisement

Returns the arc sine of a number in radians.Syntax:

asin(<number>)

Examples:

the asin of .225
sin(asin(.5))
asin(pi/4 - sin(myAngle))

Use the asin function to find the arc sine of a number.

The arc sine of number is an angle whose sine is equal to number. In other words, asin is an inverse of the sin function.

   function asinInDegrees theMagnitude
   return asin(theMagnitude) * 180 / pi
   end asinInDegrees


Parameters:

  • number: A number between -1 and 1, or an expression that evaluates to such anumber.
  • Returns: The asin function returns a number between -pi/2 and pi/2.
  • The result: The result of the asin function is returned inradians. To get this result in degrees, use thefollowing custom function:.
Advertisement