Arithmetic and Trigonometric

ABS

ABS(x)

Returns the absolute value of x.

The function is overloaded for any integer type and floatingpoint type. The type of x is used as return type.

SQRT

SQRT(x)

Returns the square root of x.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

Arithmetic and Trigonometric 1:

RESTRICTION:

Variable x must not be negative.

LN

LN(x)

Returns the natural logarithm of x, i.e. the logarithm to the base e.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

Arithmetic and Trigonometric 2:

RESTRICTION:

Variable x must be larger than 0.

LOG

LOG(x)

Returns the logarithm of x to the base 10.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

Arithmetic and Trigonometric 3:

RESTRICTION:

Variable x must be larger than 0.

EXP

EXP(x)

Returns e raised to the power of x.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

SIN

SIN(x)

Returns the sine of x where x is expected to be in radians.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

See also: The gSin function (chapter Trigonometric).

COS

COS(x)

Returns the cosine of x where x is expected to be in radians.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

See also: The gCos function (chapter Trigonometric).

TAN

TAN(x)

Returns the tangent of x where x is expected to be in radians.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

See also: The gTan function (chapter Trigonometric).

ASIN

ASIN(x)

Returns the arc sine of x within the interval [-PI/2,PI/2] radians.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

See also: The gASin function (chapter Trigonometric).

Arithmetic and Trigonometric 4:

RESTRICTION:

Variable x must lie within the interval [-1,1].

ACOS

ACOS(x)

Returns the arc cosine of x within the interval [0,PI] radians.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

See also: The gACos function (chapter Trigonometric)..

Arithmetic and Trigonometric 5:

RESTRICTION:

Variable x must lie within the interval [-1,1].

ATAN

ATAN(x)

Returns the arc tangent of x within the interval [-PI/2,PI/2] radians.

The function is overloaded for any floatingpoint type. The type of x is used as return type.

See also: The gATan function (chapter Trigonometric)..

ATAN2

ATAN2(y,x)

Returns the arc tangent of y/x within the interval [-PI,PI] radians.

The function is overloaded for any floatingpoint type. The smallest common type of x and y is used as return type.

See also: The gATan2 function (chapter Trigonometric)..

ADD

ADD(x1, x2, …)

Returns the sum of all parameters. The ADD-function can have an arbitrary number of parameters, but has to have at least one.

The function is overloaded for any integer and floatingpoint type. The smallest common type of all parameters is used as return type.

MUL

MUL(x1, x2, …)

Returns the product of all parameters. The MUL-function can have an arbitrary number of parameters, but has to have at least one. The infix-operator ‘*’ can be used as an alternative.

The function is overloaded for any integer and floatingpoint type. The smallest common type of all parameters is used as return type.

SUB

SUB(x,y)

Returns the difference x-y. The infix-operator ‘-’ can be used as an alternative.

The function is overloaded for any integer and floatingpoint type. The smallest common type of x and y is used as return type.

DIV

DIV(x,y)

Returns the quotient x/y. The infix-operator '/' can be used as an alternative.

The function is overloaded for any integer and floatingpoint type. The smallest common type of x and y is used as return type. If the return type is an integer type, the result is truncated towards zero.

Arithmetic and Trigonometric 6:

RESTRICTION:

Variable y must not be zero.

MOD

MOD(x,y)

Returns the remainder of the integer division x/y. The infix-operator ‘MOD’ can be used as an alternative.

The function is overloaded for any integer type. The smallest common type of x and y is used as return type. The result may also be negative. The equation x = MUL(DIV(x,y),y) + MOD(x,y) holds.

Arithmetic and Trigonometric 7:

RESTRICTION:

Variable y must not be zero.

EXPT

EXPT(x,y)

Returns x raised to the power of y.

The function is overloaded such that x has a floatingpoint type and y has a floatingpoint type or integer type. The type of x is used as return type, i.e. returned is a Real or an LReal floating point type. The infix-operator ‘**’ can be used as an alternative.

Arithmetic and Trigonometric 8:

RESTRICTION:

If x is negative, then y must be an integer.

Arithmetic and Trigonometric 9:

RESTRICTION:

If x is zero, then y must be larger than zero.