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 s4Q8emRa001771 for ; Mon, 26 May 2014 10:40:49 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx009) with ESMTPS (Nemesis) id 0McyuI-1X5p753L8M-00I9pp for ; Mon, 26 May 2014 10:40:42 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4Q8bbg5001091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 May 2014 10:37:37 +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 s4Q68KpX011114; Mon, 26 May 2014 10:37:36 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11062456 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 26 May 2014 10:37:36 +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 s4Q8ba8P019536 for ; Mon, 26 May 2014 10:37:36 +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 s4Q8bAGu000583 for ; Mon, 26 May 2014 10:37:14 +0200 Received: from mxin3-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp4.clear.net.nz (CLEAR Net Mail) with ESMTP id <0N6600D8JAL9EX10@smtp4.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Mon, 26 May 2014 20:36:50 +1200 (NZST) Received: from 121-74-39-59.telstraclear.net (HELO [127.0.0.1]) ([121.74.39.59]) by smtpin3.clear.net.nz with ESMTP; Mon, 26 May 2014 20:36:49 +1200 MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 140525-0, 26/05/2014), Outbound message X-Antivirus-Status: Clean User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Message-ID: <5382FD21.6040600@clear.net.nz> Date: Mon, 26 May 2014 20:36:49 +1200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: aparsloe Subject: l3fp and sin(pi), cos(pi/2) 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:NYe7He5CrUI=:XBox3csXEQSBVciCSjo7bNmmZx w2WaD9HL/i97z6KWRaLTdhNNioLgNt/QzJy54mMNi+tut9bnT2MtU8h0CYiIeUOOw9KU1Hdya jz3qRHJxfhe6hcOgmrCDkyRgdXFPvUSWBc0zePYLoEIUw4V6zWqZaRVdEOOLHczcqM5S2EXfl RPkQQfkua1BXXSfn0Hd3d1b9/lCz4vn/i2yQDF6mkTjfSDZIrobHRRyIuh3wv0iXLXjlhwOu5 eafkpZ5SEAlq7radpeZEQdps3Wz/qeNZHzjLYVGJdi3ToifharaCGy9bFcg3JLovxAf9QiGCH Od51FQ+zN6vfYJwbr41OsqjuqhrMNBJE59wDJPObO6VKIuAgBfv7j+oBYpWYzfylv24F7GTSK 0vp99rEESYxC0IOQGTFM7W0X7Y5k6fGY3jc/3AiRSugKgwRWlNpYOE1pnbIfuvGYhT8mlLc9b +CAAkle3Iduciuk7J5fWFK02GRNa/qti+ITXi4vyy1q/rMgdGVOmREk5dzCvAnrBcWmOz6Owr Wp92gAYLeWaBm9bpCCBaw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SFA== X-UI-Loop:V01:AhYCBD0+NXw=:spnV1QYqwNwLZHyA1TZUppzI792shLTA7Fz+ohKSudA= Status: R X-Status: X-Keywords: X-UID: 7449 For a fraction, \fp_eval:n { 1/9000000000000000 } -> 0.0000000000000001111111111111111 displays the 16 significant digits after a long run of zeros. In that spirit I find it disconcerting that for sin(pi) \fp_eval:n { sin(pi) } -> 0.0000000000000002384626433832795 as if the 16 nonzero digits after the run of zeros are the significant ones. They are actually the 16 significant figures of \fp_eval:n {sin(pi - 0.0000000000000001)}, and "noise" as far as sin(pi) is concerned. For cos(pi/2) \fp_eval:n { cos(pi/2) } -> 0.0000000000000006192313216916398 The 16 apparently significant figures are those from \fp_eval:n { cos(pi/2 - .0000000000000001) } Rounding the cosine to 16 figures gives a 6 in the last place, which seems large to me. Perhaps sin and cos and their fellows should be given the exact value 0 at the appropriate multiples of pi/2? Andrew Parsloe