bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] 0⍟0


From: Kacper Gutowski
Subject: Re: [Bug-apl] 0⍟0
Date: Wed, 13 Jul 2016 13:21:47 +0200

On 13 July 2016 at 12:04, Juergen Sauermann wrote:
> my ISO (June 9, 2000) says DOMAIN ERROR.
I'm using the PDF that was linked from GNU APL documentation,
that is, exactly the same Jun 2000 version.

> If A and B are equal, return one.

As Jay just have written, the evaluation sequence in section 7.2.8
calls for one to be returned if arguments are equal.  It obviously
is supposed to cover for the case of 1⍟1, similarly how 0÷0
is defined, but consistently extending the domain this way even
further seems convenient in array programming language.

Also, I just found there's another bug with promoting reals to
complex values again:

      ¯2⍟2
0.000000000
      ¯2J0⍟2
0.04642032355J¯0.2103936242

-k



reply via email to

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