arctan

Compute arctangent of a given argument

arctan(x);

will return the arctangent of an argument, returned in degress in radians. There is no custom return type, the function always returns an double.

arctan(0); // 0°
arctan(1); //PI/4 or 45°
arctan(sqrt(3)); //PI/3 or 60°
arctan(-1); //-PI/4 or -45°
arctan(-sqrt(3)); // -PI/3 or -60° 

Last updated