Mathematica Subroutines for Pivoting.  Execute the cells in this group to activate to subroutines.  [Graphics:../Images/PivotingMod_gr_70.gif]

Mathematica Subroutine (Back Substitution).  Used after the pivoting strategy is used to reduce the matrix to upper-triangular form.

[Graphics:../Images/PivotingMod_gr_71.gif]

Mathematica Subroutine (No Pivoting Gaussian Elimination).  No row interchanges, i.e. no pivoting.

[Graphics:../Images/PivotingMod_gr_72.gif]

Mathematica Subroutine (Trivial Pivoting Gaussian Elimination).  If the diagonal element is zero, interchange the first non-zero element in the [Graphics:../Images/PivotingMod_gr_73.gif] column below the diagonal.

[Graphics:../Images/PivotingMod_gr_74.gif]

Mathematica Subroutine (Partial Pivoting Gaussian Elimination).  The diagonal element is interchanged so that it is larger in magnitude than the elements in the [Graphics:../Images/PivotingMod_gr_75.gif] column below it.

[Graphics:../Images/PivotingMod_gr_76.gif]

Mathematica Subroutine (Scaled Partial Pivoting Gaussian Elimination).  The diagonal element is interchanged so that it is larger in scaled magnitude than the scaled magnitude of the elements in the [Graphics:../Images/PivotingMod_gr_77.gif] column below it.

[Graphics:../Images/PivotingMod_gr_78.gif]

Mathematica Subroutine (Total Pivoting Gaussian Elimination).  The diagonal element is interchanged so that it is larger in magnitude than the elements in the block below and to the right of  it.  Both rows and columns are interchanged in this subroutine.  This is also called "complete pivoting" or "maximal pivoting."

[Graphics:../Images/PivotingMod_gr_79.gif]

[Graphics:../Images/PivotingMod_gr_80.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2005