EGR 103/Fall 2018/Lec 16
The basics
Go to the Sakai page for the class and in the Resources section go to Chapra Pythonified. Please note - these files must not be shared outside of the class and should only be used by people who have purchased the Applied Numerical Methods with MATLAB for Engineers and Scientists, 4th ed., Steven C. Chapra. These three files contain Python versions of Example 8.1, Example 8.2 and Case Study 8.3. The text of Chapter 8 is language agnostic. Make sure you understand the math and the programming in each part of these!
Fangohr book
Be sure to read and understand Chapter 14 through "Solving systems of linear equations" (stopping before Computing Eigenvectors and Eigenvalues)
Parameter Sweeps
If some part of the system changes - a coefficient or a right-side constant or both - you generally need to change the A and/or b matrices, solve for the values, and then store the values you want to keep in a list or an array. See Python:Linear_Algebra and especially the examples at Changing coefficient matrix and Changing solution vector.
The example at Multiple solution vectors simultaneously is for people who have taken linear algebra before but will not be used in this class.