Gauss-Algorithmus schrittweise JavaScript.GGB6.js

Beispiele
X = {{1, 1, -2, 3, 1}, {3, 4, 2, -3, 42}, {-1, 6, -7, 1, 50}, {-3, -2, 1, -2, -14}}[br]X = {{1, 3, 5, 7, 9, 11}, {0, 1, 3, 5, 7, 9}, {3, 5, 7, 9, 11, 13}, {1, 0, 2, 4, 6, 8}, {1, 4, 6, 8, 10, 12}}[br][br]1,2,3,4 ; 5,6,7,8 ; 6,4,3,10[br]-1,1,-1,1,2 ; 8,4,2,1,-1 ; -27,9,-3,1,44 ; 1,1,1,1,0[br]9,-7,7,-4,7,83 ; 6,8,5,1,-8,9 ; 0,-7,-1,-6,1,38 ; -2,-2,6,-7,9,-18 ; -9,-2,-7,0,5,-60
Beispiel mit abhängigen Gleichungen (Zeilen)
Gauss-Schritt: Unendlich viele Lösungen
X={{1,3,5,7,9,11},{0,1,3,5,7,9},{3,5,7,9,11,13},{1,0,2,4,6,8},{1,4,6,8,10,12}}[br][br]Nach M3 entstehen in X Nullzeilen. Ich nehme die Nullzeilen weg, indem ich mit [b]Take/Teilliste[/b] die Matrix auf die Zeilen 1-3 kürze (gelb unterlegte Ergänzung einschreiben oder 0-Zeilen löschen). Dann kann der Algorithmus weiter angewendet werden und als Parameterlösung x4=r, x5=s angegeben werden:[br][br][math]\left( \begin{matrix}x1\\x2\\x3\\x4\\x5\end{matrix}\right)=\left(\begin{matrix}0\\-3\\4\\0\\0\end{matrix}\right)+r\left(\begin{matrix}0\\1\\-2\\1\\0\end{matrix}\right)+s\left(\begin{matrix}0\\3\\-4\\0\\1\end{matrix}\right)[/math][br][br][b]Gleichungssystem mit Parameter[/b][br][br][math] \left\{ x + 3 \; y - 2 \; z =-7 + 3 \; a \ , \ x - 5 \; y - z = 1 + a \ , \ x - 3 \; y - z = 6 - a \right\} [/math][br]1,3,-2,-7,3 ; 1,-5,-1,1,1 ; 1,-3,-1,6,-1[br][Eingabe Matrix (click)][br][br][math]X=\left(\begin{array}{rrrrr}1&3&-2&-7&3\\1&-5&-1&1&1\\1&-3&-1&6&-1\\\end{array}\right)[/math][br][Gauss Schritt auf Matrix X ausführen][br]...[br] x y z = a[br][math]\left(\begin{array}{rrrrr}1&0&0&\frac{83}{2}&-14\\0&1&0&\frac{5}{2}&-1\\0&0&1&28&-10\\\end{array}\right)[/math]
Close

Information: Gauss-Algorithmus schrittweise JavaScript.GGB6.js