Tutorial 3
Tutorial 3
Tutorial - 3
Instructor: Dr. Rajshekar V Bhat
Tutor: Periyasamy M
Tutorial problems
1. Show that (1 + O(ϵmachine ))(1 + O(ϵmachine )) = 1 + O(ϵmachine ). The precise meaning of
this statement is that if f is a function satisfying f (ϵmachine ) = (1 + O(ϵmachine ))(1 +
O(ϵmachine )) as ϵmachine → 0, then f also satisfies f (ϵmachine ) = 1 + O(ϵmachine ) as
ϵmachine → 0.
2. Show that (1 + O(ϵmachine ))−1 = 1 + O(ϵmachine ).
Axioms
We need the following axioms to solve the upcoming problems.
(a) For all x ∈ R(C as well), there exists ϵ with |ϵ| ≤ ϵmachine such that f l(x) = x(1+ϵ).
(b) For all x,y ∈ F, there exists |ϵ| ≤ ϵmachine such that x ○
∗ y = (x ∗ y)(1 + ϵ).
3. Let f : C2 → C be the problem defined by f (x1 , x2 ) = x1 − x2 and the algorithm is
given by f˜(x1 , x2 ) = f l(x1 ) ⊖ f l(x2 ). Prove that the algorithm f˜ is backward stable.
4. Prove that the standard inner product on C2 is backward stable (if x,y∈ C2 then the
standard inner product is defined by α(x, y) = x∗ y).
5. Let f : C → C be the problem defined by f (x) = x + 1 and the algorithm is given by
f˜(x) = f l(x) ⊕ 1. Prove that the algorithm f˜ is stable, but not backward stable.
6. State whether the following algorithms are backward stable, stable but not backward
stable or unstable, and prove it or at least give a reasonably convincing argument.
(i) Data: x ∈ C. Solution: 2x, computed as x ⊕ x.
(ii) Data: x ∈ C. Solution: x2 , computed as x ⊗ x.
(iii) Data: x ∈ C \ {0}. Solution: 1, computed as x ○
÷ x.
(iv) Data: x ∈ C. Solution: 0, computed as x ⊖ x.