Function: F = fibonacci (n)
Function: p = fibonacci (n, x)

Return symbolic Fibonacci numbers or Fibonacci polynomials.

Examples:

fibonacci(15)
  ⇒ (sym) 610
syms n
fibonacci(n)
  ⇒ (sym)
      F
       n

Polynomial example:

syms x
fibonacci(10, x)
  ⇒ (sym)
       9      7       5       3
      x  + 8⋅x  + 21⋅x  + 20⋅x  + 5⋅x

See also: euler, bernoulli.

Package: symbolic