mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Tippfehler korrigiert; Beispiele hinzugefügt
This commit is contained in:
parent
deea4832fe
commit
0a336199c5
8 changed files with 68 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue