Returns the arc-sine of an angle.
||An expression that resolves to a number or numeric string in the range -1 to 1 (inclusive). Values outside of this range generate an <ILLEGAL VALUE> error.
function returns the trigonometric arc-sine of number
. An arc-sine is the inverse of a sine.
By default, Caché MVBasic trig functions return results in degrees. To return results in radians, set $OPTIONS RADIANS
To convert degrees to radians, multiply degrees by pi/180. To convert radians to degrees, multiply radians by 180/pi.
The following example uses the ASIN
function to return the arc-sine of an angle:
PRINT ASIN(-0.5):" in radians"
PRINT ASIN(-0.5)*(180/ACOS(-1)):" in degrees"