Implement as a Python function named GaussElim_Solver, the nave…
Question Answered step-by-step Implement as a Python function named GaussElim_Solver, the nave… Implement as a Python function named GaussElim_Solver, the naïve Gaussian elimination solver for square matrices and no pivoting found in the Lecture 16 slides. The function should solve Ax=b for x. The function call should look like: >>> x = GaussElim_Solver(A, b) Do not worry about checking for correct sizes for A and b. Verify that your solver is working correctly by using it to solve for T from A6 Task 3 (you may copy your relevant code here). That is, replace the line: T = la.solve(A, b) in A6_task3.py with T = GaussElim_Solver(A, b). Save this new script file as A7.py which should also contain the GaussElim_Solver function. Along with your code, submit a table comparing the following three temperature values at each node: true value, value from la.solve function, value from GaussElim_Solver function. Note: Depending on how you built your matrix in A6, pivoting may be necessary (look out for “divide by zero” errors). However, since the GaussEliminationSolver function here assumes pivoting is not necessary, you may need to manually reorder the rows of A and b before solving. Computer Science Engineering & Technology Python Programming MEEN 357 Share QuestionEmailCopy link Comments (0)


