Math

Math functions.

Min([type:class, [type:class)

Min function

Min function

PARAMETERS

[type:class - T] a Value a

[type:class - T] b Value b

RETURN

v - Min of a and b


Select([type:class, [type:class, [type:class)

Select one of two values

Select one of two values depending on the sign of another.

PARAMETERS

[type:class - T] x Value to test for positiveness

[type:class - T] a Result if test succeeded

[type:class - T] b Result if test failed

RETURN

v - a when x >= 0, b otherwise


Abs([type:class)

Abs function

Abs function

PARAMETERS

[type:class - T] x

RETURN

v - Absolute value of x