You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

fibonacci

fibonacci(n)
Returns the nth number of the Fibonacci sequence.
COPY/// fibonacci(n)
//
//  Returns the nth number of the Fibonacci sequence.
//
//      n           desired Fibonacci number, non-negative integer, real
//
/// GMLscripts.com/license
{
    return round(power((1+sqrt(5))/2,argument0)/sqrt(5));
}

Contributors: xot

GitHub: View · Commits · Blame · Raw