de-CH
utf-8
math math-format expressions
Lineare Gleichungssysteme
g-04-03-a
multiple
500000
randRangeNonZero(-6, 6) randRangeNonZero(-6, 6) randRangeNonZero(-6, 6) randRangeNonZero(-6, 6) randRangeNonZero(-9, 9) randRangeNonZero(-9, 9) (function() { var lcm = getLCM(abs(A1), abs(A2)); var m1 = lcm / abs(A1); var m2 = lcm / abs(A2); if (A1 * A2 > 0) { if (m1 === 1) { m2 *= -1; } else { m1 *= -1; } } return [m1, m2]; })() (function() { var lcm = getLCM(abs(B1), abs(B2)); var m1 = lcm / abs(B1); var m2 = lcm / abs(B2); if (B1 * B2 > 0) { if (m1 === 1) { m2 *= -1; } else { m1 *= -1; } } return [m1, m2]; })() abs(MULT_1 * MULT_2) < abs(MULT_3 * MULT_4) ? true : false XY_FLAG ? [MULT_1, MULT_2] : [MULT_3, MULT_4] C1 * (B1 * MULT_1 + B2 * MULT_2) - B1 * (C1 * MULT_1 + C2 * MULT_2) A1 * (B1 * MULT_1 + B2 * MULT_2) getGCD(X_NUMER1, X_DENOM1) X_NUMER1 / X_GCD X_DENOM1 / X_GCD C1 * MULT_3 + C2 * MULT_4 A1 * MULT_3 + A2 * MULT_4 C1 * MULT_1 + C2 * MULT_2 B1 * MULT_1 + B2 * MULT_2 getGCD(Y_NUMER1, Y_DENOM1) Y_NUMER1 / Y_GCD Y_DENOM1 / Y_GCD A1 > 0 ? "" : "-" B1 > 0 ? "+" : "-" A2 / B2 > 0 ? "-" : "" A2 / B2 * A1 > 0 ? "-" : ""

Gegeben sei das folgende lineare Gleichungssystem:

expr(["+", ["*", A1, "x"], ["*", B1, "y"]]) = C1
expr(["+", ["*", A2, "x"], ["*", B2, "y"]]) = C2

Bestimmen Sie die Lösungen \color{blue}x und \color{red}y.

\color{blue}{x} = X_NUMER / X_DENOM
\color{red}{y} = Y_NUMER / Y_DENOM

Eine Möglichkeit, dieses Gleichungssystem zu lösen, liefert die Substitutionsmethode.

Hierbei wird die zweite Gleichung auf \color{blue}{x} umgeformt und der so entstandene Term wird in die erste Gleichung eingesetzt.

Beginnen Sie, indem Sie expr(["*", B2, "y"]) von beiden Seiten der zweiten Gleichung subtrahieren.

expr(["*", A2, "x"]) = expr(["+", ["*", -B2, "y"], C2]) .

Dividieren Sie beide Seiten durch A2 um \color{blue}{x} zu isolieren.

x = SIGN_1 decimalFraction( -B2 / A2, "true", "true" )y + decimalFraction( C2 / A2, "true", "true" ).

Ersetzen Sie \color{blue}{x} durch diesen Ausdruck in der ersten Gleichung.

A1_SIGNabs( A1 )( SIGN_1 decimalFraction( -B2 / A2, "true", "true" )y + decimalFraction( C2 / A2, "true", "true" )) + expr(["*", B1, "y"]) = C1

SIGN_2 decimalFraction( -B2 / A2 * A1, "true", "true" )y + decimalFraction( C2 / A2 * A1, "true", "true" ) + expr(["*", B1, "y"]) = C1.

Vereinfachen Sie durch Zusammenfassen und lösen Sie dann nach \color{red}{y} auf.

decimalFraction( B1 + ( -B2 / A2 * A1 ), "true", "true" )y + decimalFraction( C2 / A2 * A1, "true", "true" ) = C1

decimalFraction( B1 + ( -B2 / A2 * A1 ), "true", "true" )y = decimalFraction( C1 - ( C2 / A2 * A1 ), "true", "true" )

\color{red}{y} = fractionReduce(Y_NUMER, Y_DENOM).

Ersetzen Sie fractionReduce( Y_NUMER, Y_DENOM ) für \color{red}{y} in der ersten Gleichung.

expr(["+", ["*", A1, "x"], fractionReduce( B1 * Y_NUMER, Y_DENOM )]) = C1

expr(["*", A1, "x"]) = fractionReduce(C1 * Y_DENOM - B1 * Y_NUMER, Y_DENOM).

Sie erhalten zusammen \color{blue}{x = fractionReduce(X_NUMER, X_DENOM)} und \color{red}{y = fractionReduce(Y_NUMER, Y_DENOM)}.