Learn R Programming

cmna (version 1.0.5)

fibonacci: Fibonacci numbers

Description

Return the n-th Fibonacci number

Usage

fibonacci(n)

Arguments

n

n

Value

the sequence element

Details

This function is recursively implements the famous Fibonacci sequence. The function returns the nth member of the sequence.

See Also

Other algebra: bilinear(), cubicspline(), division, horner(), isPrime(), linterp(), nthroot(), polyinterp(), pwiselinterp(), quadratic()

Examples

Run this code
# NOT RUN {
fibonacci(10)

# }

Run the code above in your browser using DataLab