1 comment

The following operations are supported:

• `+` - adding
• `-` - subtracting
• `*` - multiplication
• `/` - division
• `%` - modulo
• `<<` and `>>` - bitwise rotation
• `&` - bitwise and
• `|` - bitwise or
• `^` - bitwise xor

It also supports the following functions:

• `pow(x, y)` -- Computes the value of x raised to the power y
• `rand()` -- Returns a pseudo-random floating-point value in the range (0,1)
• `sqrt(arg)` -- square root of arg
• `srand(arg)` -- The arg, which must be an integer, is used to reset the seed for the random number generator of rand
• `abs(arg)` -- absolute value of arg
• `double(arg)` -- converts arg to floating-point value if it is not
• `int(arg)` -- converts arg to integer if it is not an integer value
• `round(arg)` -- If arg is an integer value, returns arg, otherwise converts arg to integer by rounding and returns the converted value
• `ceil(arg)` -- rounds up to nearest integral floating-point value
• `floor(arg)` -- rounds down to nearest integral floating-point value
• `fmod(x, y)` -- floating-point remainder of the division of x by y
• `acos(arg)` -- arc cosine of arg, in the range [0,pi] radians
• `asin(arg)` -- arc sine of arg, in the range [-pi/2,pi/2] radians
• `atan(arg)` -- arc tangent of arg, in the range [-pi/2,pi/2] radians
• `atan2(y, x)` -- arc tangent of y/x, in the range [-pi,pi] radians
• `cos(arg)` -- cosine of arg, measured in radians
• `cosh(arg)` -- hyperbolic cosine of arg
• `exp(arg)` -- exponential of arg, defined as e**arg
• `hypot(x, y)` -- Computes the length of the hypotenuse of a right-angled triangle sqrt(xx+yy)
• `log(arg)` -- natural logarithm of arg
• `log10(arg)` -- base 10 logarithm of arg
• `sin(arg)` -- sine of arg, measured in radians
• `sinh(arg)` -- hyperbolic sine of arg
• `tan(arg)` -- tangent of arg, measured in radians
• `tanh(arg)` -- hyperbolic tangent of arg