Shiny Language Reference

Language Reference > Math Functions


atan

double atan(double Param);

 

Calculates arctangent

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

 

Parameters

Param

Value whose arctangent has to be calculated.

 

Return Value

Arctangent of Param

 

Example Code

// Calculate arctangent. PI is defined internally by SSEdit
double Res = atan(0.5) * 180 / PI;