fibonacci {dendrometry}R Documentation

Fibonacci series

Description

Generates numbers from Fibonacci series.

Usage

fibonacci(n, PrintFib = FALSE, Uo = 0, U1 = 1)

Arguments

n

integer, the size of the series.

PrintFib

logical, indicating if the series should be printed.

Uo, U1

integer, the first two numbers of the series.

Details

The series equation is Un = U_(n-2) /U_(n-1).

Value

Either an integer, result of the function or a vector of n first numbers of the series.

Author(s)

Narcisse Yehouenou narcisstar211@gmail.com

See Also

fiboRate

Examples

fibonacci(n = 10, PrintFib = TRUE)
fibonacci(n = 10, Uo = 1, U1 = 3, PrintFib = FALSE)

[Package dendrometry version 0.0.2 Index]