Expression
Expressions are used to define calculations used for different purposes. They can have variables to allow more advanced configuration.
Constants
pi- returns ratio of the circumference of a circle to its diametertau- returns ratio of the circumference of a circle to its radiuse- return the Euler's number
Operators
x + y- addx - y- subtractx * y- multiplyx / y- dividedx ^ y- exponentiation-x- negationx & y- andx | y- or!x- not<- less than<=- less than or equal>- greater than>=- greater than or equal=- equal<>- not equal
Functions
sin(x)- returns the sine of a number in radianscos(x)- returns the cosine of a number in radianstan(x)- returns the tangent of a number in radiansasin(x)- returns the inverse sine (in radians) of a numberacos(x)- returns the inverse cosine (in radians) of a numberatan(x)- returns the inverse tangent (in radians) of a numbersinh(x)- returns the hyperbolic sine of a numbercosh(x)- returns the hyperbolic cosine of a numbertanh(x)- returns the hyperbolic tangent of a numberlog(x)- returns the natural logarithm (base e) of a numberexp(x)- returns e raised to the power of a numbersqrt(x)- returns the square root of a numbercbrt(x)- returns the cube root of a numberfloor(x)- returns the largest integer smaller than or equal to the inputceil(x)- returns the smallest integer greater than or equal to the inputround(x)- returns the value of a number rounded to the nearest integertrunc(x)- returns the integer part of a number by removing any fractional digitsabs(x)- returns the absolute value of a numbersign(x)- returns -1 if the number is less than 0, 1 if the number is greater than 0, and 0 if the number is 0fract(x)- returns the fractional part of a numbermod(x, y)- returns the value of modulo of two numbersmix(x, y, t)- returns the linear interpolation between two valuesclamp(x, min, max)- returns a value constrained between two further valuesmin(x, y, z, ...)- returns the smallest of the numbers given as inputmax(x, y, z, ...)- returns the largest of the numbers given as input