Explain the programmer equals method an equivalence relation

Assignment Help Mathematics
Reference no: EM131636546

Question: The documentation for the Java programming language recommends that when a boolean "equals method" is defined for an object, it should be an equivalence relation. That is, if r is defined by xry 4 x.equals(y) for all objects in the class, then r should be an equivalence relation. In a graphics application, a programmer creates an object called a point, consisting of two coordinates in the plane. The programmer defines an equals method as follows: If p and q are any two points in the plane, then where c is a small positive number that depends on the resolution of the computer display. Is the programmer's equals method an equivalence relation? Justify your answer.

Reference no: EM131636546

Questions Cloud

Company using lean manufacturing method : An article stating a company using lean manufacturing method.
What are some specific images the poem mentions : What are some specific images the poem mentions. What is memorable about them
Open trade while maintaining acceptable level of security : What are the inherent conflicts of having free and open trade while maintaining an acceptable level of security?
Identify the myths surrounding the topic of sexual abuse : For this Discussion, you identify some of the myths surrounding the topic of sexual abuse and consider why they have remained so prevalent.
Explain the programmer equals method an equivalence relation : The documentation for the Java programming language recommends that when a boolean "equals method" is defined for an object.
What policy tools are available to government on the economy : What policy tools are available to government on the economy?
Potential hostile work environment sexual harassment suits : In an effort to avoid potential hostile work environment sexual harassment suits, some companies have created policies that forbid employees from dating,
Explain a social work skill you could use to assist yourself : Explain a social work skill you could use to assist yourself in dealing with your own negative feelings about terminating the therapeutic relationship.
What do you think are the solutions to the social security : What do you think are the solutions to the Social Security,Medicare, and entitlements budget shortfalls in the comingdecades?

Reviews

Write a Review

Mathematics Questions & Answers

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd