Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions page (login required).

ASIN

Returns the arc-sine of an angle.

Synopsis

ASIN(number)

Arguments

number 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.

Description

The ASIN 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.

Examples

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"
Copy code to clipboard

See Also

Feedback