|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Numerical error |
Date: | Wed, 08 Jul 2015 14:11:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Brian, thanks, fixed in SVN 644. Please note that things like that can still happen - powers of negative numbers can give complex numbers and rounding up or down of complex numbers is somewhat different from rounding up or down of real numbers. In your example T←¯1⋆2 gave a complex number close to 1 which was then multiplied and rounded as a complex number. For ⌊ and ⌈ small rounding errors can give differences of 1, ¯1, 0J1, or 0J¯1 in the "expected" result. /// Jürgen On 07/07/2015 07:13 PM, McGuinness,
Brian wrote:
The Toronto APL Toolkit function RNDE |
[Prev in Thread] | Current Thread | [Next in Thread] |