Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Fib Calculator

Fib

Function: fib (<n>) Returns the <n>th Fibonacci number. fib(0) equal to 0 and fib(1) equal to 1, and fib (-<n>) equal to (-1)^(<n> + 1) * fib(<n>).

fib(n);
F(n):= n-2 + n-1;
F(2)

After calling fib, prevfib is equal to fib (<x> - 1), the Fibonacci number preceding the last one computed.

          (%i1) map (fib, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
          (%o1)         [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]

There are also some inexact matches for fib. Try ?? fib to see them.

(%o1)                                true
(%i2) 

Fib Example

Related Examples

fib-inf-limit

fib(n);

limit (f[n]/f[n-1], n...

Calculate

fib

n:5;

fib(n);

F(n):= n-2 + n-1;

Calculate

fib

n:5;

fib(10000);

F(n):= n-2 + n-1;

Calculate

fib

n:5;

fib(100);

F(n):= n-2 + n-1;

Calculate

fib-inf-limit

fib(n);

limit (fib[n]/fib[n-1...

Calculate

fib-sum

sum(fib(i), i, 10, 17);

Calculate

fib-numer-sum

sum(1/fib(n),n,1,1000...

Calculate

fib-true

d:a and b;

e:a and c;

f1:a and (not b) and ...

Calculate

fib

n:5;

fib(20);

F(n):= n-2 + n-1;

Calculate

fib

d:a and b;

e:a and c;

f1:a and (not b) and ...

Calculate