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

Invert gmlscripts.pro

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.pro/license
{
    return round(power((1+sqrt(5))/2,argument0)/sqrt(5));
}

Contributors: xot

GitHub: View · Commits · Blame · Raw