Add math exercise

This commit is contained in:
Knoch 2021-03-07 17:35:44 +01:00
parent 3af16195c4
commit 51fe80737b
6 changed files with 61 additions and 2 deletions

View File

@ -21,9 +21,10 @@ Die \cref{tbl:maths-common-commands,tbl:maths-logic-sets-braces} listen einige h
\mintinline{latex}{e^{\pi}} & $e^{\pi}$ \\
\mintinline{latex}{\sum_{i=1}\^{n}x^2} & $\sum_{i=1}^{n}x^2$ \\
\mintinline{latex}{12 \leq 4 x^2 + 13} & $12 \leq 4 x^2 + 13$ \\
\mintinline{latex}{{n \choose k}} & ${n \choose k}$ \\
\bottomrule
\end{tabular}
\caption{Häufig verwendete Befehle (Wurzel, Bruch, Exponent, Summe, Vergleichszeichen). Durch \mintinline{latex}{^{}} und \mintinline{latex}{_{}} werden die Inhalte in den Klammern hoch- oder tiefgestellt.}
\caption{Häufig verwendete Befehle (Wurzel, Bruch, Exponent, Summe, Vergleichszeichen, Binomialkoeffizient). Durch \mintinline{latex}{^{}} und \mintinline{latex}{_{}} werden die Inhalte in den Klammern hoch- oder tiefgestellt.}
\label{tbl:maths-common-commands}
\end{table}

View File

@ -0,0 +1,25 @@
\begin{minted}{latex}
% Fallbeschleunigung in Deutschland
$$9,81\,\frac{m}{s^2}$$
% pq-Formel
$$x_{1,2} = - \frac{p}{2} \pm \sqrt{\left(\frac{p}{2}\right)^2 - q}$$
% Mitternachtsformel
$$x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$
% Catalansche Zahlen
\begin{equation*}
C_n = \frac{1}{n+1} {2n \choose n} = \frac{(2n)!}{(n+1)!n!}
\end{equation*}
% Definition der Fakultät
$$n! = \prod_{i=1}^{n} i$$
% Menge aller ungeraden natürlichen Zahlen
$$\{ x \mid x \in \mathds{N}, \mathrm{ungerade}(x) \}$$
% Elimination $\neg\exists x$
$$\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)$$
\end{minted}

View File

@ -0,0 +1,29 @@
\begin{center}
\textbf{Fallbeschleunigung in Deutschland}
$$9,81\,\frac{m}{s^2}$$ \\
~ \\
\textbf {pq-Formel}
$$x_{1,2} = - \frac{p}{2} \pm \sqrt{\left(\frac{p}{2}\right)^2 - q}$$ \\
~ \\
\textbf{Mitternachtsformel}
$$x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ \\
~ \\
\textbf{Catalansche Zahlen}
\begin{equation*} C_n = \frac{1}{n+1} {2n \choose n} = \frac{(2n)!}{(n+1)!n!} \end{equation*} \\
~ \\
\textbf{Definition der Fakultät}
$$n! = \prod_{i=1}^{n} i$$ \\
~ \\
\textbf{Menge aller ungeraden natürlichen Zahlen}
$$\{ x \mid x \in \mathds{N}, \mathrm{ungerade}(x) \}$$
~ \\
\textbf{Elimination $\neg\exists x$}
$$\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)$$
\end{center}

3
exercises/maths/task.tex Normal file
View File

@ -0,0 +1,3 @@
Setze die folgenden Formeln und beachte dabei die Größe der Klammern.
\exercisematerial{exercises/maths/math-formulas}

View File

@ -30,6 +30,7 @@
\input{content/formatting-paragraphs.tex}
\input{content/lists.tex}
\input{content/maths.tex}
\exercise{maths}
\input{content/source-code-listings.tex}
\input{content/graphics.tex}
\input{content/tables.tex}

View File

@ -9,7 +9,7 @@
\usepackage{eurosym, tipa, textcomp, textgreek, upgreek}
% Mathematical symbols
\usepackage{amssymb, amsfonts, amsmath}
\usepackage{amssymb, amsfonts, amsmath, dsfont}
% References and URLs
\usepackage[hidelinks]{hyperref}