100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Stanford University MATH 104 math104 hw6-all answers correct $11.99   Add to cart

Exam (elaborations)

Stanford University MATH 104 math104 hw6-all answers correct

 6 views  0 purchase
  • Course
  • Institution

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 ~ ...

[Show more]

Preview 1 out of 4  pages

  • August 10, 2021
  • 4
  • 2021/2022
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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

f˜(x) = (x(1 + 1 )) ⊕ (x(1 + 1 )) = 2(x)(1 + 1 )(1 + 2 )
aC s


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




|x − x̃| |x − x(1 + 1 )(1 + 2 )|
= = |1 − (1 + 1 + 2 + 1 2 )| = |1 + 2 + 1 2 | = O(machine )
|x| |x|

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


https://www.coursehero.com/file/12776988/math104hw6/

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83822 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.99
  • (0)
  Add to cart