Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) Write a function defined as: def GaussElim(Aaug): Purpose: use the Gauss Elimination method to solve the set of linear equations encoded in Aaug Aaug:
a) Write a function defined as: def GaussElim(Aaug): Purpose: use the Gauss Elimination method to solve the set of linear equations encoded in Aaug Aaug: an augmented coefficient matrix of size N x N+1, containing the equation set: Ax-b return value: x-a vector (array) of size N, containing the solution to A x-b To test your function, write and call a def main0 that creates an augmented matrix, calls GaussElim, and prints the solution. Use the matrix below to demonstrate that your function gets the correct answer. Put all of this in a file named GaussElim.py. Upload that file to the BrightSpace dropbox (2736 2 3 3 446 6 9 5 3 3 (4217s) Notes: Do NOT use partial pivoting in this program. (I want everyone to get the exact same answer, and I don't want you working quite that hard). a) Write a function defined as: def GaussElim(Aaug): Purpose: use the Gauss Elimination method to solve the set of linear equations encoded in Aaug Aaug: an augmented coefficient matrix of size N x N+1, containing the equation set: Ax-b return value: x-a vector (array) of size N, containing the solution to A x-b To test your function, write and call a def main0 that creates an augmented matrix, calls GaussElim, and prints the solution. Use the matrix below to demonstrate that your function gets the correct answer. Put all of this in a file named GaussElim.py. Upload that file to the BrightSpace dropbox (2736 2 3 3 446 6 9 5 3 3 (4217s) Notes: Do NOT use partial pivoting in this program. (I want everyone to get the exact same answer, and I don't want you working quite that hard)
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