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?
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.
Got it thank you.
Join our real-time social learning platform and learn together with your friends!