bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Squish quad function DOMAIN ERROR


From: Frederick H. Pitts
Subject: [Bug-apl] Squish quad function DOMAIN ERROR
Date: Sat, 09 May 2015 20:58:15 -0500

Hello Juergen,

        Is it intentional that the index function ⌷ (squish quad) no longer
accepts near-integer floating point numbers in the left argument?  In
the svn 626 version of GNU APL, using near-integer floating points in
the left argument
results in a DOMAIN ERROR.  For example

      ( 10 11 12 )[ 2 ]
11
      ( 10 11 12 )[ 3.0 ]
12
      2 ⌷ 10 11 12
11
      2.0 ⌷ 10 11 12
DOMAIN ERROR
      2⌷10 11 12
      ^^

        In the past, the GNU APL ⌷ accepted near integers just like the bracket
index [ ] function does now.  Do I need to revert to using the bracket
index function if I need near-integer floating point indices?

Regards,

Fred





reply via email to

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