Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: Michael Jung Newsgroups: comp.lang.java.programmer Subject: Re: Fwd: Re: double == double Date: Thu, 20 Oct 2016 20:59:03 +0200 Organization: albasani.net Lines: 22 Message-ID: <87insmj18o.fsf@golem.phantasia.org> References: Mime-Version: 1.0 Content-Type: text/plain X-Trace: news.albasani.net xakNA6t/rZ61/VaoxuR3hAxDctRnXDfsQFupgyaaHbtuDbrx1Xztv9BfOc0de1IpAblrJYN/4q4R/o3xiz0LDJo3E/oVU9eNiKRB/sqqQ5LYjEqzlnzfoBcG+USGZc7A NNTP-Posting-Date: Thu, 20 Oct 2016 18:59:04 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="CEM179Os7FctBhE+EvJfzASXvrZYuR5gJbKMvgh8u69V9Ko2SuDiuDuoBXC5Yxt1ZUhJmntauC09BuNyp92/jwen/ONFQVCfEYMHbpOs56IE3jSj/+/O1aCMnKteTO7R"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:01ETazLpIpjfFVJrk9LY7G0PeTE= sha1:8jWZ0zjOqkbqmoKMxEFe/r2GndQ= Xref: csiph.com comp.lang.java.programmer:35855 Eric Sosman writes: > On 10/19/2016 1:39 PM, Michael Jung wrote: >> Eric Sosman writes: >>> On 10/19/2016 9:03 AM, Mike Amling wrote: [...] max has the weird distinction between +0, -0, min doesn't, now that's weird. > (A final point: All this argument over the sign of nothing leaves > me, I confess, a bit perplexed. However, those with more numerical > sophistication find the distinction between +0 and -0 to be of great > practical importance. William Kahan is particularly vehement on the > topic; look for his presentation titled "Branch Cuts for Complex > Elementary Functions or Much Ado About Nothing's Sign Bit," and > bring more mathematical prowess to your reading than I can. :) max is not a complex elementary function. sin would be, but I doubt sin makes the distinction of +0 and -0 (in fact, it looks like this is OS dependent). Michael