Arithmetic functions

Note: If a function takes more than one argument, the arguments are separated with semicolon ';'.

ln(x)
This function calculates the natural logarithm of x,
e.g. ln(123)=4.812...
log(x; base)
This function calculates the logarithm of x with a base equal 'base'
log(123; 4)=3.471...
exp(x)
This function calculates the exponent of x
exp(20)=e^20=485165195.409...
sin(x)
This function returns the sine of x.
For example sin(0.8)=0.717...
The argument x is in radians, if you want to calculate with degrees use the degtorad(x) function first e.g. sin(degtorad(30))=0.5 calculates the sine of 30 degrees.
cos(x)
Cosine of x
cos(1.3)=0.267...
The argument x is in radians.
tan(x) or tg(x)
Tangent of x
tan(3.6)=0.493...
The argument x is in radians.
cot(x) or ctg(x)
Cotangent of x
cot(2.3)=-0.893...
The argument x is in radians.
asin(x)
Inverse sine (arc sine) of x
e.g. asin(0.7)=0.775...
The result is in radians. If you want the result to be in degrees use radtodeg function e.g. radtodeg(asin(0,5))=30
acos(x)
Inverse cosine (arc cosine) of x
acos(0.9)=0.451...
The result is in radians.
atan(x) or atg(x)
Inverse tangent (arc tangent) of x
atan(3.3)=1.276...
The result is in radians.
acot(x) or actg(x)
Inverse cotangent (arc cotangent) of x
acot(10)=0.099...
The result is in radians.
sinh(x)
This function returns hyperbolic sine of x
sinh(12)=81377.395...
cosh(x)
Hyperbolic cosine of x
cosh(8.5)=2457.384...
tanh(x) or tgh(x)
Hyperbolic tangent of x
tanh(0.67)=0.584...
coth(x) or ctgh(x)
Hyperbolic cotangent of x
coth(1.67)=1.073...
asinh(x)
This function returns inverse hyperbolic sine of x
asinh(3.6)=1.992...
acosh(x)
This function returns inverse hyperbolic cosine of x
acosh(2.23)=1.440...
atanh(x) or atgh(x)
This function returns inverse hyperbolic tangent of x
atanh(0.67)=0.810...
acoth(x) or actgh(x)
This function returns inverse hyperbolic cotangent of x
acoth(1.23)=1.135...
DegToDeg(deg; min; sec)
This function converts degrees from the long format with degres, minutes and seconds into only degrees.
For example degtodeg(12; 30; 0)=12.5
DegToRad(deg)
This function converts degrees into radians
degtorad(12.5)=0.218166...
DegToRad(deg; min; sec)
This function converts degrees in the long format (degrees, minutes, seconds) to radians.
For example degtorad(12; 30; 0)=0.218166...
RadToDeg(rad)
This function converts radians into degrees
radtodeg(pi)=180
sqrt(x)
Sqrt returns the square root of x
sqrt(9)=3
root(x ; n)
The nth root of a 'x', 'n' must be integer and not negative, if 'n' is zero the result is one, if 'x' is zero the result is zero and we assume that the root(0;0) is not defined, e.g.
root(8;3)=2
root(-8;3)=-2
factorial(x)
The factorial function
factorial(6)=1*2*3*4*5*6=720
abs(x)
The absolute value of x
abs(-10)=10
sgn(x)
This function returns the sign of x that means when the x is positive the result is 1, when the x is negative the result is -1 and when the x is zero the result is zero too
sgn(-10)=-1
sgn(0)=0
sgn(5)=1
mod(x,y)
Mod returns the remainder from the division x by y
mod(10; 2.2)=1.2 because 10=2.2*4 + 1.2
int(x)
This method returns only the integer part of x.
int(2.7)=2
round(x)
This method rounds the value of x to the nearest integer
round(2.8)=3
round(2.2)=2
round(2)=2
round(-4.8)=-5
round(-4.1)=-4
ceil(x)
This function returns a value representing the smallest integer that is greater than or equal to x
ceil(2.8)=3
ceil(2.2)=3
ceil(2)=2
ceil(-4.8)=-4
ceil(-4.1)=-4
floor(x)
This function returns a value representing the largest integer that is less than or equal to x
floor(2.8)=2
floor(2.2)=2
floor(2)=2
floor(-4.8)=-5
floor(-4.1)=-5
max(x1; x2; ...)
This functions takes any number of arguments. It returns the max value of them. If there aren't arguments the function returns the max value which can be held in this precision.
min(x1; x2; ...)
This functions takes any number of arguments. It returns the min value of them. If there aren't arguments the function returns the min value which can be held in this precision.
sum(x1; x2; ...)
This functions takes one or more arguments. It returns the sum of them.
avg(x1; x2; ...)
This functions takes one or more arguments. It returns the arithmetic mean. (The sum divided by the number of arguments)