axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] Complex exponentiation and 0


From: Vanuxem Grégory
Subject: [Axiom-developer] Complex exponentiation and 0
Date: Fri, 18 Jun 2004 16:14:17 +0200

Hi,

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.

if (real(x) = 0 and imag(x) = 0)
        if (real(power)=0 and  imag(power)=0)
                complex(1.0,0.0)
        else
                complex(0.0,0.0)
else
        ...



Cheers, Greg




reply via email to

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