Quiz5 for Thu Mar 03-LUpivot

# Quiz5 for Thu Mar 03-LUpivot - [1/3 Naive Gaussian...

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

3/15/2016 [1/3] Naive Gaussian Elimination Code - Quiz: LUpivot - RELATE 1/1 Naive Gaussian Elimination Code Consider the following Python code, in which A is an matrix. for k in range(n): for i in range(k+1, n): # INSERT LINE HERE Recall the algorithm for Gaussian Elimination (pdf page 21) . n×n n × n

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

View Full Document
3/15/2016 [1/3] Naive Gaussian Elimination Code - Quiz: LUpivot - RELATE 1/1 Which of the following lines, inserted in the marked spot above, will lead to an implementation of Gaussian elimination? Your answer is correct. A correct answer is: ' A[i] -= A[k]*A[i,k]/A[k,k] '. Choice* A[i] -= A[k]*A[k,k]/A[i,k] A[k] -= A[i]*A[k,k]/A[i,k] A[k] -= A[i]*A[i,k]/A[k,k]
3/15/2016 [2/3] Naive Gaussian Elimination - Quiz: LUpivot - RELATE 1/1 Naive Gaussian Elimination Using naive Gaussian Elimination to solve the following matrix problem, what is the Frst pivot element?

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