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

  How much money will be in her account if she retires

When she is 30, Sue starts making annual deposits of $2150 into a bond fund that pays 5 percent annual interest compounded continuously.

  Finding solutions of systems of linear equations

Compare the advantages and disadvantages of substitution and elimination methods with the matrix method to solve systems of linear equations and the relationship these have with matrix method solving.

  Wealthys taxable income

Without the contribution, the Wealthys taxable income for 2012 would be $2 million. What impact would the contribution have on the Wealthys 2012 tax bill?

  What dimensions would yield the maximum area

a carpenter is building a rectangular room with a fixed perimeter of 104 ft. what dimensions would yield the maximum area? what is the maximum area?

  Find the equation of the tangent line

Estimate the instantaneous rate of change of the function f(x) = x ln x at x = 1 and at x = 2. What do these values suggest about the concavity of the graph.

  Problem related to financial planning

FINANCIAL PLANNING Joe plans to deposit $200 at the end of each month into a bank account for a period of 2 yr, after which he plans to deposit $300.

  Probability of winning the massachusetts lottery

To win the jackpot of the Massachusetts lottery game in bygone days, you had to correctly pick the six numbers selected from the numbers 1 through 36. What was the probability of winning the Massachusetts lottery? (round to seven decimal places)

  Constant horizontal force

If we add 20 kJ of energy to 2 kg of liquid water originally at 20 C, 100kPa, a) How hot does it get if it is heated at constant pressure? b) How fast does it move if it is pushed by a constant horizontal force?

  What are the dimensions of this rectangle

What are the dimensions of this rectangle?

  What will his gross income be after the cola takes effect

Jamal currently earns $20,000 a year in gross wages. On January 1, he is due to receive a 2% COLA.

  Change of variables

Let R be the elliptical region in the first quadrant bounded by x^2/3^2 +y^2/2^2 =1. Use the change of variables, x =3u , y =2v , to evaluate the area of R .

  Determining the discrete probability

Reflect on your work or your life. Discuss a time where you used discrete probabilities to help solve a problem. How did this type of thinking help you in that process?

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