28.11.2014 Views

MTH3051 Introduction to Computational Mathematics - User Web ...

MTH3051 Introduction to Computational Mathematics - User Web ...

MTH3051 Introduction to Computational Mathematics - User Web ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

School of Mathematical Sciences<br />

Monash University<br />

3.7 Addition<br />

0 . 1 2 3 4 5 6 7 8 9 0<br />

0 . 5 6 7 8 1 2 3 4 5 6<br />

0 . 6 9 1 2 6 9 1 3 4 6<br />

From this we observe (assuming no carries)<br />

E R (x + y) = E R (x) + E R (y)<br />

= 10 −N O (x) + 10 −N O (y)<br />

= 10 −N O (x + y) (since x, y > 0)<br />

So we expect N digits in the final answer – i.e. no loss of significant digits.<br />

Example 3.10<br />

Given that ˜z is the numerical result for z = x + y, how many digits in ˜z can we take<br />

as being exactly correct? Which digits might be in error (and why)? Hint: think about<br />

carries (if any).<br />

3.8 Subtraction<br />

Let us suppose that the first Q digits of x and y match<br />

16-Feb-2014 32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!