Back to functions

fib


fibonacci

Calculates the fibonacci value given a number.

Usage: nerdamer("fib(number)")


Parameters

expression number Returns the appropriate value if possible otherwise it returns the function with the simplified expression

Returns

Expression

EXAMPLES:
var x = nerdamer('fib(15)').evaluate();
console.log(x.text());
x = nerdamer('fib(0)').evaluate();
console.log(x.text());
OUTPUT:
Back to functions