MQL4 Reference Math Functions MathArccos

MathArccos

The function returns the arccosine of x within the range 0 to π in radians.

double  MathArccos(
   double  val     // -1<val<1
   );

Parameters

val

[in]  The val value between -1 and 1, the arc cosine of which is to be calculated.

Return Value

Arc cosine of a number in radians. If val is less than -1 or more than 1, the function returns NaN (indeterminate value).

Note

Instead of the MathArccos() function you can use acos().

See also

Real types (double, float)