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
| r""" | |
| Program to do Gaussian elimination for UChicago MATH 20250's homework. | |
| Given a square matrix of size n, print out the steps | |
| Intended to be put in align* environment. | |
| Example: | |
| > python3 | |
| """ | |
| from __future__ import annotations |
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
| r""" | |
| Program to do Gaussian elimination for UChicago MATH 20250's homework. | |
| Given k systems of equations (with the same coefficient matrix), solve them and print out each steps | |
| Intended to be put in align* environment. | |
| Example: | |
| > python3 gauss.py | |
| Number of equations (rows), variables (left columns), systems (right columns): 4 5 1 | |
| Elements of row 1 of the augmented matrix, input 6 space-separated fractions: 3 -1 1 -1 2 5 | |
| Elements of row 2 of the augmented matrix, input 6 space-separated fractions: 1 -1 -1 -2 -1 2 |