For help click on ? on top bar:
For help click on ? on top bar:
Here you can perform row operations on a matrix to perform Gaussian Elimination and Gauss-Jordon Elimination. A video is available to watch the basic way to use the webpage.
There are three basic row operations that are performed on a matrix. Any combination of these operations leaves a matrix row equivalent to the original matrix.
As long as the operations are not both placed in the same row, two operations may be done at once. Each operation should be separated by a comma. For example, the following matrix: \[ \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \] The two row operations -4R1+R2->R2, -7R1+R3->R3 will lead to the matrix: \[ \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 0 & -3 & -6 \\ 0 & -6 & -12 \end{array} \right] \]
When performing row operations on a matrix, it is desireable to have an 1 on some row of a column and zeros on the rest of the column. This is often referred to as pivoting about an element. For example, if we take the matrix: \[ \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \]
and wish to get a 1 in the first row, second column, we would perform the following row operations:
Which returns in the following matrix:
\[ \left[ \begin{array}{rrr} 1/2 & 1 & 3/3 \\ 3/2 & 0 & -3/2 \\ 3 & 0 & -3 \end{array} \right] \]
This can be done with the pivot command which has the form: pivot(i,j) which pivots about the ith row and jth column. For example, the above pivot can be done with the command pivot(1,2).
In addition, there is a pivot command called piv that doesn't introduce more fractions into the matrix. (However, if fractions are already present, then they will remain). This performs similar row operations to that of the pivot to get a column which is a multiple of the identity matrix. For example, we will redo the pivot command to the matrix above \[ \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \]
Applying piv(1,2), the resulting matrix is: \[ \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 1 & 0 & -1 \\ 1 & 0 & -1 \end{array} \right] \]
The command toDecimal will convert all the rational numbers to decimals (usually about 15 decimal places). For example starting with the matrix: \[ \left[ \begin{array}{rr} 1/2 & 1/3 \\ 4/9 & 1/7 \end{array} \right]\] and typing "toDecimal" in the input box results in \[ \left[ \begin{array}{rr} 0.5 &0.4444444444444444 \\ 0.3333333333333333& 0.14285714285714285\end{array}\right]\]
A number of errors can arise from various forms of input. The main error arises from a bad parsing error.
The matrix should be entered as each row on a separate line in the text box. Each element of the matrix should be separated by spaces and each element can either be an integer, rational (entered with a /) or decimal. Its important that each row has the same number of elements.
Although the input on row operations is fairly flexible, there are a few things to keep in mind.
The above settings have 2 effects. The first 4 options add horizontal and vertical lines at standard places in a matrix. This generally is used for visual effect and clarity.
The Include Add Row/Col to Simplex Tableau Button is for advanced operations usually involved with Linear Programming (Linear Optimization). Selecting this checkbox determines whether or not an Add Row/Col button appears as an option on the input line. Clicking on the button then adds a row (just above the objective row) that the user can input. In addition, a column of zeros is added just to the left of the last column.
The Show LaTeX button produces a button on the input line. This is used by those who typeset in LaTeX and this is an easy way to import matrices into a LaTeX document.
The Select Pivot button produces a button on the input line that allows pivots to be made by clicking directly on the desired element.