axiom-math
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-math] where is the complex module function ?


From: Martin Rubey
Subject: Re: [Axiom-math] where is the complex module function ?
Date: Tue, 12 Jul 2005 10:58:23 +0200

Dear François,

could you please report this as an issue.

For a RealNumberSystem R, abs$Complex R computes what you want. Otherwise,
there is an operation norm(x)$Complex R, which computes x*conjugate(x).

I think that RealNumberSystem is too strong a requirement for abs, the
corresponding code in gaussian.spad reads:

       if R has RealNumberSystem then
         abs(x:%):%        == (sqrt norm x)::%

It seems that the author of COMPLEX was particularly fond of RealNumberSystem
:-), see the bug in argument...

Martin


Francois Maltey writes:
 > Hello
 > 
 > I find the complex argument function :
 >    argument (3+4*%i) computes atan (4/3).
 > 
 > But where is the module or abs complex function :
 >   how can I get 5 from the complex 3+4*%i ?
 > 
 > Thanks a lot !
 > 
 > François 
 > 
 > 
 > _______________________________________________
 > Axiom-math mailing list
 > address@hidden
 > http://lists.nongnu.org/mailman/listinfo/axiom-math
 > 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]