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>).

makelist(fib(i), i, 1, 10);

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-pochhammer

pochhammer (5, 2);

fib(5);

Calculate

fib-float-makelist

makelist(fib(i), i, 1...

float(123/2);

Calculate

fib

fib(30);

Calculate

fib

a:1;

b:1;

fib:a+b;

Calculate

fib

fib(n) +fib(n+1);

Calculate

fib

fib(0);

fib(1);

fib(2);

Calculate

fib-makelist

makelist(fib(i), i, 1...

Calculate

fib-sqrt

fib(n):=(%phi^n-(-%ph...

Calculate

fib-sum

(sum(i*fib(i)^2,i,0,n...

Calculate