bug-apl
[Top][All Lists]
Advanced

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

Re: Division by 0


From: Hans-Peter Sorge
Subject: Re: Division by 0
Date: Sat, 18 Apr 2020 13:47:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

hmm

45 years of APL - and did not run across such case :-))


Am 18.04.20 um 06:36 schrieb Kacper Gutowski:
This is actually correct.  It's what APL is supposed to do.
Domain of division is extended to include 0÷0, but not any
other numbers divided by zero.

-k


On Fri, Apr 17, 2020 at 10:26:09PM +0200, Hans-Peter Sorge wrote:
Hi,

I just noted some inconsistencies:

       0÷0
1

       0.1÷0
DOMAIN ERROR
       0.1÷0
       ^  ^

       0.1÷0 1
DOMAIN ERROR
       0.1÷0 1
       ^  ^

       0÷0 1
1 0

       1 0 ÷ 0
DOMAIN ERROR
       1 0÷0
       ^  ^

       0 0 ÷ 0
1 1

       0 ÷ 0 0
1 1

       1 ÷ 0 0
DOMAIN ERROR
       1÷0 0
       ^^
Regards
Hans-Peter


reply via email to

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