MQL4 Reference
Math & Trig
MathArctan
| double MathArctan( |
double x) |
The MathArctan returns the arctangent of x. If x is 0, MathArctan returns 0.
MathArctan returns a value within the range of -π/2 to π/2 radians.
Parameters:
| x |
- |
A number representing a tangent. |
Sample:
double x=-862.42, y;
y=MathArctan(x);
Print("Arctangent of ",x," is ",y);
//Output: Arctangent of -862.42 is -1.5696
|
|
|