powered by
Computes rates from Fibonacci series.
fiboRate(n, PrintSer = FALSE, Uo = 0, U1 = 1)
Either a numeric, result of the rate of nth and (n-1)th numbers in Fibonacci series or all (n-1)th those rates.
nth
(n-1)th
integer, the size of the series.
logical, indicating if the series should be printed.
integer, the first number of the series.
Narcisse Yehouenou narcisstar211@gmail.com
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.
fibonacci
##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