Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v29Mj0It009262 for ; Thu, 9 Mar 2017 23:45:01 +0100 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx004 [212.227.15.9]) with ESMTPS (Nemesis) id 0LpQGL-1cHzBS1KYH-00f6rD for ; Thu, 09 Mar 2017 23:44:55 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id v29Mh9ux005931 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Mar 2017 23:43:09 +0100 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 v29GlCXR015265; Thu, 9 Mar 2017 23:43:08 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 15756510 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 9 Mar 2017 23:43:07 +0100 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 v29Mh7mT023897 for ; Thu, 9 Mar 2017 23:43:07 +0100 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v29MgwvN024919 for ; Thu, 9 Mar 2017 23:43:02 +0100 Received: from mxin1-orange.clear.net.nz (lb1-srcnat.clear.net.nz [203.97.32.236]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0OMK00LUJKDE1B40@smtp3.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Fri, 10 Mar 2017 11:42:54 +1300 (NZDT) Received: from 118-92-82-147.dsl.dyn.ihug.co.nz (HELO [127.0.0.1]) ([118.92.82.147]) by smtpin1.clear.net.nz with ESMTP; Fri, 10 Mar 2017 11:42:38 +1300 MIME-version: 1.0 Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 170309-1, 10/03/2017), Outbound message X-Antivirus-Status: Clean User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 Message-ID: <58C1DA5F.8010109@clear.net.nz> Date: Fri, 10 Mar 2017 11:42:39 +1300 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Andrew Parsloe Subject: Two more (simple) functions for l3fp 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:OsQpVomRwEs=:s5FX8pIBEGFe3RNl05/tP9ihFC qiIbAFdyBSsqIxVJjL9BpHU+hr23lsLyBigyq3J/spAfGr130JjMCyuhdWEm/2ImMkhwJvJIm le/cmc6eQH6lTOgEWxs/A3/UU1j59pTKhcsabfjPTElw5LAXHoUzL35RJl/HoWI3/E0xAGzNB 4pXV7SfIxQPJcNlhhGbmNeWtKBcqTqoZMBs6REm7mHMhrOXQi8ZnCFAiqBNz0xBikxX3PxEdW xPiizjAvRhNIYUX0qv7CUjzsmY0fOisdwzbDStZIEzRtnL0s9R3BETO22rcf+xxCnOj7rJNBr p50IhRWG5t1SuXc5xhSTAj4+Iy0lpksFh52/aWcjVgoteHb1uoFlZ4qS14HVkMozwRMn8H4vc SsE5omh3qb36CJYllyTEf4+HG40UbEeIEVydYwy7QulevVC58e88sfwFn2pBVGkTQ6tORY/pP wXm+kkCVSb7Kiz5qaVEk5x6DB+xJWWBjcvDnVtzWZ2e4H8x6k/c0F0lrpVS8o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wtsK0wedcRkeKL/RHfojUjCRMkSPeITZxapRSUyRt5yjvdM R5i9qCVP39BxLdY7saF9csQaGHIYQonGv0qvT6N+mG8TJf565yxxh2xocJX1yPFoUAnGwnCgw dNJ+QQS8NqQaxybXAaJFluy X-UI-Loop:V01:k18SST7uf+c=:1hBRLBBXs86GRGypN4sgZ3RjfSzRB1miybFz4JWjloI= X-UI-Out-Filterresults: notjunk:1;V01:K0:ANVhSsDBM2w=:qg3NU9uWqtW9aiZvlBY9SZ SAYzXXa007W9wRvFdn7eFfRCwFtPBaDnplV0QISNGh97wLUyX+GQjFNlBdqOQcEarlfaR+7TE aOOkZEy7NMoQW8lR8NwGSKzf1zROQBNTvgkSpKAayv5hCA0iJardzGKmnmLC4w8amFPcJ4Jq8 NeyZ87RPCq3Z4tUbrEF2AWhhxaYrdM6Wd4An65KX+tcEIDnIVjUnrXwd8uT09Z1dfY3UC85z1 dD6uVFAK5DEDTQqkHBW0Dh84DwiniU6hd/DphF2PHR+e4+l7cg8NwhRQ+TcSp96JL1JGp3PbJ 5KtiFCQHOSPJ421Q2pBzG0PIbshWFu27zT4b9Gf94JZqmw58Pg50G4yq3yD5Qd5y/jDCoDG+p mtTekJS6nNKA2QxNJ0YYWYG7FcEG8yrHA8B1actN78t7DuTgVUpnt15hVq7VLMBAN8j83mPdH KYPezEByXYyOmuUOCOQ4fDx7tD/9+tAd/VnkoVpARgM7TzW17TIP75hpH2F5ShDROm5HX5JwG WEw9EHGNkOZ+k1KUPfcltFHEznCASMYd49zRRSIz6qK X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7949 Two functions which I think could be beneficially added to l3fp without straining its role as a kernel module (in the way that, say, the gamma function would) are the signature function (sgn) and a unit step function (Heaviside? -- the difficulty is what value to assign at 0). Given the numerical values assigned to true and false in l3fp, it is easy to mimic these with simple inequalities (e.g. (#1 > 0) - (#1 < 0) for sgn) but perhaps the functions should be there in the first place? I found myself wanting these when considering a table of fp values where it made sense to blank cells containing negative values which "got in the way". The code creating the table contained the option of blanking zero-value cells, so I multiplied the tabulated formula by 1 - (#1 < 0). Andrew --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus