reduce

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

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

View Full Document Right Arrow Icon
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: hill@math.temple.edursig='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='*****
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online