Date: Tue, 14 Feb 2017 05:52:35 +0000 From: "Montgomery-Smith, Stephen" <stephen@missouri.edu> To: Peter Jeremy <peter@rulingia.com>, Alan Braslau <alan.braslau@comcast.net> Cc: "freebsd-numerics@freebsd.org" <freebsd-numerics@freebsd.org> Subject: Re: FreeBSD numerics - cpow() Message-ID: <c9754b4d-1a2b-39ce-f20c-29bbcf8eafdf@missouri.edu> In-Reply-To: <20170214053712.GD84013@server.rulingia.com> References: <20170213091051.600f91e1@zoo.hsd1.co.comcast.net> <20170214053712.GD84013@server.rulingia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--TckEfDvnbv10CaDplmCH13E5GfrRf6vUP Content-Type: multipart/mixed; boundary="aweFoUQjm3HxoDhau655gFHpJdbbnqmUL"; protected-headers="v1" From: Stephen Montgomery-Smith <stephen@missouri.edu> To: Peter Jeremy <peter@rulingia.com>, Alan Braslau <alan.braslau@comcast.net> Cc: freebsd-numerics@freebsd.org Message-ID: <c9754b4d-1a2b-39ce-f20c-29bbcf8eafdf@missouri.edu> Subject: Re: FreeBSD numerics - cpow() References: <20170213091051.600f91e1@zoo.hsd1.co.comcast.net> <20170214053712.GD84013@server.rulingia.com> In-Reply-To: <20170214053712.GD84013@server.rulingia.com> --aweFoUQjm3HxoDhau655gFHpJdbbnqmUL Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/13/2017 11:37 PM, Peter Jeremy wrote: > On 2017-Feb-13 09:10:51 -0700, Alan Braslau <alan.braslau@comcast.net> = wrote: >> What is the current status of getting cpow() implemented in FreeBSD? >=20 > There's a WIP in https://svnweb.freebsd.org/base/user/peterj/ > but I got caught up trying to work out how to perfectly multiply > two doubles and am not currently working on it. >=20 > I wonder if we should implement something like >=20 > double cpow(double x, double y) > { > return cexp(y * clog(x)); > } >=20 > just to have something to resolve symbols. >=20 If you look at page 478 of the document http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf (which is, I think, the official C99 standard), the footnote suggests that this would be a reasonable thing to do. So I say yes, let's do it. --aweFoUQjm3HxoDhau655gFHpJdbbnqmUL-- --TckEfDvnbv10CaDplmCH13E5GfrRf6vUP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBAgAGBQJYopsiAAoJECuXJ2rgj9mCgh8H/3qbG/XL9RLtH1rlFBQ6NeCi yQ9txayAmJ6UnTaqpMonRCMGle1SMys8O0KDufWIacRFNIbno7hmFqt6Iq4dOICG cXKYmfBnxmEhAfspgh4D+IKX2eMRUnFSJwras4MSrg8zLzD0503Vp2mOdvPs3dkb GigvdgWtgc6c4barPxBn4tHuIiZtF0oWjSXz6FbgEXTA3ZVG8xIChn7x3rv7DqUH pAgZshY6dUXV/AyaAUSaDz2qLeMriU35ZnHTcCcxtFuSHynSKe5C+SwHos9QusMM gUEahEaeQxv6gxTUUhbn/U597f8f97hqX+usipj4kiJSi/TNaaWKuU+CG6nh9Zw= =CqwR -----END PGP SIGNATURE----- --TckEfDvnbv10CaDplmCH13E5GfrRf6vUP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c9754b4d-1a2b-39ce-f20c-29bbcf8eafdf>