Numerical Computing :: Project One

$24.99 $18.99

Execute the following lines in a Python interpreter. x = 9.4 y = x – 9 z = y – 0.4 print(z) What did you get for z? What should it be in exact arithmetic? Why is it not what it should be? See Sauer’s Numerical Analysis Chapter 0.3.3 for a complete description of the…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:

Description

5/5 – (2 votes)

Execute the following lines in a Python interpreter.

  • x = 9.4

  • y = x – 9

  • z = y – 0.4

  • print(z)

What did you get for z? What should it be in exact arithmetic? Why is it not what it should be?

See Sauer’s Numerical Analysis Chapter 0.3.3 for a complete description of the rounding phenomenon.

1

Numerical Computing :: Project One
$24.99 $18.99