MQL4 Reference
Math & Trig
MathTan
| double MathTan( |
double x) |
MathTan returns the tangent of x. If x is greater than or equal to 263, or less than or equal to -263,
a loss of significance in the result occurs, in which case the function returns an indefinite (same as a quiet NaN).
Parameters:
Sample:
double pi=3.1415926535;
double x,y;
x=MathTan(pi/4);
Print("MathTan(",pi/4," = ",x);
//Output: MathTan(0.7856)=1
|
|
|