0
answers
0
watching
62
views
13 Dec 2019

For any real number r, let fl(r) denote the double precision representation of r in the IEEE floating point
standard. The following should illustrate that with limited precision, the laws of arithmetic do not hold.


A) Give an example of rational numbers x; y; z such that fl(fl(x + y) + z) 6= fl(x + fl(y + z)).
B) Give an example of a rational number x > 0 such that fl(x ∗ fl(1=x)) 6= fl(1).
C) Give an example of rational numbers x; y; z such that fl(fl(x ∗ y) ∗ z) 6= fl(x ∗ fl(y ∗ z))

For unlimited access to Homework Help, a Homework+ subscription is required.

discord banner image
Join us on Discord
Chemistry Study Group
Join now

Related textbook solutions

Related questions

Weekly leaderboard

Start filling in the gaps now
Log in