This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '''Using Gaussian Elimination Method to solve 3x3 systems of equations. | |
| We'll use numpy arrays to store and manipulate the equations. For a video demonstrating the process, | |
| I found https://youtu.be/Dj84vEb4Zko to be helpful. | |
| ''' | |
| import numpy as np | |
| A = np.zeros((3, 3)) #This will store the coefficients of the variables as a 3x3 numpy array | |
| x = np.zeros((3, 1)) #This stores the values of the variables as a 3x1 numpy array | |
| b = np.zeros((3, 1)) #This will store what the equations are equal to as a 3x1 numpy array |
NewerOlder