atan()

Returns the arc tangent in the radian measure.

Synopsis

float atan(float x);

Parameters

Parameter Description
x angle

Return Value

Arc tangent in radian measure.

Description

Returns the arc tangent between -Pi/2 and Pi/2 in the radian measure. In the event of an error, 0.0 is returned.

Example

main()
{
  float pi = 3.1415926, val, res;
  val = 2.0;
  res = atan(param) * 180 / pi;
  DebugN("The atan for a value of " + val + " is " + res);
  //["The atan for a value of 2 is 63.434949905006"]
}

Assignment

Mathematical function

Availability

CTRL