[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Complex exponentiation and 0
From: |
David MENTRE |
Subject: |
Re: [Axiom-developer] Complex exponentiation and 0 |
Date: |
Sun, 20 Jun 2004 13:19:57 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Grégory,
Vanuxem Grégory <address@hidden> 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.
>
> 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
> ...
Is your bug report related to:
[bugs #9313] 0^0 handled inconsistently
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9313
According to Martin comment, 0^0 is not mathematically defined.
Yours,
d.
--
David MENTRE <address@hidden> -- http://www.nongnu.org/axiom/