MQL4 Reference
Math & Trig
MathSin
| double MathSin( |
double value) |
Returns the sine of the specified angle.
Parameters:
| value |
- |
An angle measured in radians. |
Sample:
double pi=3.1415926535;
double x, y;
x=pi/2;
y=MathSin(x);
Print("MathSin(",x,") = ",y);
y=MathCos(x);
Print("MathCos(",x,") = ",y);
//Output: MathSin(1.5708)=1
// MathCos(1.5708)=0
|
|
|