From 0aca7a6dd4d256ea4b7e9f78fb6284acedbb57b9 Mon Sep 17 00:00:00 2001 From: Stefan Gehr <stefan.kerman.gehr@fau.de> Date: Tue, 18 Oct 2022 17:02:01 +0200 Subject: [PATCH] fixing latex errors --- report/src/report.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/report/src/report.tex b/report/src/report.tex index fc8705d..7b12255 100644 --- a/report/src/report.tex +++ b/report/src/report.tex @@ -104,7 +104,7 @@ So ``eins'' for \(d=1\), ``zwei'' for \(d=2\), and so on. Then for a few special cases we needed to create the function sayPreNumber(\(n\)) that only says ``ein'' instead of ``eins'' for \(n=1\) and just calls our normal sayNumber(\(n\)) function otherwise. This is necessary for cases like \(n=31\) which is read as ``EINunddreißig'' instead of ``EINSunddreißig''. -Another special fucntion is sayAftNumber(\(n\)) which only our normal sayNumber(\(\n\)) function if \(n\ne 0\). +Another special fucntion is sayAftNumber(\(n\)) which only our normal sayNumber(\(n\)) function if \(n \ne 0\). It is necessary for numbers like 100, 200, 300, \dots, as we want to say ``zweihundert'' for \(n=200\) and not ``zweihundertnull''. \begin{algorithm} @@ -143,15 +143,16 @@ as we want to say ``zweihundert'' for \(n=200\) and not ``zweihundertnull''. \ElsIf{\(\text{tens}=2\)} \State say(zwanzig) \ElsIf{\(\hdots\)} - \State \(\vdots\) + \State \(\vdots\) \EndIf \EndIf \Else \Comment{3-digit number} \State hundreds \(\gets \lfloor n / 100 \rfloor\) \State sayPreNumber(hundreds) - \State sayAftNumber(\(n - 100 \times \text{hundreds}\) + \State sayAftNumber(\(n - 100 \times \text{hundreds}\)) \EndIf +\EndFunction \end{algorithmic} \end{algorithm} Finally our main function sayNumber(\(n\)) goes thorugh all the possible cases. -- GitLab