\( \newcommand{\br}[1]{\left( #1\right)} \newcommand{\logpar}[1]{\log\left( #1\right)} \newcommand{\cospar}[1]{\cos\left( #1\right)} \newcommand{\sinpar}[1]{\sin\left( #1\right)} \newcommand{\tanpar}[1]{\tan\left( #1\right)} \newcommand{\arcsinpar}[1]{\sin^{-1}\!\left( #1\right)} \newcommand{\arccospar}[1]{\cos^{-1}\!\left( #1\right)} \newcommand{\arctanpar}[1]{\tan^{-1}\!\left( #1\right)} \newcommand{\asin}[1]{\sin^{-1}\! #1} \newcommand{\acos}[1]{\cos^{-1}\! #1} \newcommand{\atan}[1]{\tan^{-1}\! #1} \newcommand{\asinh}[1]{\sinh^{-1}\! #1} \newcommand{\acosh}[1]{\cosh^{-1}\! #1} \newcommand{\atanh}[1]{\tanh^{-1}\! #1} \newcommand{\logten}[1]{\log_{10}\! #1} \definecolor{explaination}{RGB}{0, 166, 226} \newcommand{\ubrace}[2][u]{ { \color{explaination}{\underbrace{ {\color{black}{#2}} }_{#1}} } } \newcommand{\obrace}[2][u]{ { \color{explaination}{\overbrace{ {\color{black}{#2}} }^{#1}} } } \definecolor{highlight}{RGB}{181, 41, 118} \newcommand{\xplain}[1]{{ \textcolor{explaination} { \footnotesize{ #1 \newline}}}} \newcommand{\hilite}[1]{{ \textcolor{highlight} { { #1 }}}} \definecolor{lightergray}{gray}{.675} \newcommand{\hide}[1]{{ \textcolor{lightergray} { \footnotesize{ #1 \newline}}}} \newcommand{\mth}[1]{ { \textcolor{black} { { \small #1 } } } } \)

Übung: Brüche addieren und subtrahieren

randRangeNonZero( -9, 9 ) randRangeNonZero( -9, 9 ) randRangeExclude( 2, 9, [ N1, -N1 ] ) randRangeExclude( 2, 9, [ N2, -N2 ] ) getLCM( D1, D2 ) LCM / D1 LCM / D2

\large fraction( N1, D1 ) + fraction( N2, D2 ) = {?}

N1 / D1 + N2 / D2

Als Erstes müssen wir den kleinsten gemeinsamen Nenner finden. Der kleinste gemeinsame Nenner von D1 und D2 ist das kleinste gemeinsame Vielfache (\mathrm{kgV}) der Nenner dieser Brüche.

\mathrm{kgV}(D1, D2) = LCM

Dann müssen wir beide Brüche so zu erweitern, dass ihr Nenner LCM ist.

\begin{align*}fraction( N1, D1 )\cdot fraction( F1, F1 ) &= fraction( N1 * F1, LCM )\\ fraction( N2, D2 )\cdot fraction( F2, F2 ) &= fraction( N2 * F2, LCM )\end{align*}

Damit lautet die neue Aufgabe:

fraction( N1 * F1, LCM ) + fraction( N2 * F2, LCM ) = {?}

Jetzt müssen wir nur noch die Zähler addierensubtrahieren und erhalten:

fraction( F1 * N1 + F2 * N2, LCM)

Nachdem wir alles vereinfacht haben, erhalten wir:

fractionReduce( F1 * N1 + F2 * N2, LCM )