ACos Function | |
Returns the arc cosine of a specified numeric expression.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION ACos(
nExpression AS USUAL
) AS FLOAT
public static Float ACos(
Usual nExpression
)
Request Example
View SourceParameters
- nExpression
- Type: Usual
Specifies a numeric expression whose arc cosine ACOS( ) returns. The value of nExpression can range from –1 through +1. The value returned by ACOS( ) ranges from 0 through pi (3.141592). The number of decimal places ACOS( ) returns is determined by SET DECIMALS.
Use RTOD( ) to convert radians to degrees.
Return Value
Type:
Float
Numeric
Remarks
The arc cosine is returned in radians.
Examples
1CLEAR
2? RTOD(ACOS(0))
3STORE -1 to gnArcAngle
4? RTOD(ACOS(gnArcAngle))
5? RTOD(ACOS(SQRT(2)/2))
See Also