summaryrefslogtreecommitdiffstats
path: root/AufgabeFFP1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'AufgabeFFP1.hs')
-rw-r--r--AufgabeFFP1.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/AufgabeFFP1.hs b/AufgabeFFP1.hs
index 88d46b4..b393fc2 100644
--- a/AufgabeFFP1.hs
+++ b/AufgabeFFP1.hs
@@ -38,3 +38,8 @@ fibdiag (n)
38 | otherwise = map (\x -> pd !! (fromInteger n - x) !! (x - 1)) [1..count] 38 | otherwise = map (\x -> pd !! (fromInteger n - x) !! (x - 1)) [1..count]
39 where 39 where
40 count = (fromInteger n + 1) `div` 2 40 count = (fromInteger n + 1) `div` 2
41
42-------------------------------------------------------------------------------
43
44fibdiags :: [[Integer]]
45fibdiags = map (fibdiag) [1,2..]