# notes 1 - Topic Accuracy of Computations Gausss Method...

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

Topic Accuracy of Computations Gauss’s Method lends itself to computerization. The code below illustrates. It operates on an n n matrix named a , doing row combinations using the first row, then the second row, etc. for(row=1; row<=n-1; row++){ for(row_below=row+1; row_below<=n; row_below++){ multiplier=a[row_below,row]/a[row,row]; for(col=row; col<=n; col++){ a[row_below,col]-=multiplier * a[row,col]; } } } This is in the C language. The for(row=1; row<=n-1; row++){ .. } loop initial- izes row at 1 and then iterates while row is less than or equal to n - 1 , each time through incrementing row by one with the ++ operation. The other non- obvious language construct is that the -= in the innermost loop has the e ff ect of a[row_below,col]=-1 * multiplier * a[row,col]+a[row_below,col] . While that code is a first take on mechanizing Gauss’s Method, it is naive. For one thing, it assumes that the entry in the row,row position is nonzero. So one way that it needs to be extended is to cover the case where finding a zero

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.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern