MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Making a new definition of Equal work with lists as well


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


  • Prev by Date: Re: Questions regarding MatrixExp, and its usage
  • Next by Date: Re: Re: problems with memory usage
  • Previous by thread: Puzzle Challenge
  • Next by thread: Re: Making a new definition of Equal work with lists as well