Numerical Methods For Engineers Coursera Answers -
Before typing a single line of code, solve one iteration by hand. For example, in the Jacobi Method week, write the first iteration on paper. The Coursera answer is usually that first iteration rounded to 4 decimals.
1. Naive Gaussian Elimination (without pivoting) numerical methods for engineers coursera answers
2. Partial Pivoting (The real answer)
3. LU Decomposition (For multiple b vectors) Before typing a single line of code, solve
The Problem: Solve ( 0.0001x + y = 1 ) and ( x + y = 2 ). b = [1
The Trap: Naïve Gauss elimination fails due to division by a very small number (round-off error). The Coursera Answer: You must implement Partial Pivoting (swapping rows so the largest absolute value is the pivot). Code Snippet Logic:
% In MATLAB for Coursera
A = [0.0001 1; 1 1];
b = [1; 2];
% The correct answer after pivoting: x = 1.0001, y = 0.9999