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.
RESTRICTION: Variable |
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.
RESTRICTION: Variable |
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.
RESTRICTION: Variable |
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).
RESTRICTION: Variable |
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)..
RESTRICTION: Variable |
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.
RESTRICTION: Variable |
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.
RESTRICTION: Variable |
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.
RESTRICTION: If |
RESTRICTION: If |