[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Numerical error

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 andsmall 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
generates unexpected complex numbers in
GNU APL 1.5.1.

For example:


for X = 11.5 gives me 12J{neg}1 instead of 12.

--- Brian

reply via email to

[Prev in Thread] Current Thread [Next in Thread]