Question

A comparison of floating point numbers x and y in practical code is typically given by |x − y| < E, for some user-chosen value of E > 0, to replace testing for exact equality by “Does x = y”?. The indicated comparison is not an equivalence relation between x and y.

1Ai. Which needed property fails to hold? (2 pts)

1Aii. Give a specific example of this failure to be an equivalence relation. (3 pts)

A comparison of floating point numbers r and y in practical code is typically given by for some user-chosen value ofe > 0, to replace testing for exact equality by Does x = y. The indicated comparison is not an equivalence relation between r and y. 1Ai. Which needed property fails to hold? (2 pts) 1Aii. Give a specific example of this failure to be an equivalence relation. (3 pts)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The equality relation that x and y are equal if |x - y| < E is not an equivalence relation.

Equivalence relation means it has to be refelexive, symmetric and transitive.

The transitive propert does not hold here.

If we take x = 2.5 y = 2.6 and z = 2.7 and E = 0.11

so x and y are equal as per the relation becuase the difference between them is 0.1 < E
so y and z are equal as per the relation becuase the difference between them is 0.1 < E

but this does not mean that x = z because in current case x is not equal to z. The difference between x and z is 0.2 > E. Transitivity fails and that is why this relation is not equivalence realtion.

Add a comment
Know the answer?
Add Answer to:
A comparison of floating point numbers x and y in practical code is typically given by...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 6. Let S-11, 2, 3, 6, 8, 10). For x,yeS, let x S y if xly. Answer the questions below: a) Is this an Equivalence Relation? Remember to check all three criteria (Reflexivity, Symmetry, and Transi...

    6. Let S-11, 2, 3, 6, 8, 10). For x,yeS, let x S y if xly. Answer the questions below: a) Is this an Equivalence Relation? Remember to check all three criteria (Reflexivity, Symmetry, and Transitivity). Be sure to give a short explanatio if the property holds and a specific counterexample if it does not hold. b) Is this a Partial Ordering? Remember to check all three criteria (Reflexivity Transitivity, and Anti-Symmetry). Be sure to give a short explanation if...

  • It's a weak acid strong base titration Experiment 4: Identification of an unknown acid by titration...

    It's a weak acid strong base titration Experiment 4: Identification of an unknown acid by titration Page 2 of 15 Background In this experiment, you will use both qualitative and quantitative properties to determine an unknown acid's identity and concentration. To do this analysis, you will perform a titration of your unknown acid sample-specifically a potentiometric titration where you use a pH meter and record pH values during the titration, combined with a visual titration using a color indi- cator...

  • Discussion questions 1. What is the link between internal marketing and service quality in the ai...

    Discussion questions 1. What is the link between internal marketing and service quality in the airline industry? 2. What internal marketing programmes could British Airways put into place to avoid further internal unrest? What potential is there to extend auch programmes to external partners? 3. What challenges may BA face in implementing an internal marketing programme to deliver value to its customers? (1981)ǐn the context ofbank marketing ths theme has bon pururd by other, nashri oriented towards the identification of...

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

  • summarizr the followung info and write them in your own words and break them into different...

    summarizr the followung info and write them in your own words and break them into different key points.   6.5 Metering Chamber: 6.5.1 The minimum size of the metering box is governed by the metering area required to obtain a representative test area for the specimen (see 7.2) and for maintenance of reasonable test accuracy. For example, for specimens incorporating air spaces or stud spaces, the metering area shall span an integral number of spaces (see 5.5). The depth of...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT