[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] Near-real numbers not handled properly
From: |
Kacper Gutowski |
Subject: |
[Bug-apl] Near-real numbers not handled properly |
Date: |
Thu, 30 Jan 2014 22:23:38 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-apl] Near-real numbers not handled properly,
Kacper Gutowski <=