Shiny Language Reference

Language Reference > Math Functions


asin

double asin(double Param);

 

Calculates arcsine

Performs the trigonometric arc sine operation on Param and returns an angle in the range from -PI/2 to PI/2 expressed in radians.

 

Parameters

Param

Value between -1 and 1 whose arcsine has to be calculated.

 

Return Value

Arcsine of Param

 

Example Code

// Calculate arcsine of 0.5. PI is defined internally by SSEdit
double Res = asin(0.5) * 180 / PI;