Gauss-Jordan Elimination Ben Rorabaugh (ft. Gauss
1 / 1

Gauss-Jordan Elimination Ben Rorabaugh (ft. Gauss

Author : debby-jeon | Published Date : 2025-05-12

Description: GaussJordan Elimination Ben Rorabaugh ft Gauss and Jordan Purpose Invert a matrix Find the specific solution to a system of equations Elementary Row Operations Swap two rows Multiply an entire row by a nonzero scalar Add a multiple

Presentation Embed Code

Download Presentation

Download Presentation The PPT/PDF document "Gauss-Jordan Elimination Ben Rorabaugh (ft. Gauss" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Transcript:Gauss-Jordan Elimination Ben Rorabaugh (ft. Gauss:
Gauss-Jordan Elimination Ben Rorabaugh (ft. Gauss and Jordan) Purpose Invert a matrix Find the specific solution to a system of equations Elementary Row Operations Swap two rows Multiply an entire row by a (non-zero) scalar Add a multiple of a row to another row Pivoting Pivoting refers to choosing one row with a more easily workable number and swapping it so that the workable number is on the diagonal. Gauss-Jordan Elimination in the C++ Library Pivoting in the C++ Library The gaussj() function finds a pivot by finding the greatest element in the desired row. Pivoting in the C++ Library (continued) The function then swaps the chosen pivot row so that the pivot element is on the diagonal. Computing the Solution The function then divides all other rows by the pivot element. Computing the Solution (continued) The function then subtracts the pivot row from all other rows. This entire process is repeated for all rows in the input matrix. Example g++ main.cpp -o main ./main in3.txt Input: 2w + 3x + 1y - 2z = -4 0w - 2x + 3y - 5z = 3 2w + 5x - 1y - 1z = -5 3w + 2x + 0y + 4z = 6 Expected Solution: w = -2 x = 0 y = 6 z = 3 Changes I made to the textbook's code The textbook's code will always calculate the inverse of matrix A, with the specific solution in column B, if applicable. With the addition of a boolean parameter and some conditions using the parameter, we can have the program eliminate columns as expected The elimination algorithm for an n x n matrix Loop n times: Find the largest (abs. value) element in the matrix (that hasn't already been pivoted with); this is the pivot element If the pivot element is not on the diagonal, swap rows so that it is Normalize the row of the pivot element Loop through all non-pivot rows: Subtract the pivot row times the coefficient of the row's element in the pivot column

Download Document

Here is the link to download the presentation.
"Gauss-Jordan Elimination Ben Rorabaugh (ft. Gauss"The content belongs to its owner. You may download and print it for personal use, without modification, and keep all copyright notices. By downloading, you agree to these terms.

Related Presentations

Jordan Jordan, Syria, Lebanon Jenny Jordan, Extension 4-H Specialist Development of Jordan International USAR Team Carl Friedrich Gauss English Skit Willows & The Jordan river Hawkes Learning Systems MECH345 Introduction to Finite Element Methods Parallel Gauss Sieve Algorithm The Jordan Curve theorem: Supporting Jordan’s Water Scarcity and Drought Preparedness and Multivariable Linear Systems and Row Operations