-
Notifications
You must be signed in to change notification settings - Fork 0
Row_Echelon_calc
JanOnBread edited this page Oct 12, 2023
·
3 revisions
Row_Echelon_calc
Here is what the calculator can do/ help sheet:
- Run the code (and hope nothing breaks) All input should be done in the console.
- Input the row and col number when asked (it should always be row < row + 1=col ie 3 rows, 4 col or 4 rows and 5 col)
- Input each digit reading left to right, top to bottom. You can input negative numbers but not fractions. Please try to convert your fraction to a decimal
- After it should print out what your matrix looks like, double-check this to what you want. If not, re-run the code.
- Use the following command on your matrix! If you want to automatically put it into row echelon form it, just input “solve()”.
NOTE: All a and b are read in the standard way (Ie row 1 is row 1. You would set a = 1 if you want to look at row 1, unlike the standard python where you would us 0 to represent the 1st row. )
AUTOMATICALLY CONVERT TO ROW ECHELON FORM: solve()
- Converts the current matrix to row echelon form automatically (steps will be recorded)
CONVERT ALL TO A FRACTION: convert_all()
- Converts the current matrix into fractions
CONVERT TO A FRACTION: convert_fraction(a,b)
- Where a and b are row and col numbers. Converts the float into a fraction.
NOTE: a and b can't be negative in this function
SWAP: swap (a,b)
- Where a and b are the row numbers. A row and b row are swapped and set as each other. NOTE: a and b can't be negative in this function
ADD: add (a,b,k)
- Where a and b are the row number and k is a constant. The sum of a and k and lots of b is then set as the new a. NOTE: a and b can't be negative in this function K is set to 1 by default
TAKE: take(a,b,k)
- Where a, and b are the row number and k is a constant. K lots of b is taken away from a and then is set as the new a. NOTE: a and b can't be negative in this function, k can be. k is set to 1 by default.
MULTI: multi(a,k)
- Where a is the row and k is a constant. A is multiplied by k, which can be negative, and is set to the new a.