Function reference · Special functions
fib
Computes a Fibonacci number for an integer index.
Integer inputs are evaluated exactly, including negative indices through the negafibonacci relation. Symbolic and non-integer inputs remain as fib(x).
Examples
These examples use Nerdamer Notation.
Evaluate an exact Fibonacci number.
fib(10)
// → 55Use the negafibonacci relation for a negative index.
fib(-4)
// → -3Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
fib(arg1)
nerdamer.fib
Call the operation through the default nerdamer import.
nerdamer.fib(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | — |
