From owner-freebsd-standards@FreeBSD.ORG Sun Oct 30 18:27:13 2005 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E652216A41F for ; Sun, 30 Oct 2005 18:27:13 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A77643D46 for ; Sun, 30 Oct 2005 18:27:13 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id j9UIR7um019041; Sun, 30 Oct 2005 10:27:07 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id j9UIR2lj019040; Sun, 30 Oct 2005 10:27:02 -0800 (PST) (envelope-from sgk) Date: Sun, 30 Oct 2005 10:27:02 -0800 From: Steve Kargl To: Bruce Evans Message-ID: <20051030182702.GA18998@troutmask.apl.washington.edu> References: <20051005032400.GA6736@troutmask.apl.washington.edu> <20051005191936.N51036@delplex.bde.org> <20051006212602.GA40609@troutmask.apl.washington.edu> <20051007231439.F58005@delplex.bde.org> <20051007190239.GA78674@troutmask.apl.washington.edu> <20051008052850.S59139@delplex.bde.org> <20051010185153.GA55589@troutmask.apl.washington.edu> <20051012160109.I73531@delplex.bde.org> <20051016184129.GA24651@troutmask.apl.washington.edu> <20051021194624.H598@epsplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <20051021194624.H598@epsplex.bde.org> User-Agent: Mutt/1.4.2.1i X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-standards@freebsd.org Subject: Re: complex.h math functions X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2005 18:27:14 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 21, 2005 at 08:50:53PM +1000, Bruce Evans wrote: > On Sun, 16 Oct 2005, Steve Kargl wrote: > > >On Wed, Oct 12, 2005 at 05:23:28PM +1000, Bruce Evans wrote: > > >Hopefully, this new version is closer to KNF. > > It still has only 4 chars for all secondary indents Strange. Hopefully fixed. I also removed the additional space in the comments after the *. This, of course, will make a diff fairly large, so I've attached s_ccosh.c. > >>use it. Listing all the special cases also serves as documentation. > >>I think the current order of special cases is not quite the best, > >>however. > > > >I don't follow why you think the special cases need to be re-order. > >Without knowing how the user base will abuse ccosh, there should > >be no prefered order. > > The current order is almost that in the standard. This order is not > bad but it might not give the simplest or shortest classification. > In particular, I think it might be better to group by 0's before > grouping by Infs and NaNs. I've re-arrange the code to do x = 0 and then y = 0 cases after the nearly-non-exceptional case. You may want to flip x = 0 and y = 0. I did not do this because I did not want to mess up your explanation of choice of signs. (discussion man page diff) > >>OK; could be more detailed. > > > >Do you want a section that describes the range of inputs that > >return a non-infinite results? Do you want a section that > >describes the return value and the exceptional cases? I'll > >have to do this later because I'll need to learning some > >additional mdoc features. > > Exceptional cases are mostly not described at all for the real functions, > so I wouldn't describe them better for the complex functions. I was > thinking mainly of doumenting the intention that the error is < 2 ulps > and noting cases where this isn't implemented in the BUGS section. You understand the ULPs better than I. If you don't have time or want to mess with mdoc, I'll write the section but you need to supply the knowledge. -- Steve --X1bOJ3K7DJ5YkBrT--