Stanford University MATH 104 math104 hw6-all answers correct
6 views 0 purchase
Course
Stanford UniversityMATH 104math104hw6
Institution
Stanford UniversityMATH 104math104hw6
Problem Set 6 Solutions
Problem 1:
(a)
We will show that f(x) = 2x computed via the algorithim f~(x) = x ⊕ x is backwards stable
(and hence also stable). Our computations in this problems are all with real numbers, so we may
take the norm to be absolute value. We need to show there exists ~ ...
problem set 6 solutions problem 1 a we will show that fx 2x computed via the algorithim fx x ⊕ x is backwards stable and hence also stable our comp
Written for
Stanford UniversityMATH 104math104hw6
All documents for this subject (1)
Seller
Follow
Examhack
Reviews received
Content preview
Problem Set 6 Solutions
Problem 1:
(a)
We will show that f (x) = 2x computed via the algorithim f˜(x) = x ⊕ x is backwards stable
(and hence also stable). Our computations in this problems are all with real numbers, so we may
take the norm to be absolute value. We need to show there exists x̃ with
m
|x − x̃|
er as
= O(machine )
|x|
co
eH w
that statisfies f˜(x) = f (x̃). Our control over the problem comes from choosing x̃, so we start by
o.
computing f˜(x) and figuring out what x̃ must be. Note that error in f˜ comes from two places: the
rs e
rounding error from initially turning x into a floating point number and the error from the floating
ou urc
point operation per 13.7.
o
With |1 |, |2 | < machine . Now we must choose x̃ so that f (x̃) = 2x̃ = 2x(1 + 1 )(1 + 2 ).
vi y re
Dividing by two, we can see that we must choose x̃ = x(1 + 1 )(1 + 2 ). Its left to verify this satifies
the condition of error in proportion to x:
ed d
ar stu
This finishes the proof that f is backwards stable.
is
(b)
Th
Now our function is f (x) = x2 computed as f˜(x) = x ⊗ x. It is also backwards stable. The
procedure is the same as above. First find what x̃ must be by expanding f˜, then to show x̃ is of
the right order.
sh
√
f˜ = (x(1 + 1 )) ⊗ (x(1 + 1 )) = x2 (1 + 1 )2 (1 + 2 ) = (x(1 + 1 ) 1 + 2 )2
√
So x̃ = x(1+1 ) 1 + 2 . The square root in there might be alarming, but since it is a squareroot
of one plus epsilon and not of epsilon alone, it okay since a squareroot of a number larger than one
√
gets smaller so | 1 + 2 | ≤ 1 + |2 | (2 might be negative hense the absolute values).
1
This study source was downloaded by 100000827039679 from CourseHero.com on 08-10-2021 03:18:23 GMT -05:00
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Examhack. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.99. You're not tied to anything after your purchase.