reduce

# reduce - function AEQ = reduce(A%last updated%REDUCE...

This preview shows pages 1–2. Sign up to view the full content.

function AEQ = reduce(A) %last updated 5/7/94%REDUCE Perform row reduction on matrix A by explicitly choosing% row operations to use. A row operation can be "undone", but% this feature cannot be used in succession.%% Use in the form ===> reduce(A) <===%% By: David R. Hill, Mathematics Dept., Temple Univ.% Philadelphia, PA. 19122 Email: [email protected]='F'; %Setting switch for rational display off initially. [m,n]=size(A);oldA=A;%imck=sum(sum(abs(imag(A)))); %checking if any complex entries if imck<1.e-10,imck=0;else,imck=1;end %setting switch for complex%if imck =1 then rational display option not available%myeps=1e-14; %my tolerance for zero in rational display%Set up strings to be used as messages.s0=' ';s1='Enter first row number. ';s2='Enter second row number. ';s3='Enter scalar multiplier. '; s4='Enter nonzero scalar multiplier. ';s5='Enter row number. ';s6='Enter number of row that changes. ';s7='Last row operation "undone". ';s8=' ***** "REDUCE" a Matrix by Row Reduction *****';s9=' The current matrix is:'; s10=' ENTER your choice ===> ';s11='Press ENTER to continue';s12='*****

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 01/26/2012 for the course MA 261 taught by Professor Stefanov during the Spring '08 term at Purdue.

### Page1 / 2

reduce - function AEQ = reduce(A%last updated%REDUCE...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online