Date: Sun, 12 Aug 2012 23:02:09 -0000 From: Stephen Montgomery-Smith <stephen@missouri.edu> To: Bruce Evans <brde@optusnet.com.au> Cc: Diane Bruce <db@db.net>, John Baldwin <jhb@freebsd.org>, David Chisnall <theraven@freebsd.org>, Bruce Evans <bde@freebsd.org>, Steve Kargl <sgk@troutmask.apl.washington.edu>, David Schultz <das@freebsd.org>, Peter Jeremy <peter@rulingia.com>, Warner Losh <imp@bsdimp.com> Subject: Re: Use of C99 extra long double math functions after r236148 Message-ID: <500D6182.8010003@missouri.edu> Resent-Message-ID: <20120812230202.GZ20453@server.rulingia.com> In-Reply-To: <500CD98E.9080103@missouri.edu> References: <5004A5C7.1040405@missouri.edu> <5004DEA9.1050001@missouri.edu> <20120717040118.GA86840@troutmask.apl.washington.edu> <20120717042125.GF66913@server.rulingia.com> <20120717043848.GB87001@troutmask.apl.washington.edu> <20120717225328.GA86902@server.rulingia.com> <20120717232740.GA95026@troutmask.apl.washington.edu> <20120718001337.GA87817@server.rulingia.com> <20120718123627.D1575@besplex.bde.org> <20120722121219.GC73662@server.rulingia.com> <20120722220031.GA7791@server.rulingia.com> <20120723141319.P1189@besplex.bde.org> <500CD98E.9080103@missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/22/2012 11:56 PM, Stephen Montgomery-Smith wrote: > This is the work I have done to produce casinh, casin, cacos and cacosh. > The latter two took me a lot more time than I expected. It took me a > lot of time to try to find the correct branches. > > Once I have cacos, cacosh turns out to be much easier than I thought: double complex cacosh(double complex z) { complex double w; w = cacos(z); if (signbit(cimag(w)) == 0) return cpack(cimag(w),-creal(w)); else return cpack(-cimag(w),creal(w)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?500D6182.8010003>