Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
6
Task/Fibonacci-sequence/Python/fibonacci-sequence-18.py
Normal file
6
Task/Fibonacci-sequence/Python/fibonacci-sequence-18.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
fibseq = [1,1,]
|
||||
fiblength = 21
|
||||
for x in range(1,fiblength-1):
|
||||
xcount = fibseq[x-1] + fibseq[x]
|
||||
fibseq.append(xcount)
|
||||
print(xcount)
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
def analytic_fibonacci91(m):
|
||||
"""
|
||||
Binet's algebraic formula for the nth Fibonacci number.
|
||||
Good for up to n=91
|
||||
Uses numpy longdoubles:
|
||||
"""
|
||||
Binet's algebraic formula for the nth Fibonacci number.
|
||||
Good for up to n=91
|
||||
Uses numpy longdoubles:
|
||||
|
||||
See: https://artofproblemsolving.com/wiki/index.php/Binet%27s_Formula
|
||||
"""
|
||||
See: https://artofproblemsolving.com/wiki/index.php/Binet%27s_Formula
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
assert isinstance(m,int), "parameter must be an integer."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue