On Jan 10, 2015, at 18:22 , Jiahao Chen <jia...@mit.edu> wrote:
> 
> On Sat, Jan 10, 2015 at 6:12 PM, Erik Schnetter <schnet...@gmail.com> wrote:
> This may lead to problems with nans. For example, 1.0/(0.0, 0.0) is (inf, 
> nan), and 1.0/(inf,nan) is (0.0, nan); multiply by (1, im) yields (nan, nan), 
> and all information is lost. With a proper treatment, this would be (0.0, 
> 0.0) instead.
> 
> We already have this problem.
> 
> julia> 1.0/Complex(0.0, 0.0)
> NaN + NaN*im
> 
> (essentially #9531)
> 
> I agree that (Inf, NaN) should be treated as a representation of complex 
> infinity. (Ref: #5234)

This will either require normalizing the result of complex operations, or 
normalizing the input.

-erik

--
Erik Schnetter <schnet...@gmail.com>
http://www.perimeterinstitute.ca/personal/eschnetter/

My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu/.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to