Reference

Arithmetic

Absolute

Input One number.
Output The absolute value of the number.

Signature

Example

Negative

Input One number.
Output The negative of the absolute value of the number. Always returns a non-positive number.

Signature

Example

Increment

Input One number.
Output The number incremented by one.

Signature

Example

Decrement

Input One number.
Output The number decremented by one.

Signature

Example

Sign of a number

Input A number.
Output 1 if the number is positive. -1 if the number is negative. 0 if the number is zero.

Signature

Example

Fractional part

Input A number.
Output The fractional part of the number.

Signature

Example

Infinity

Input None.
Output Positive infinity.

Signature

Example

Add

Input Two numbers.
Output The sum of the numbers.

Signature

Example

Sum

Input Two numbers.
Output The sum of the numbers.

Signature

Example

Subtract

Input Two numbers.
Output The difference of the numbers.

Signature

Example

Multiply

Input Two numbers.
Output The product of the numbers.

Signature

Example

Divide

Input Two numbers.
Output The division of the numbers.

Signature

Example

Modulo

Input Two numbers.
Output The remainder of the division of the numbers.

Signature

Example

Power

Input Two numbers.
Output The first number raised to the power of the second number.

Signature

Example

Square root

Input One number.
Output The square root of the number.

Signature

Example

Round

Input One number.
Output The number rounded to the nearest integer.

Signature

Example

Floor

Input One number.
Output The largest integer less than or equal to the number.

Signature

Example

Ceiling

Input One number.
Output The smallest integer greater than or equal to the number.

Signature

Example

Truncate

Input A number.
Output The integer part of the number, discarding any fractional part.

Signature

Example

Round To

Input A number and the number of decimal places.
Output The number rounded to the specified decimal places.

Signature

Example

Minimum

Input Two numbers.
Output The smallest of the numbers.

Signature

Example

Maximum

Input Two numbers.
Output The largest of the numbers.

Signature

Example

Clamp

Input Three numbers.
Output The first number clamped to be in the range of the second and third number.

Signature

Example

Sine

Input A number (in radians).
Output The sine of the number.

Signature

Example

Cosine

Input A number (in radians).
Output The cosine of the number.

Signature

Example

Tangent

Input A number (in radians).
Output The tangent of the number.

Signature

Example

Logarithm

Input A number.
Output The natural logarithm of the number.

Signature

Example

Log Base

Input Two numbers (value and base).
Output The logarithm of the value with the specified base.

Signature

Example

As radians

Input An angle in degrees.
Output The angle converted to radians.

Signature

Example

As degrees

Input An angle in radians.
Output The angle converted to degrees.

Signature

Example

Is negative

Input A number.
Output True if the number is negative. False otherwise.

Signature

Example

Is positive

Input A number.
Output True if the number is positive. False otherwise.

Signature

Example

Is zero

Input A number.
Output True if the number is zero. False otherwise.

Signature

Example

Is even

Input A number.
Output True if the number is even. False otherwise.

Signature

Example

Is odd

Input A number.
Output True if the number is odd. False otherwise.

Signature

Example

Random integer

Input Two numbers.
Output A random integer between the two numbers (inclusive).

Signature

Example

Random decimal

Input None.
Output A random decimal number between 0 and 1.

Signature

Example

Compare

Input Two numbers.
Output 1 if the first number is bigger than the second. -1 if it is the smaller. 0 if they are equal.

Signature

Example