Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -1 +1,8 @@
|
|||
g (n,(a,b)) = (2*n,(2*a*b-a*a,a*a+b*b)) -- iterate g (1,(1,1)) ; a is nth
|
||||
import Data.Functor.Identity (Identity (..))
|
||||
|
||||
fibs :: [Integer]
|
||||
fibs = runIdentity (hsequence (repeat f))
|
||||
where f [] = Identity 1
|
||||
f [_] = Identity 1
|
||||
f xs = Identity ((xs !! (i-1)) + (xs !! i))
|
||||
where i = length xs-1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue