axiom-developer
[Top][All Lists]
Advanced

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

RE: [Axiom-developer] Complex exponentiation and 0


From: Martin Rubey
Subject: RE: [Axiom-developer] Complex exponentiation and 0
Date: Tue, 22 Jun 2004 11:40:48 +0000

Page, Bill writes:
 > On Tuesday, June 22, 2004 6:11 AM Martin Rubey
 > address@hidden wrote:
 > 
 > There is a bug.
 > 
 >   0::CARD ^ 0::CARD
 > 
 > should be 1::CARD

ok.
  
 > > except that in
 > > 
 > > Vanuxem Grégory writes:
 > > > In complex(Float) and Complex(SingleFloat), we have to change the
 > > > exponentiation so that
 > > >         complex(0,0)^complex(0,0.0)
 > > > or
 > > >         complex(0,0)^complex(2,2.0)
 > > > doesn't use log.
 > > 
 > > the *latter* really should give 0?
 > >
 > 
 > No. complex(0,0)^complex(0,0.0) is like 0^0.0 and should
 > return
 > 
 >   '0**complex(0,0.0)' is undefined
 > 
 > The message 'log 0 generated' is confusing but technically
 > correct.

Yes, but complex(0,0)^complex(2,2.0) should be 0.0, shouldn't it?

Martin





reply via email to

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