[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52285] inv(0) gives 0 (instead of inf)
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #52285] inv(0) gives 0 (instead of inf) |
Date: |
Thu, 26 Oct 2017 11:24:56 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #52285 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #2:
There have been some previous reports on this.
See bug #49690: inv(inf) behaves differently from inf^-1, 1/inf, inf\1
See bug #51246: pinv(0) different from Matlab
As of 10/26/17 and hg id 857b553177a5, I get
octave:2> inv (Inf)
warning: matrix singular to machine precision
ans = 0
octave:3> inv (0)
warning: matrix singular to machine precision
ans = 0
octave:4> 1/0
warning: division by zero
ans = Inf
octave:5> pinv (0)
ans = Inf
The only problem is 'inv (0)'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52285>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/