Beruflich Dokumente
Kultur Dokumente
Let 𝑥 ∈ 𝔽30 , write the Matlab code to assign the following array
30
𝑥(𝑖)
𝑆(𝑘) = ∏ , 𝑘 = 1, … , 30
𝑥(𝑘) − 𝑥(𝑖)
𝑖=1,𝑖≠𝑘
𝑛−1
𝑥𝑖+1
𝑠 = ∑| |
𝑥𝑖
𝑖=1
Let 𝑥 be an array of 𝑛 numbers, write the Matlab code to compute the following
𝑥2 𝑥3 𝑥𝑛
max {1,2 | | , 3 | | , … , 𝑛 | |}
𝑥1 𝑥1 𝑥1
𝑘
tip: observe that |𝑘| = 1 and try to solve both with a single instruction (matlab style) or with
a code snippet
Let 𝑥 be an array of 𝑛 numbers, write the Matlab code to compute the following
2 𝑛
max {|𝑥(1)|, √|𝑥(2)|, … , √|𝑥(𝑛)|}
𝑛
tip: write the √𝑘 as 𝑘 (… ) and try to solve both with a single instruction (matlab style) or
Let 𝐴 be a squared matrix of 25 elements. Write the Matlab code to swap the first and the
1 2 3 4 5 6
4 3 4 3 6 7
Let 𝐴 = 0 5 0 4 2 2 . What is the expected output for the following Matlab
4 5 0 8 6 3
1 2 8 6 4 5
[2 2 9 5 7 0]
instruction?
𝐵 = 𝐴(1: 3, [8 6 4 1])
Numerical Analysis – example of theoretical questions
Describe the Newton’s method to solve the nonlinear equation 𝑓(𝑥) = 0. What happens in
Describe the general theory for one-point iteration methods 𝑥 = 𝑔(𝑥) and how to use that
Are there any similarities between the Newton’s method and the general theory for one-
Describe the Newton’s method for nonlinear systems and its “frozen” variant. What is
“frozen” referred to? What are the implications in terms of flops? (floating point operations)
Describe the least squares approximation problem and the linear regression 𝑦 = 𝛼𝑥 + 𝛽. Why
Describe Gaussian Elimination method to find the numerical solution of the linear system
𝐴𝒙 = 𝒃
Describe the 𝐴 = 𝐿𝑈 matrix decomposition with both Crout and Doolittle methods