2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 22:38:04 +02:00

Tippfehler korrigiert; Beispiele hinzugefügt

This commit is contained in:
Martin Thoma 2014-03-16 19:00:22 +01:00
parent deea4832fe
commit 0a336199c5
8 changed files with 68 additions and 22 deletions

View file

@ -1,5 +1,5 @@
fibAkk n n1 n2
| (n == 0) = n1
| (n == 1) = n2
| (n == 0) = n1
| (n == 1) = n2
| otherwise = fibAkk (n - 1) n2 (n1 + n2)
fib n = fibAkk n 0 1