bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Domino Domain


From: Juergen Sauermann
Subject: Re: [Bug-apl] Domino Domain
Date: Sat, 29 Aug 2015 15:03:19 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Mike,

thanks. Maybe fixed in SVN 667. I am now using ⎕CT (instead of a fixed constant 1E¯10) as
the condition number in . This number determines if a matrix is considered singular or not.

Neither the ISO standard nor the IBM APL2 manual says anything about that aspect, so I hope
it is OK now.

/// Jürgen



On 08/25/2015 08:30 PM, Mike Duvos wrote:
GNU APL's domino gives a domain error for matrices that are close to singular, but aren't.

      )clear
CLEAR WS

      A←100 100⍴101↑1
      A[1;1]←0

[IBM APL2]

       10 10 ↑⌹A+⎕CT×100
 1.000000001E11 ¯1 ¯1 ¯1 ¯1 ¯1 ¯1 ¯1 ¯1 ¯1
¯1.000000000E0   1  0  0  0  0  0  0  0  0
¯1.000000000E0   0  1  0  0  0  0  0  0  0
¯1.000000000E0   0  0  1  0  0  0  0  0  0
¯1.000000000E0   0  0  0  1  0  0  0  0  0
¯1.000000000E0   0  0  0  0  1  0  0  0  0
¯1.000000000E0   0  0  0  0  0  1  0  0  0
¯1.000000000E0   0  0  0  0  0  0  1  0  0
¯1.000000000E0   0  0  0  0  0  0  0  1  0
¯1.000000000E0   0  0  0  0  0  0  0  0  1

[GNU APL]

      10 10 ↑⌹A+⎕CT×100
DOMAIN ERROR
      10 10↑⌹A+⎕CT×100
            ^^

A matrix whose determinant is 1E¯11 is obviously not singular.




reply via email to

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