Asin

From Xojo Documentation

Method

Asin(Double) As Double

Supported for all project types and targets.

Returns the arcsine of the value specified.

Usage

result = Asin(value)

Part Type Description
result Double The arc sine of value.
value Double The value you want the arc sine of. Value is the Sin of the angle you want and must be between -1 and 1.

Notes

The arcsine is the angle whose sine is value. The Asin function returns the angle (in radians) of the sine passed to it. To express the arcsine in degrees, multiply the result by 180/PI.

Sample Code

This code uses the Asin function to return the arcsine of a number:

Dim d As Double
Const Pi = 3.14159
d = Asin(0.5) // returns 0.5235988
d = Asin(0.5) * 180 / Pi // returns 30

See Also

Sin function, Xojo.Math.ASin