math



Math fuctions and constants

List of constants

Name Type Description
pi float Pi value
e float Exponent

Functions

1. math::abs

Retruns absolute value of a number.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Initial number

List of results

Name Type Description
- float It’s absolute value

2. math::arcCos

Retruns angle of the given cosinus.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Cosinus of the angle

List of results

Name Type Description
- float Angle in radians

3. math::arcSin

Retruns angle of the given sinus.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Sinus of the angle

List of results

Name Type Description
- float Angle in radians

4. math::arcTan

Retruns angle of the given tangent.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Tangent of the angle

List of results

Name Type Description
- float Angle in radians

5. math::cos

Retruns cosinus of the angle.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Angle given in radians

List of results

Name Type Description
- float Cosinus

6. math::floor

Returns the largest integer less than or equal to a given number.

Type definition

func(value: float -> int)

List of arguments

Name Type Description
value float Initial number

List of results

Name Type Description
- int Result

7. math::frac

Retrieves the decimal part of a float number.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Initial number

List of results

Name Type Description
- float Decimal part of a number

8. math::log

Returns the logarithm of a number.

Type definition

func(base: float, value: float -> float)

List of arguments

Name Type Description
value float Logarithm base
value float Initial number

List of results

Name Type Description
- float Result value

9. math::rand

Return random float value greater or equal 0 and less than 1.

Type definition

func(-> float)

List of arguments

This function has no parameters

List of results

Name Type Description
- float Random value

10. math::sin

Retruns sinus of the angle.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Angle given in radians

List of results

Name Type Description
- float Sinus

11. math::tan

Retruns tangent of the angle.

Type definition

func(value: float -> float)

List of arguments

Name Type Description
value float Angle given in radians

List of results

Name Type Description
- float Tangent