LunarCast Network

[Front Page] [Ph3 Home] [Math] [Implemented] [Settings]

Mathematical Operations

add
Adds the two values and returns the sum.
Real Syntax Real Real
Result add(a, b) Value A Value B

subtract
Subtracts the two values and returns the difference.
Real Syntax Real Real
Result subtract(a, b) Value A Value B

multiply
Multiplies the two values and returns the product.
Real Syntax Real Real
Result multiply(a, b) Value A Value B

divide
Divides the two values and returns the quotient.
Real Syntax Real Real
Result divide(a, b) Dividend Divisor

remainder (modulo)
Divides the two values and returns the remainder. (Modulo operation)
Real Syntax Real Real
Result remainder(a, b) Dividend Divisor

power
Returns the product of a base number and exponent.
Real Syntax Real Real
Result power(a, b) Base Exponent

min
Returns the lesser of the two values.
Real Syntax Real Real
Result min(a, b) Value A Value B

max
Returns the greater of the two values.
Real Syntax Real Real
Result max(a, b) Value A Value B

log
Returns the natural (base e) logarithm of the value.
Real Syntax Real
Result log(a) Value

log10
Returns the common (base 10) logarithm of the value.
Real Syntax Real
Result log10(a) Value

cos
Returns the cosine of the angle. Cosine is a value between -1 and 1 that corresponds to the x-value in a coordinate plane.
Real (-1 <-> 1) Syntax Real
Result cos(a) Value

sin
Returns the sine of the angle. Sine is a value between -1 and 1 that corresponds to the y-value in a coordinate plane.
Real (-1 <-> 1) Syntax Real
Result sin(a) Value

LunarCast Network