Programming language Chora: Built-in functions

Chora provides a set of built-in functions useful for diverse and common mathematical calculations. Following functions are available:

Function name

Short description

math_acos()

Calculates the arccosine of a value.

math_asin()

Calculates the arcsine of a value.

math_atan()

Calculates the arctangent of a value.

math_atan2()

Calculates the arctangent for a point.

math_ceil()

Rounds to the next highest integer value.

math_cos()

Calculates the cosine value.

math_exp()

Calculates an exponential expression with Euler's number as base.

math_floor()

Rounds to the next lowest integer value.

math_fract()

Calculates the fractional part of number.

math_length()

Calculates the length of a 2D vector.

math_log()

Calculates the natural logarithm.

math_log10()

Calculates the base 10 logarithm.

math_max()

Returns the largest value.

math_min()

Returns the lowest value.

math_mix()

Calculates a mixture of two values.

math_pow()

Calculates an exponential expression.

math_rand()

Generates a random value.

math_round()

Rounds to the next lowest or highest integer value.

math_sin()

Calculates the sine value.

math_sqrt()

Calculates a square root of a value.

math_tan()

Calculates the tangent value.

math_trunc()

Rounds by removing the fractional part.

float_infn()

Returns the Negative Infinity (-INF) floating point value.

float_infp()

Returns the Positive Infinity (+INF) floating point value.

float_nan()

Returns the Not a Number (NAN) floating point value.

EwIsPrimaryObject()

Verifies whether an object is the primary object within the actual prototyping session.

EwIsSecondaryObject()

Verifies whether an object is the primary object within the actual prototyping session or an object embedded within the primary object.