From: Konrad H. <hi...@cn...> - 2002-06-12 08:35:12
|
Scott Ransom <ra...@ph...> writes: > On June 11, 2002 04:56 pm, you wrote: > > One can make a case for allowing == and != for complex arrays, but > > > just doesn't make sense and should not be allowed. > > It depends if you think of complex numbers in phasor form or not. In phasor > form, the amplitude of the complex number is certainly something that you > could compare with > or < -- and in my opinion, that seems like a reasonable Sure, but that doesn't give a full order relation for complex numbers. Two different numbers with equal magnitude would be neither equal nor would one be larger than the other. I agree with Paul that complex comparison should not be allowed. On the other hand, Perry's argument about sorting makes sense as well. Is there anything that prevents us from permitting arraysort() on complex arrays but not the comparison operators? Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hi...@cn... Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- |