Exam 170824
Exam 170824
You are allowed to use a pocket calculator, but no other material of any
kind. Please answer the problems in Swedish or English.
Problems
1. Let
3 0 −2 1 2 0
A = −1 0 1 , where A−1 = 0 1 1 .
1 1 −1 1 3 0
Compute the condition number of the matrix A with respect to the 1-norm.
How large can the solution’s relative error kδxk1 /kxk1 be when solving
Ax = b with the data error kδbk1 /kbk1 = 0.2? (2p)
c) Introduce a suitable notation and write out Newton’s method for the
problem at hand. (2p)
1
4. Construct the Newton interpolation polynomial that interpolates the data
below. (3p)
x 0 1 2
y 1 -1 2
x 0 1 2 4
y 1 0 -1 -2
2
8. Consider the initial value problem
a) Write down the implicit Euler discretization of the initial value prob-
lem. (1p)
A = [1 3 ; 2 2]
y = [-1 ; 1]
n = 12
for k = 1:n
yh = y/norm(y,2)
y = A*yh
sigma = yh’*y
end
sigma_out = sigma
y_out = y/norm(y,2)
Lycka till!