Add math exercise
This commit is contained in:
parent
3af16195c4
commit
51fe80737b
@ -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}
|
||||
|
||||
|
||||
25
exercises/maths/math-formulas.done.tex
Normal file
25
exercises/maths/math-formulas.done.tex
Normal 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}
|
||||
29
exercises/maths/math-formulas.raw.tex
Normal file
29
exercises/maths/math-formulas.raw.tex
Normal 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
3
exercises/maths/task.tex
Normal file
@ -0,0 +1,3 @@
|
||||
Setze die folgenden Formeln und beachte dabei die Größe der Klammern.
|
||||
|
||||
\exercisematerial{exercises/maths/math-formulas}
|
||||
1
main.tex
1
main.tex
@ -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}
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user