On Fri, 20 Aug 2021, Sven Schreiber wrote:
Am 12.08.2021 um 14:10 schrieb Sven Schreiber:
> Am 02.06.2021 um 00:16 schrieb Sven Schreiber:
>> Hi,
>> I'm wondering why the cmod() function is needed. It computes the modulus
>> of a complex number (or many of them in a matrix), OK fine. But so does
>> abs(). And abs() also works on plain real numbers, where cmod cannot be
>> used. Could it be a path-dependent thing: first abs() didn't cover
>> complex numbers but then rendered cmod() obsolete by also working on
>> those? Or is there anything else which I'm missing?
>>
>> Otherwise, maybe a case for deprecating or hiding cmod?
>
> Sorry, for all these "ping"-style messages, but this wasn't resolved.
> It's redundant and obsolete since full complex number support has been
> introduced, isn't it?
>
OK, perhaps cmod() will be hidden at some time in the future. To be on
the safe side, I think a good advice (for the few people who actually
have been using cmod) is to use abs() always.
I just pushed to git an addition to the help to cmod(). The addition says:
NOTE: this is a legacy function, and is superseded by the "abs" function.
It is kept for backward compatibility only, but it will be removed at some
point. You may want to adjust your existing scripts.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------