|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #49690] inv(inf) behaves differently from inf^-1, 1/inf, inf\1 |
Date: | Fri, 25 Nov 2016 03:50:24 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #2, bug #49690 (project octave): Besides, inv() returns incorrect result only for scalar Inf. All of them return correct results for matrices: octave:1> inv(diag([inf inf])) ans = Diagonal Matrix 0 0 0 0 octave:2> inv([inf 0;0 inf]) warning: matrix singular to machine precision ans = 0 0 0 0 octave:3> diag([inf inf])^-1 ans = Diagonal Matrix 0 0 0 0 octave:4> [inf 0;0 inf]^-1 ans = 0 0 0 0 octave:5> diag([inf inf])\eye(2) ans = Diagonal Matrix 0 0 0 0 octave:6> [inf 0;0 inf]\eye(2) warning: matrix singular to machine precision ans = 0 0 0 0 octave:7> eye(2)/diag([inf inf]) ans = Diagonal Matrix 0 0 0 0 octave:8> eye(2)/[inf 0;0 inf] warning: matrix singular to machine precision ans = 0 0 0 0 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49690> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |