MQL4 Reference
Math & Trig
MathArccos
| double MathArccos( |
double x) |
The MathArccos function returns the arccosine of x within the range 0 to π (in radians).
If x is less than -1 or exceeds 1, the MathArccos returns NaN (indeterminate value).
Parameters:
| x |
- |
Value between -1 and 1 the arccosine of which to be calculated. |
Sample:
double x=0.32696, y;
y=asin(x);
Print("Arcsine of ",x," = ",y);
y=acos(x);
Print("Arccosine of ",x," = ",y);
//Output: Arcsine of 0.326960=0.333085
//Output: Arccosine of 0.326960=1.237711
|
|
|