|
From: | Geraint Paul Bevan |
Subject: | Re: Inverse Matrix Function appears a bit wonky |
Date: | Wed, 03 Nov 2004 21:13:51 +0000 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert A. Macy wrote: | I tried a simple test of the inverse function using a "made | up" matrix... | | testmatrix = | 1 2 3 4 | 2 2 3 3 | 1 2 1 2 | 3 2 2 1 | You have chosen a singular matrix (i.e. its determinant is zero) and it does not therefore have an inverse. Note the warning below: octave> m = [1 2 3 4; 2 2 3 3; 1 2 1 2; 3 2 2 1]; octave> det (m) ans = 0 octave> inv (m) warning: inverse: matrix singular to machine precision, rcond = 0 ans = ~ 3.00000 2.00000 2.00000 1.00000 ~ 0.33333 1.33333 0.33333 1.66667 ~ 0.33333 1.00000 2.00000 2.00000 ~ 0.66667 0.50000 0.75000 0.00000 octave> - -- Geraint Bevan http://homepage.ntlworld.com/geraint.bevan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iEYEARECAAYFAkGJSg8ACgkQcXV3N50QmNM0QQCcCurpCwsabEp65XkKLBmbXP8I GVIAmgKVEu0ksO4zkU97iTl7qdD1v/hC =Opvx -----END PGP SIGNATURE----- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |