Skip to main content

asin

Type​

function

Summary​

Returns the arc sine of a number in radians.

Syntax​

the asin of <number>
asin(<number>)

Description​

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.

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

Parameters​

NameTypeDescription

number

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

Examples​

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

Value​

NameTypeDescription

return

The asin function returns a number between -pi/2 and pi/2.

the result

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

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

constant: pi

control structure: function

function: sin

glossary: radian, custom function, return, degree, math operation

keyword: inverse

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?