From owner-freebsd-numerics@FreeBSD.ORG Thu Sep 13 16:41:18 2012 Return-Path: Delivered-To: freebsd-numerics@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5377D1065698 for ; Thu, 13 Sep 2012 16:41:18 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by mx1.freebsd.org (Postfix) with ESMTP id D59778FC08 for ; Thu, 13 Sep 2012 16:41:17 +0000 (UTC) Received: from c122-106-171-246.carlnfd1.nsw.optusnet.com.au (c122-106-171-246.carlnfd1.nsw.optusnet.com.au [122.106.171.246]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q8DGfEIh026374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Sep 2012 02:41:16 +1000 Date: Fri, 14 Sep 2012 02:41:14 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Stephen Montgomery-Smith In-Reply-To: <5051F59C.6000603@missouri.edu> Message-ID: <20120914014208.I2862@besplex.bde.org> References: <5017111E.6060003@missouri.edu> <501D9C36.2040207@missouri.edu> <20120805175106.X3574@besplex.bde.org> <501EC015.3000808@missouri.edu> <20120805191954.GA50379@troutmask.apl.washington.edu> <20120807205725.GA10572@server.rulingia.com> <20120809025220.N4114@besplex.bde.org> <5027F07E.9060409@missouri.edu> <20120814003614.H3692@besplex.bde.org> <50295F5C.6010800@missouri.edu> <20120814072946.S5260@besplex.bde.org> <50297CA5.5010900@missouri.edu> <50297E43.7090309@missouri.edu> <20120814201105.T934@besplex.bde.org> <502A780B.2010106@missouri.edu> <20120815223631.N1751@besplex.bde.org> <502C0CF8.8040003@missouri.edu> <20120906221028.O1542@besplex.bde.org> <5048D00B.8010401@missouri.edu> <504D3CCD.2050006@missouri.edu> <504FF726.9060001@missouri.edu> <20120912191556.F1078@besplex.bde.org> <20120912225847.J1771@besplex.bde.org> <50511B40.3070009@missouri.edu> <20120913204808.T1964@besplex.bde.org> <5051F59C.6000603@missouri.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-numerics@FreeBSD.org Subject: Re: Complex arg-trig functions X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 16:41:18 -0000 On Thu, 13 Sep 2012, Stephen Montgomery-Smith wrote: > On 09/13/2012 07:55 AM, Bruce Evans wrote: > >> % - /* casinh(NaN + I*inf) = inf + I*NaN */ >> % + /* casinh(NaN + I*+-Inf) = +-Inf + I*NaN (sign optional) */ > > How much do you want the "sign optional" put into the comments. This will > have to be done in lots of places. Eventually, always, but I'd like to have a convention to keep the comment short. Possible conventions: - use inf for the simple case where signs interact unsurprisingly. inf for an input operand combined with inf for an output operand means that the input operand is copied unchanged; add '-' to the output operand to indicate a sign change. - use +-Inf particular signs and/or surprising sign rules - combinations with 2 input infinities probably need to spell them as inf1 and inf2 or +-Inf1 and +-Inf2 so as to express combinations of them in output - write options using something like opt(