Re: [Numpy-discussion] nan, sign, and all that

2008-10-02 Thread Pete Forman
oating point support of IEEE 754 has been beefed up. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef

Re: [Numpy-discussion] What is the sign of nan?

2008-09-30 Thread Pete Forman
): if y == 0 or isnan(y): return y else return copysign(1, y) The better choice will be governed by how sign is used in practice. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not

Re: [Numpy-discussion] What is the sign of nan?

2008-09-30 Thread Pete Forman
lving NaNs propagate the payload but not the sign bit AFAIK. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef