Click or drag to resize

ASin Function

X#
Returns in radians the arc sine of a numeric expression.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION ASin(
	nExpression AS USUAL
) AS FLOAT
Request Example View Source

Parameters

nExpression
Type: Usual
Specifies the numeric expression whose arc sine ASIN( ) returns. The value of nExpression can range from +1 through –1, and the value ASIN( ) returns can range from –pi/2 through +pi/2 ( –1.57079 to 1.57079). The number of decimal places in the display of the result can be specified with SET DECIMALS.

Return Value

Type: Float
Numeric
Remarks
Use RTOD( ) to convert radians to degrees.
Examples
 
X#
1CLEAR
2? RTOD(ASIN(0))  // Returns 0.00
3STORE 1 to gnArcAngle
4? RTOD(ASIN(gnArcAngle))  // Returns 90.00
5? RTOD(ASIN(SQRT(2)/2))  // Returns 45.00
See Also