CS
CS205A review_1

# Scientific Computing

• Notes
• PresidentHackerCaribou10582
• 3

This preview shows pages 1–3. Sign up to view the full content.

CS205 Review Session #1 Notes 1 HW 1.1 Hints 1.1 Addition Example Recall that the relative error is defined as: relative error = computed result - analytic result analytic result Consider the relative error induced by the addition of two positive numbers x and y . The simple act of storing each number in floating-point introduces some error yielding ¯ x = (1 + 1 ) x and ¯ y = (1 + 2 ) y . Performing the addition induces some roundoff error both for the operation itself as well as the storage of the result, which we will model as (1+ 3 )(¯ x + ¯ y ). So: R.E. = (1 + 3 )((1 + 1 ) x + (1 + 2 ) y ) - ( x + y ) x + y (1 + 3 )(1 + 4 )( x + y ) - ( x + y ) x + y = | (1 + 3 )(1 + 4 ) - 1 | = | (1 + 5 ) 2 - 1 | (1 + max ) 2 - 1 = 2 max + O ( 2 max ) 1.2 Aside Consider a sequence of multiplied rounding error factors: (1 + 1 )(1 + 2 ) · · · (1 + k ) It’s clear that the cumulative error can be bounded both above and below by: (1 - max ) k (1 + 1 )(1 + 2 ) · · · (1 + k ) (1 + max ) k From this bound, we can see that there must exist some * that satisfies: (1 + * ) k = (1 + 1 ) · · · (1 + k ) 1

This preview has intentionally blurred sections. Sign up to view the full version.

1.3 Multiplication Series Example
This is the end of the preview. Sign up to access the rest of the document.
• Fall '07
• Fedkiw

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern