Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 17 Online
OpenStudy (anonymous):

In Problem 1 of ps9 how do check for equality between two triangles (__eq__ method) if all we are given is the base and the height? Don't we need more information to compare 2 triangles and see if they are equal (congruent) or not?

OpenStudy (anonymous):

Equality is not a unique concept. One could define two triangles to be equal if they are similar. A second definition of equality could be that two triangles are equal if they are congruent. In this particular problem, one may define two triangles to be equal if the they have the same base length and same heigt length. Note: this choice of equality does not imply nor is it implied by similar or congruence. For a relationship R on a set X to be called an equal relationship, it is necessary and sufficient that it satisfies three properties: for all x in X, xRx, if xRy then yRx, if xRy and yRz, then xRz.

OpenStudy (anonymous):

Got it thank you.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!