Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r94J2VUg029436 for ; Fri, 4 Oct 2013 21:02:32 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx010) with ESMTPS (Nemesis) id 0MchzV-1VAMm82WWH-00HwCi for ; Fri, 04 Oct 2013 21:02:25 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r94IxR08008901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Oct 2013 20:59:28 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r94EQF8V013376; Fri, 4 Oct 2013 20:59:27 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10462495 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 4 Oct 2013 20:59:27 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r94InR1A031980 for ; Fri, 4 Oct 2013 20:49:27 +0200 Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r94InDbD005565 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Fri, 4 Oct 2013 20:49:16 +0200 Received: by mail-wg0-f44.google.com with SMTP id b13so4500544wgh.11 for ; Fri, 04 Oct 2013 11:49:13 -0700 (PDT) X-Received: by 10.194.23.196 with SMTP id o4mr2831756wjf.62.1380912553465; Fri, 04 Oct 2013 11:49:13 -0700 (PDT) Received: from palladium.local ([213.205.230.244]) by mx.google.com with ESMTPSA id q5sm12615915wiz.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Oct 2013 11:49:12 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 References: <524E7349.4030306@clear.net.nz> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <524F0DA5.4040106@morningstar2.co.uk> Date: Fri, 4 Oct 2013 19:49:09 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Bug in l3fp for sines near 2pi To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <524E7349.4030306@clear.net.nz> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:LJmvYtUT/tE=:r/bOghhxm80oldwCQQSapQV/x0 K5Q3dM+4avTkpyEV1ntCk/ZSGFUCT/JHPVmTVExW27ILijmPHFHXRXgNkUpEs8NbNZWSqGTjX pr6aZscErsu2AcxUE9Jc+HQHUVDxnOfAF+21nbD21iWwt5ai9l5AxUX8WCc/gwdkv7U/qCadP vqsVVulPP6wqRCjVi5supHPtBTcoCWkh62PYZFgv0u9JFqYoLXKls09S3Fm5zrPYP6D7Pjw9h KCEgA2omYm/zby2b0gwbk9AD5sbqHE5IEaLeuTIkkwQz54ah5E9ZnQd37v58M1bCFxAEKn95U xS67HHbfhg6HCoi1zFzESo2ygJR3wYUycnk0wipa5UP3iiRFvFlLGbehuTcUCH4gp5zRrG0VO Wm/LTmoX709A0v98ewTON1qH14J17fNRq8Gdyqk6cBs+lrWp1f3N3QPJ1gelALGi2wPHuV5MD J6FqZEFH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Sn6xCC4pxgd46jMl cQp0+SbFccw2e3ax0LHhv0XmPxvFqlyqx9tL+VP1m X-UI-Loop:V01:c662iI1ZHfI=:wmfM4sDph4tRzhZf30AOJvAZJ4hxKcbt3nu8ct/8Qas= Status: R X-Status: X-Keywords: X-UID: 7283 On 04/10/2013 08:50, Andrew Parsloe wrote: > I recently stumbled on the following bug in the l3fp package: > > \fp_eval:n { sin( 2pi - .0001 ) } ==> 9999.999000000002 > > which seems a little excessive for a function bounded by +1, -1. > > \fp_eval:n { sin( 2pi - .001 ) } seems to evaluate correctly. The value > between .001 and .0001 where the bug arises is between .001853071795, > which is too small and brings on the error, and .001853071796, which > doesn't. Thanks for the bug report: I've logged it as https://github.com/latex3/svn-mirror/issues/155, and assigned it to Bruno :-) (He wrote the FPU!). As I've said in the issue database, this looks like a range-reduction failure to me. Range reduction is known to be 'hard', so that's not that surprising. > P.S. Is this a *very* quiet list, or have I not configured things > correctly so that I'm missing postings to it? List traffic varies: there are lots of ideas to discuss but getting feedback is not always easy even when there is time for us to ask the questions! -- Joseph Wright