Making a new definition of Equal work with lists as well
- To: mathgroup at smc.vnet.net
- Subject: [mg63361] Making a new definition of Equal work with lists as well
- From: "Dan Bernstein" <dan.bernstein at gmail.com>
- Date: Mon, 26 Dec 2005 04:59:23 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I have defined Equal[a_CL,b_CL] := a[[1]]-a[[2]] == b[[1]]-b[[2]] and then CL[2,3] == CL[4,5] CL[2,3] == CL[2,4] evaluate to True and False respectively, as expected. However, {CL[2,3]} == {CL[4,5]} just stays in that form. What should I do to make list equality use my "CL equality"? Thanks in advance, -- Dan Bernstein