Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a script GaussElimination.m in which ( 1 ) the user is prompted to enter a system of linear equations in augmented matrix form (
Write a script GaussElimination.m in which
the user is prompted to enter a system of linear equations in augmented
matrix form times where is arbitrary
the script obtains the solution of the linear system via GuassJordan
elimination using functions that implement elementary row operations
the script finally outputs the solution
The script should be broken into main parts:
Part : Prompts the user for the augmented system and calculates the number of
rows and columns. The number of columns should be greater than
the number of rows, otherwise the script should give an error message.
Part : If the system entered by the user is valid, the second part reduces
the system to upper triangular form following the algorithm discussed
in the tutorial making use of functions linearcomb and swap
Part : Next the system is further reduced to lower triangular. The algorithm
for this part should be the mirror image of the algorithm in Part
Part : Now that the system is purely diagonal, divide each row of the system
by its diagonal entry to obtain the solution. Output the solution.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started