\( \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: Abstand zwischen zwei Punkten

randRangeExclude( -8, 10, [0, 1, 2] ) randRangeExclude( -10, 8, [-1, -2, -3, -4] ) randRangeExclude( -8, 8, [-1, 0] ) randRangeExclude( -8, 8, [-1, 0] ) abs( X2 - X1 ) abs( Y2 - Y1 ) X_DIST * X_DIST + Y_DIST * Y_DIST

Berechne den Abstand zwischen den folgenden beiden Punkten: (X1, Y1) und (X2, Y2).

graphInit({ range: 11, scale: 20, tickStep: 1, labelStep: 1, unityLabels: false, labelFormat: function( s ) { return "\\small{" + s + "}"; }, axisArrows: "<->" }); label([ X1, Y1 ], "(" + X1 + ", " + Y1 + ")", "left", { color: "#09A8E2" } ); label([ X2, Y2 ], "(" + X2 + ", " + Y2 + ")", "right", { color: "#B5276A" } ); circle([ X1, Y1 ], 3 / 10, { stroke: "none", fill: "#09A8E2" } ); circle([ X2, Y2 ], 3 / 10, { stroke: "none", fill: "#B5276A" } );
HYP2

Veränderung von x: X2 - negParens(X1) X1 - negParens(X2) = X_DIST

style({ color: "#B22121", stroke: "#B22121" }, function() { line( [ X1, Y1 ], [ X2, Y1 ] ); label( [ ( X1 + X2 ) / 2, Y1 ], X_DIST, "above" ); });

Veränderung von y: Y2 - negParens(Y1) Y1 - negParens(Y2) = Y_DIST

style({ color: "#B5276A", stroke: "#B5276A" }, function() { line( [ X2, Y1 ], [ X2, Y2 ] ); label( [ X2, ( Y1 + Y2 ) / 2 ], Y_DIST, "left" ); });

Der Abstand zwischen beiden Punkten ist die Länge der Hypotenuse des rechtwinkligen Dreiecks.

style({ stroke: "#EF2978" }, function() { line( [ X1, Y1 ], [ X2, Y2 ] ); });

Nach dem Satz des Pythagoras ist diese Länge gleich:

\sqrt{X_DIST^2 + Y_DIST^2}

{}= \sqrt{Math.pow( X_DIST, 2 ) + pow( Y_DIST, 2 )}

{}= formattedSquareRootOf(HYP2)

Der Abstand ist gleich der Länge einer Seite, und diese ist: X_DIST+Y_DIST