CS 323E Homework 10: Hilbert Matrices and Condition Number, Assignments of Health sciences

The tenth homework assignment for cs 323e, a university-level course on linear algebra. The assignment covers topics such as solving systems of linear equations using hilbert matrices, condition number, and determinants of pascal matrices. Students are required to use matlab to compute the solutions, determine the accuracy, and analyze the condition number of the matrices.

Typology: Assignments

Pre 2010

Uploaded on 08/27/2009

koofers-user-wdc-1
koofers-user-wdc-1 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 323E Homework 10 Due: April 22 2003
1. The MATLAB command hilb(n) generates an n×nHilbert matrix, which we denote
by Hn. Try n= 3,10,20 in the following problems:
1) (4 points)
Solve:
Hnxn=bn
for xn, where bn=Hnones(n,1).
Use the MATLAB command \ to solve the above system. (See help mldivide).
b) (2 points)
How close is xnto the exact solution? Comment.
c) (4 points)
Explain the accuracy of xn. Use the command cond to get the condition number of Hn.
2. (5 points)
Does the MATLAB command \ do pivoting? Give an example to justify your answer.
3. (Use pen & paper). Let
A=1016 1017
1016 1017
a) (2 points)
Compute the determinant of A.
b) (5 points)
Compute κ1(A) = kAk1· kA1k1.
c) (2 points)
Is Anearly singular? Comment.
d) (1 point)
Does the small magnitude of the determinant imply that Ais nearly singular?
4. The MATLAB command pascal(n) generates an n×nPascal matrix, which we denote
by Pn. Try n= 16 in the following.
a) (1 point)
Using MATLAB, find the determinant of Pn.
b) (1 point)
Using MATLAB, find the condition number of Pn.
c) (3 points)
Is Pnclose to singularity? Comment.

Partial preview of the text

Download CS 323E Homework 10: Hilbert Matrices and Condition Number and more Assignments Health sciences in PDF only on Docsity!

CS 323E Homework 10 Due: April 22 2003

  1. The MATLAB command hilb(n) generates an n × n Hilbert matrix, which we denote by Hn. Try n = 3, 10 , 20 in the following problems:
  1. (4 points) Solve: Hnxn = bn for xn, where bn = Hn ∗ ones(n, 1 ). Use the MATLAB command “\” to solve the above system. (See help mldivide). b) (2 points) How close is xn to the exact solution? Comment. c) (4 points) Explain the accuracy of xn. Use the command cond to get the condition number of Hn.
  1. (5 points) Does the MATLAB command “\” do pivoting? Give an example to justify your answer.
  2. (Use pen & paper). Let

A =

[

10 −^16 10 −^17

− 10 −^16 10 −^17

]

a) (2 points) Compute the determinant of A. b) (5 points) Compute κ 1 (A) = ‖A‖ 1 · ‖A−^1 ‖ 1. c) (2 points) Is A nearly singular? Comment. d) (1 point) Does the small magnitude of the determinant imply that A is nearly singular?

  1. The MATLAB command pascal(n) generates an n × n Pascal matrix, which we denote by Pn. Try n = 16 in the following.

a) (1 point) Using MATLAB, find the determinant of Pn. b) (1 point) Using MATLAB, find the condition number of Pn. c) (3 points) Is Pn close to singularity? Comment.