Mathematic function to use in LayoutEditor C++ Macros. More...
double | acos(double x) |
double | asin(double x) |
double | atan(double x) |
double | ceil(double x) |
double | cos(double x) |
double | cosh(double x) |
double | exp(double a) |
double | floor(double a) |
double | log10(double a) |
double | log(double x) |
double | pow(double x,double y) |
double | round(double x) |
double | sin(double x) |
double | sinh(double x) |
double | sqrt(double x) |
double | tan(double x) |
double | tanh(double x) |
double | trunc(double x) |
const double | e |
const double | ln10 |
const double | ln2 |
const double | log10e |
const double | log2e |
const double | pi |
const double | pi_2 |
const double | pi_4 |
const double | sqrt1_2 |
const double | sqrt2 |
Class to access math functions similar to the standard C library math.h.
Example:
double radius=math::acos(0.5678);
double circumference=2*math::pi*radius;
This class exists only for the LayoutEditor C++ Macros. It is not available in the other interfaces, as there are native ways for this mathematical features.
The acos() function calculates the arc cosine of x; that is the value whose cosine is x. It is also called inverse cosine.
Returns: acos(x)
Example:
double d=math::acos(0.5678);
The asin() function calculates the principal value of the arc sine of x, that is the value whose sine is x. It is also called inverse sine.
Returns: asin(x)
The atan() function calculates the principal value of the arc tangent of x, that is the value whose tangent is x.
Returns: atan(x)
The smallest integral value that is not less than x. (introduced with release 20200224)
Returns: ceil(x)
The cos() function returns the cosine of x, where x is given in radians.
Returns: cos(x)
The cosh() function returns the hyperbolic cosine of x, which is defined mathematically as:
cosh(x) = (exp(x) + exp(-x)) / 2
Returns: cosh(x)
The exp() function returns the value of e (the base of natural logarithms) raised to the power of a.
Returns: exp(a)
These functions return the largest integral value that is not greater than a.
Returns: floor(a)
This functions return the base 10 logarithm of a.
Returns: log10(a)
The log() function returns the natural logarithm of x.
Returns: log(x)
The pow() function returns the value of x raised to the power of y.
Returns: pow(x,y)
These functions round x to the nearest integer
Returns: round(x)
The sin() function returns the sine of x, where x is given in radians.
Returns: sin(x)
The sinh() function returns the hyperbolic sine of x, which is defined mathematically as:
sinh(x) = (exp(x) - exp(-x)) / 2
Returns: sinh(x)
The sqrt() function returns the non-negative square root of x.
Returns: sqrt(x)
The tan() function returns the tangent of x, where x is given in radians.
Returns: tan(x)
The tanh() function returns the hyperbolic tangent of x, which is defined mathematically as:
tanh(x) = sinh(x) / cosh(x)
Returns: tanh(x)
The nearest integral value that is not larger in magnitude than x. (introduced with release 20200224)
Returns: trunc(x)
Returns: 2.71828182845904523536
Returns: ln(10)=2.30258509299404568402
Returns: ln(2)=0.693147180559945309417
Returns: log10(e)=0.434294481903251827651
Returns: log2(e)=1.44269504088896340736
Returns: 3.14159265358979323846
Returns: pi/2=1.57079632679489661923
Returns: pi/4=0.785398163397448309616
Returns: 1/sqrt(2)=0.707106781186547524401
Returns: sqrt(2)=1.41421356237309504880