Invert GMLscripts.com

Computation :: Real Numbers

acos(rad, n)
Returns the arccosine of a given angle for the nth repetition.
asin(rad, n)
Returns the arcsine of a given angle for the nth repetition.
factor(num)
Returns an array containing the prime factors of a given integer.
factor_quadratic(b, c)
Returns a string of factors for any quadratic equation (ax^2+bx+c=0), where a = 1 and b and c are integers.
fibonacci(n)
Returns the nth number of the Fibonacci sequence.
gcd(a,b)
Returns the greatest common divisor of the given integers.
is_even(value)
Returns true if a given value is even, false otherwise.
is_factor(divisor, value)
Returns true if a given divisor is a factor of a given value, false otherwise.
is_odd(value)
Returns true if a given value is odd, false otherwise.
is_power(value, base)
Returns true if a given value is a power of the a given base, or false if it is not (or if it cannot be determined).
lcm(a, b)
Returns the least common multiple of the given integers.
next_pow2(n)
Returns the next power-of-two greater than or equal to a given value.
round_fixed(number, places)
Returns a given number rounded to the a number of places.
select(n, choice0, choice1, choice2, ...)
Returns an argument selected by n.
select_index(value, choice0, choice1, choice2, ...)
Returns the index of an argument matching a given value.
select_relative(current, delta, choice0, choice1, choice2, ...)
Returns an argument in a position relative to a given value.
select_relative_wrap(current, delta, choice0, choice1, choice2, ...)
Returns an argument in a position relative to a given value.
sum_interval(m, n)
Returns the sum of consecutive integers between m and n (inclusive).
toggle(b)
Returns the given Boolean value negated.