English

TRIK Studio

TRIK Studio Junior

INTEGRATIONS

TRIK controller

LEGO EV3 Controller

LEGO NXT Controller

Quadcopter Geoscan Pioneer

Built-in functions

In mathematical expressions, you can use the functions available for any platform.

Function

Description

Returns the time in milliseconds since the program started.

The sine of the angle, where "angle" is the angle in degrees.

The cosine of the angle, where "angle" is the angle in degrees.

The logarithm, where "a" is a number.

Exponent ("e" in the degree of argument "a").

Arcsine, where "a" is a number.

Arccosine, where "a" is a number.

Arctangent, where "a" is a number.

The arctangent of a1 / a2 with division check by 0.

Sign. Returns 1 if the argument “a” is positive, -1 if it is negative, and 0 if the argument is zero.

The square root of the argument "a". If the argument is negative, the variable will be assigned the value “NaN” (Not A Number).

The absolute value of number "a".

Rounds up the passed argument "a" to the nearest integer.

Rounds down the passed argument "a" to the nearest integer.

A random number between 0 and the passed argument “a”.

Last modified 9mo ago

Export as PDF

Copy link