- The absolute value of a number
- Maximum and minimum of two numbers
- Rounding functions
- Remainder after division (Modulo operation)
- Powers and roots
- Exponential and logarithmic functions
- Trigonometric functions
- Hyperbolic functions
- Normality test for real numbers
- Random number generation
- Endianness control in integers
Hyperbolic functions
The MQL5 API includes a set of direct and inverse hyperbolic functions.
Hyperbolic functions
double MathCosh(double value) ≡ double cosh(double value)
double MathSinh(double value) ≡ double sinh(double value)
double MathTanh(double value) ≡ double tanh(double value)
The three basic functions calculate the hyperbolic cosine, sine and tangent.
double MathArccosh(double value) ≡ double acosh(double value)
double MathArcsinh(double value) ≡ double asinh(double value)
double MathArctanh(double value) ≡ double atanh(double value)
The three inverse functions calculate the hyperbolic inverse cosine, inverse sine, and arc tangent.
For the arc cosine, the argument must be greater than or equal to +1. Otherwise, the function will return NaN.
The arc tangent is defined from -1 to +1. If the argument is beyond these limits, the function will return NaN.
Examples of hyperbolic functions are shown in the MathHyper.mq5 script.
void OnStart()
|