2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 06:18:05 +02:00
This commit is contained in:
Martin Thoma 2014-02-02 13:49:19 +01:00
parent e7e4f64df5
commit f93467bad7
5 changed files with 11 additions and 4 deletions

View file

@ -48,6 +48,8 @@
\usepackage[german,nameinlink]{cleveref} % has to be after hyperref, ntheorem, amsthm
\usepackage{acronym}
\usepackage{minted} % needed for the inclusion of source code
\usemintedstyle{bw}
\usepackage{courier}
\usepackage{shortcuts}
\usepackage{fancyhdr}

View file

@ -5,7 +5,7 @@ in der Klausur als Nachschlagewerk zu dienen; es soll jedoch auch
vorher schon für die Vorbereitung genutzt werden können und nach
der Klausur als Nachschlagewerk dienen.
Ein Link auf das Skript ist unter \href{http://martin-thoma.com/programmierparadigmen-klausur/}{\path{martin-thoma.com/programmierparadigmen-klausur/}}
Ein Link auf das Skript ist unter \href{http://martin-thoma.com/programmierparadigmen/}{\path{martin-thoma.com/programmierparadigmen}}
zu finden.
\section*{Anregungen, Verbesserungsvorschläge, Ergänzungen}

View file

@ -1,9 +1,12 @@
$ ghci binomialkoeffizient.hs
GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help
GHCi, version 7.4.2:
http://www.haskell.org/ghc/
:? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Main ( binomialkoeffizient.hs, interpreted )
[1 of 1] Compiling Main
( binomialkoeffizient.hs, interpreted )
Ok, modules loaded: Main.
*Main> binom 5 2
10

View file

@ -1,2 +1,4 @@
fakAcc n acc = if (n==0) then acc else fakAcc (n-1) (n*acc)
fakAcc n acc = if (n==0)
then acc
else fakAcc (n-1) (n*acc)
fak n = fakAcc n 1