2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Abschnitt über Arithmetik in Prolog hinzugefügt; misc

This commit is contained in:
Martin Thoma 2014-03-23 19:28:44 +01:00
parent 82dd24d55b
commit 80e8df59d6
20 changed files with 194 additions and 27 deletions

View file

@ -0,0 +1,6 @@
fib(0,0).
fib(1,1).
fib(X,Y) :- X>1,
X1 is X-1, X2 is X-2,
fib(X1,Y1), fib(X2,Y2),
Y is Y1+Y2.