bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Near-real numbers not handled properly


From: Juergen Sauermann
Subject: Re: [Bug-apl] Near-real numbers not handled properly
Date: Tue, 11 Feb 2014 20:02:08 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi,

thanks, fixed in SVN 117.

/// Jürgen


On 01/30/2014 10:23 PM, Kacper Gutowski wrote:
Hi,
It seems that functions requiring “near-real numbers” as arguments throw
DOMAIN ERROR when given a value represented internally as complex even
if imaginary part is exactly equal zero.

       1 > 0J0
DOMAIN ERROR
       1>0
       ^^
       1 ⌊ 0J0
DOMAIN ERROR
       1⌊0
       ^^
etc.

Note: from ISO's definition of near-real one can infer that 0J0 is always
near-real regardless of real-tolerance.  On the other hand 0J0 is never
demoted by GNU APL from complex to real.  This isn't relevant to examples
above but the problem initially hit me this way:

       ⌈/(3⍴2)⊤2
DOMAIN ERROR
       ⌈/(3⍴2)⊤2
       ^ ^


-k






reply via email to

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