diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-11-13 17:49:02 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-11-13 17:49:02 +0100 |
| commit | ef3984e6fe2e85d72d5eb0749b77df95486a359b (patch) | |
| tree | da9a496ad33807e82644cccd81724207ef9f23c3 | |
| parent | 22b5d081ce34750e4a779d41f28e0b62b3cacaee (diff) | |
| download | unterricht-ef3984e6fe2e85d72d5eb0749b77df95486a359b.tar.gz unterricht-ef3984e6fe2e85d72d5eb0749b77df95486a359b.zip | |
separate logic operations slides
3 files changed, 97 insertions, 87 deletions
diff --git a/Info/11/MUG_SWG_SG/1/LogischeOperationen/.gitignore b/Info/11/MUG_SWG_SG/1/LogischeOperationen/.gitignore new file mode 100644 index 00000000..3bef42e7 --- /dev/null +++ b/Info/11/MUG_SWG_SG/1/LogischeOperationen/.gitignore @@ -0,0 +1 @@ +slides-operationen.pdf diff --git a/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides-operationen.md b/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides-operationen.md new file mode 100644 index 00000000..4addbca0 --- /dev/null +++ b/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides-operationen.md @@ -0,0 +1,93 @@ +--- +header-includes: | + \usepackage{tabulary} +--- + +## Operationen + +\begin{center} +\begin{tikzpicture}[scale=3] +\node[scale=5] at (-1, 0) {\textcolor{red} \huge +}; +\node[scale=5] at (-0.5, -0.3) {\textcolor{red} \huge *}; +\node[scale=5] at (0.2, 0.4) {\textcolor{red} \huge -}; +\node[scale=5] at (0.5, -0.4) {\textcolor{red} \huge /}; +\end{tikzpicture} +\end{center} + +\pause +\Large +Für welche Datentypen kennst du die Operationen +, -, *, / ? + +## Bekannte Operationen {.t} + +\begin{center} +\scalebox{1.2}{ +\begin{tabular}{l c c l} +Datentyp & Operation & $\rightarrow$ & Datentyp \\ +\hline +\textcolor{orange!70}{Zahl} & + & $\rightarrow$ & \only<1>{\phantom{\textcolor{orange!70}{Zahl}}}\only<2->{\textcolor{orange!70}{Zahl}} \\ +\textcolor{orange!70}{Zahl} & - & $\rightarrow$ & \only<2->{\textcolor{orange!70}{Zahl}} \\ +\textcolor{orange!70}{Zahl} & * & $\rightarrow$ & \only<2->{\textcolor{orange!70}{Zahl}} \\ +\textcolor{orange!70}{Zahl} & / & $\rightarrow$ & \only<2->{\textcolor{orange!70}{Zahl}} \\ +\only<3->{\textcolor{orange!70}{Zahl}} & > & $\rightarrow$ & \only<-3>{\phantom{\textcolor{blue!70}{Wahrheitswert}}}\only<4->{\textcolor{blue!70}{Wahrheitswert}}\\ +\only<3->{\textcolor{orange!70}{Zahl}} & < & $\rightarrow$ & \only<4->{\textcolor{blue!70}{Wahrheitswert}}\\ +\only<3->{\textcolor{orange!70}{Zahl}} & = & $\rightarrow$ & \only<4->{\textcolor{blue!70}{Wahrheitswert}}\\ +\only<-4>{\phantom{\textcolor{blue!70}{Wahrheitswert}} & & & \phantom{\textcolor{blue!70}{Wahrheitswert}} \\}\only<5>{\textcolor{blue!70}{Wahrheitswert} & ??? & $\rightarrow$ & \textcolor{blue!70}{Wahrheitswert} \\} +\end{tabular} +} +\end{center} + +## Logischen Operationen + +\large +Mit \boldred{logische Operationen} lassen sich Wahrheitswerte zu anderen Wahrheitswerten **umformern** oder **zusammenfassen**. + +**Welche logischen Operationen kennt ihr aus dem Alltag?** \vspace{0.5cm} +\pause + +::: columns +:::: {.column width=30%} +**Und** (engl. **and**) \vspace{0.2cm} + + + +Das Ergebnis ist nur dann \textit{wahr}, wenn [alle]{.underline} Eingabewerte \textit{wahr} sind. +:::: + +:::: {.column width=30%} +\pause +**Oder** (engl. **or**) \vspace{0.2cm} + + + +Das Ergebnis ist \textit{wahr}, wenn [mindestens]{.underline} einer der Eingabewerte \textit{wahr} sind +:::: + +:::: {.column width=30%} +\pause +**Nicht** (engl. **not**) \vspace{0.2cm} + + + +Das Ergebnis ist \textit{wahr}, wenn die Eingabe \textit{falsch} ist, und \textit{falsch}, wenn die Eingabe \textit{wahr} ist. +:::: +::: + +## Wahrheitstabelle + +\large +Die Ergebnisse der Logischen Operationen können in einer \boldred{Wahrheitstabelle} dargestellt werden. + +\begin{center} +\begin{tabulary}{\textwidth}{C | C | C | C | C} +Wert1 & Wert2 & W1 \textbf{UND} W2 & W1 \textbf{ODER} W2 & \textbf{NICHT} W1 \\ +\hline +Wahr & Wahr & \only<2>{\textcolor{green!60!black}{Wahr}}\only<3->{Wahr} & \only<3>{\textcolor{green!60!black}{Wahr}}\only<4->{Wahr} & \only<4>{\textcolor{red}{Falsch}}\\ +\hline +Wahr & Falsch & \only<2>{\textcolor{red}{Falsch}}\only<3->{Falsch} & \only<3>{\textcolor{green!60!black}{Wahr}}\only<4->{Wahr} & \only<4>{\textcolor{red}{Falsch}}\\ +\hline +Falsch & Wahr & \only<2>{\textcolor{red}{Falsch}}\only<3->{Falsch} & \only<3>{\textcolor{green!60!black}{Wahr}}\only<4->{Wahr} & \only<4>{\textcolor{green!60!black}{Wahr}}\\ +\hline +Falsch & Falsch & \only<2>{\textcolor{red}{Falsch}}\only<3->{Falsch} & \only<3>{\textcolor{red}{Falsch}}\only<4->{Falsch} & \only<4>{\textcolor{green!60!black}{Wahr}}\\ +\end{tabulary} +\end{center} diff --git a/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides.md b/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides.md index af1385f9..9a370237 100644 --- a/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides.md +++ b/Info/11/MUG_SWG_SG/1/LogischeOperationen/slides.md @@ -83,94 +83,10 @@ Die Ampelphasen sind als Kostüme des \textit{Ampel}-Sprites bereits vorhanden. {.center} -## Operationen - -\begin{center} -\begin{tikzpicture}[scale=3] -\node[scale=5] at (-1, 0) {\textcolor{red} \huge +}; -\node[scale=5] at (-0.5, -0.3) {\textcolor{red} \huge *}; -\node[scale=5] at (0.2, 0.4) {\textcolor{red} \huge -}; -\node[scale=5] at (0.5, -0.4) {\textcolor{red} \huge /}; -\end{tikzpicture} -\end{center} - -\pause -\Large -Für welche Datentypen kennst du die Operationen +, -, *, / ? - -## Bekannte Operationen {.t} - -\begin{center} -\scalebox{1.2}{ -\begin{tabular}{l c c l} -Datentyp & Operation & $\rightarrow$ & Datentyp \\ -\hline -\textcolor{orange!70}{Zahl} & + & $\rightarrow$ & \only<1>{\phantom{\textcolor{orange!70}{Zahl}}}\only<2->{\textcolor{orange!70}{Zahl}} \\ -\textcolor{orange!70}{Zahl} & - & $\rightarrow$ & \only<2->{\textcolor{orange!70}{Zahl}} \\ -\textcolor{orange!70}{Zahl} & * & $\rightarrow$ & \only<2->{\textcolor{orange!70}{Zahl}} \\ -\textcolor{orange!70}{Zahl} & / & $\rightarrow$ & \only<2->{\textcolor{orange!70}{Zahl}} \\ -\only<3->{\textcolor{orange!70}{Zahl}} & > & $\rightarrow$ & \only<-3>{\phantom{\textcolor{blue!70}{Wahrheitswert}}}\only<4->{\textcolor{blue!70}{Wahrheitswert}}\\ -\only<3->{\textcolor{orange!70}{Zahl}} & < & $\rightarrow$ & \only<4->{\textcolor{blue!70}{Wahrheitswert}}\\ -\only<3->{\textcolor{orange!70}{Zahl}} & = & $\rightarrow$ & \only<4->{\textcolor{blue!70}{Wahrheitswert}}\\ -\only<-4>{\phantom{\textcolor{blue!70}{Wahrheitswert}} & & & \phantom{\textcolor{blue!70}{Wahrheitswert}} \\}\only<5>{\textcolor{blue!70}{Wahrheitswert} & ??? & $\rightarrow$ & \textcolor{blue!70}{Wahrheitswert} \\} -\end{tabular} -} -\end{center} - -## Logischen Operationen - -\large -Mit \boldred{logische Operationen} lassen sich Wahrheitswerte zu anderen Wahrheitswerten **umformern** oder **zusammenfassen**. - -**Welche logischen Operationen kennt ihr aus dem Alltag?** \vspace{0.5cm} -\pause - -::: columns -:::: {.column width=30%} -**Und** (engl. **and**) \vspace{0.2cm} - - - -Das Ergebnis ist nur dann \textit{wahr}, wenn [alle]{.underline} Eingabewerte \textit{wahr} sind. -:::: - -:::: {.column width=30%} -\pause -**Oder** (engl. **or**) \vspace{0.2cm} - - - -Das Ergebnis ist \textit{wahr}, wenn [mindestens]{.underline} einer der Eingabewerte \textit{wahr} sind -:::: - -:::: {.column width=30%} -\pause -**Nicht** (engl. **not**) \vspace{0.2cm} - - - -Das Ergebnis ist \textit{wahr}, wenn die Eingabe \textit{falsch} ist, und \textit{falsch}, wenn die Eingabe \textit{wahr} ist. -:::: -::: -## Wahrheitstabelle - -\large -Die Ergebnisse der Logischen Operationen können in einer \boldred{Wahrheitstabelle} dargestellt werden. - -\begin{center} -\begin{tabulary}{\textwidth}{C | C | C | C | C} -Wert1 & Wert2 & W1 \textbf{UND} W2 & W1 \textbf{ODER} W2 & \textbf{NICHT} W1 \\ -\hline -Wahr & Wahr & \only<2>{\textcolor{green!60!black}{Wahr}}\only<3->{Wahr} & \only<3>{\textcolor{green!60!black}{Wahr}}\only<4->{Wahr} & \only<4>{\textcolor{red}{Falsch}}\\ -\hline -Wahr & Falsch & \only<2>{\textcolor{red}{Falsch}}\only<3->{Falsch} & \only<3>{\textcolor{green!60!black}{Wahr}}\only<4->{Wahr} & \only<4>{\textcolor{red}{Falsch}}\\ -\hline -Falsch & Wahr & \only<2>{\textcolor{red}{Falsch}}\only<3->{Falsch} & \only<3>{\textcolor{green!60!black}{Wahr}}\only<4->{Wahr} & \only<4>{\textcolor{green!60!black}{Wahr}}\\ -\hline -Falsch & Falsch & \only<2>{\textcolor{red}{Falsch}}\only<3->{Falsch} & \only<3>{\textcolor{red}{Falsch}}\only<4->{Falsch} & \only<4>{\textcolor{green!60!black}{Wahr}}\\ -\end{tabulary} -\end{center} +```{.include} +slides-operationen.md +``` ## \faIcon{pencil-alt} \faIcon{desktop} Arbeitsauftrag: Parkgebühren \hfill 20 min |
