Chapter 13 Device Logic (Pawn)
native Float:asin(Float:x);
Arcsine(x) in the range [-π/2, π/2], x element of [-1, 1]
native Float:acos(Float:x);
Arccosine(x) in the range [0, π], x element of [-1, 1]
native Float:atan(Float:x);
Arctangent(x) in the range [-π/2, π/2]
native Float:atan2(Float:y, Float:x);
Arctangent(y/x) in the range [-π, π]
native Float:sinh(Float:x);
Hyperbolic sine of x
native Float:cosh(Float:x);
Hyperbolic cosine of x
native Float:tanh(Float:x);
Hyperbolic tangent of x
native Float:exp(Float:x);
Exponential function e
x
native Float:log(Float:x);
Natural logarithm ln(x), x > 0
native Float:log10(Float:x);
Logarithm as the basis 10 log
10
(x), x > 0
native Float:pow(Float:x, Float:y);
x
y
. An argument error has occurred if x = 0 and y <= 0, or if x < 0 and y is not a whole number.
native Float:sqrt(Float:x);
Root x, x >= 0
native Float:ceil(Float:x);
Smallest whole number that is not smaller than x
native Float:floor(Float:x);
Largest whole number that is not larger than x
native Float:fabs(Float:x);
Absolute value | x |
native Float:ldexp(Float:x, n);
x*2
n
native Float:frexp(Float:x, &n);
Breaks down x into a normalised mantissa in the range [1/2, 1] that is supplied as the result, and a
potency of 2 that is filed in n. If x is zero, both parts of the result are zero.
native Float:modf(Float:x, &Float:ip);
Breaks down x into an integral and residual part that both have the same prefix as x. The integral part is
filed in ip, while the residual part is the result.
native Float:fmod(Float:x, Float:y);
Residual floating point of x/y with the same prefix as x. The result is dependent on the implementation, if
y is zero.
native isnan(Float:x);
Returns a value that is not equal to zero, if x is not a number
Rev. 05
171
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......