Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r94841Uj026574 for ; Fri, 4 Oct 2013 10:04:03 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx009) with ESMTPS (Nemesis) id 0Mc9Yt-1V8xNW2GTH-00JbKv for ; Fri, 04 Oct 2013 10:03:54 +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 r9480v9m016620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Oct 2013 10:00:57 +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 r94225Ln022537; Fri, 4 Oct 2013 10:00:57 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10431317 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 4 Oct 2013 10:00:57 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r947ov5H019354 for ; Fri, 4 Oct 2013 09:50:57 +0200 Received: from smtp4.clear.net.nz (smtp4.clear.net.nz [203.97.37.64]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r947oiYg008434 for ; Fri, 4 Oct 2013 09:50:48 +0200 Received: from mxin2-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp4.clear.net.nz (CLEAR Net Mail) with ESMTP id <0MU4006BWWGH8P50@smtp4.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Fri, 04 Oct 2013 20:50:43 +1300 (NZDT) Received: from 218-101-96-41.dialup.clear.net.nz (HELO [127.0.0.1]) ([218.101.96.41]) by smtpin2.clear.net.nz with ESMTP; Fri, 04 Oct 2013 20:50:42 +1300 MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 131003-1, 04/10/2013), Outbound message X-Antivirus-Status: Clean User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 Message-ID: <524E7349.4030306@clear.net.nz> Date: Fri, 4 Oct 2013 20:50:33 +1300 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Andrew Parsloe Subject: Bug in l3fp for sines near 2pi To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE 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:rYpV3AkIUE8=:h67HXZ8TG2d2LMLAPHndzTFSo9 ZVB1FYEy/tccNKqjC2zjBOTvoY/bHY0R2nkHqGMZrRZICX/3VFJlsYCVGzgCbEuDDTPc4jG4J 22HyvXhUboYAS7ruvJgaxtO0eeZZGFY1bDWsgyczn1fi0Q3P2GJJoKd/OErEfbZTVkA33Wr7C ILjY2JwZyXog1YCifkOxfeiSwprY0Ijc0CrSCNzmgxuiNpC1T1KpHy2zV0MLY8CYRdpJZo715 7m1fvRwRYXkw+2u2VBamGZl98RKJdT7I50Qjodi/CZ19ZmMBO14RRfo9kMqYjEEBl4zgt/SMY YAaNHn72TwMRHiW2xNmgSgfAkwCWCBRibGepZQK8qX/HoYfXgg0OmrKvxbc7DjjIMMMolb2J7 5+UjUjemIorywOJh2pYTq9oPM1APLonQZOMdD+IgwP2mbqg9+EYQEzph84Fv/HiKh2tBAktoQ 6DYTiExZdgA2DKX8wNIzQT3n1doXnnVJDR27ZYIgc2y3SUa26c5U9W6uPfyOhioMuHch5cKTy K44erWu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SUCEWolJJsTN8TwALSRmAagFwSNIlXZ S69KqHImsDM= X-UI-Loop:V01:gHfhQEAyE1Q=:zOMGqa1cWyKq8stNtGp7frHMcUNUXtwoAMtUoPyAYY8= Status: R X-Status: X-Keywords: X-UID: 7282 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. \fp_eval:n { sin( 2pi + .0001 ) } seems to evaluate correctly. However, the buggy behaviour repeats at 4pi and 6pi and presumably at any positive even multiple of pi, but not at 0 (= 0pi). For negative even multiples, \fp_eval:n { sin( -2pi - .0001 ) } seems to evaluate correctly but \fp_eval:n { sin(-2pi + .0001) } ==> -9999.999000000002 This aside, I greatly appreciate the facilities that the l3fp package provides. Andrew P.S. Is this a *very* quiet list, or have I not configured things correctly so that I'm missing postings to it?