Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
' Fibonacci sequence - Binet's Formula - 31/07/2018
|
||||
n = 69
|
||||
sq5=Math.SquareRoot(5)
|
||||
phi1=(1+sq5)/2
|
||||
phi2=(1-sq5)/2
|
||||
phi1n=phi1
|
||||
phi2n=phi2
|
||||
For i = 2 To n
|
||||
phi1n=phi1n*phi1
|
||||
phi2n=phi2n*phi2
|
||||
TextWindow.Write(Math.Floor((phi1n-phi2n)/sq5)+" ")
|
||||
EndFor
|
||||
Loading…
Add table
Add a link
Reference in a new issue