Learn R Programming

dendrometry (version 0.0.2)

fiboRate: Fibonacci series ratio

Description

Computes rates from Fibonacci series.

Usage

fiboRate(n, PrintSer = FALSE, Uo = 0, U1 = 1)

Value

Either a numeric, result of the rate of nth and (n-1)th numbers in Fibonacci series or all (n-1)th those rates.

Arguments

n

integer, the size of the series.

PrintSer

logical, indicating if the series should be printed.

Uo, U1

integer, the first number of the series.

Author

Narcisse Yehouenou narcisstar211@gmail.com

Details

The series equation is Un = U_(n-2) /U_(n-1). The function returns golden number when Uo = 0, and U1 = 1. Larger n is, more precise the number (result) is.

See Also

fibonacci

Examples

Run this code
##Golden number (Le Nombre d'Or)
fiboRate(n = 18, PrintSer = FALSE, Uo = 0, U1 = 1)
##(1+sqrt(5))/2
fiboRate(n = 10, PrintSer = TRUE, Uo = 0, U1 = 1)

Run the code above in your browser using DataLab