Important This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 21.02 for BMC Helix Operations Management.

asin()


Return the arcsine of the argument.

Syntax

asin( sine )

 

Parameter

Parameter

Definition

sine

sine argument

*Valid Values* 
-1 ≤ sine ≤ 1

Description

The asin() function returns the arcsine of sine, that is, the length in radians of the arc whose sine is sine. The output range for the asin() function is -p/2 ≤ asin() ≤ p/2.

Example

The following PSL script uses the asin() function to confirm the trigonometric identity Arcsin x + Arccos x = π/2:

PI = 3.141593;
HALFPI = PI / 2;
print("Arcsine + Arccosine Identity Verification\n\n");
print(" Sine Expected Returned\n");
print("--------- --------- ---------\n");
sine = -0.9;
while (sine < 1.0){
printf("%+8.6f %+8.6f %+8.6f&#92;n",sine,HALFPI,asin(sine) + acos(sine));
sine = sine + 0.1;
}

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*