Calculation Operators and Functions

Mathematical Operators

In the table below are listed all available operators and their possible usage with the other elements of the expression.

Operator

Example

Description

+

VAR_A + VAR_B

Addition

-

VAR_A - VAR_B

Subtraction

*

VAR_A * VAR_B

Multiplication

/

VAR_A / VAR_B

Division

^

VAR_A ^ 2

Power

()

(VAR_A + VAR_B)* VAR_C

Brackets

;

VAR_A + VAR_B; VAR_C

Delimiter, used as a separator only

Aggregation Functions

In the table below are listed the aggregation functions and their possible usage with other elements of the expression. All aggregation functions work with numbers, variables, functions, and other calculations.

Function

Example

Description

SUM

SUM(VAR_A)

Arithmetic sum

AVG

AVG(VAR_A)

Arithmetic average

MAX

MAX(VAR_A)

Returns the maximum value element in the set

MIN

MIN(VAR_A)

Returns the minimum value element in the set

COUNT

COUNT(VAR_A)

Returns the count of elements in the set

AVGW

AVGW(VAR_A; VAR_B)

Arithmetic weight average

Mathematical Functions

In the table below are listed the mathematical functions and their possible usage with other elements of the expression. All functions work with numbers, variables, and other calculations.

Function

Example

Description

SIN

SIN(ARG)

Sine

COS

COS(ARG)

Cosine

TAN

TAN(ARG)

Tangent

COT

COT(ARG)

Cotangent

SINH

SINH(ARG)

Hyperbolic Sine

COSH

COSH(ARG)

Hyperbolic Cosine

TANH

TANH(ARG)

Hyperbolic Tangent

COTH

COTH(ARG)

Hyperbolic Cotangent

ASIN

ASIN(ARG)

Arcsine

ACOS

ACOS(ARG)

Arccosine

ATAN

ATAN(ARG)

Arctangent

ACOT

ACOT(ARG)

Arc cotangent

EXP

EXP(ARG)

Exponential function for base e

LOG

LOG(ARG)

Natural Logarithm

LOG10

LOG10(ARG)

Logarithm to base 10

SQRT

SQRT(ARG)

Square Root

FACT

FACT(ARG)

Factorial

ABS

ABS(ARG)

Absolute value of argument

SIGN

SIGN(ARG)

Sign of the argument

CEIL

CEIL(ARG)

Smallest integer that is not less than the argument value

FLOOR

FLOOR(ARG)

Largest integer that is not greater than the argument value

TRUNC

TRUNC(ARG)

Value of the integer part of the argument

INT

INT(ARG)

Value of the integer part of the argument

FRAC

FRAC(ARG)

Value of the decimal places of the argument

ROUND

ROUND(ARG)

Round floating point argument