|
From: | dastew |
Subject: | RE: invertable matrix - result as integer matrix |
Date: | Sun, 17 Jan 2010 04:03:08 +0000 |
> Date: Sat, 16 Jan 2010 16:47:32 -0800 > From: address@hidden > To: address@hidden > Subject: invertable matrix - result as integer matrix > > > Hi, > I would like to get an invertible matrix in Octave but as integers matrix, > so: > > x = [9,15;19,2]; > inv(x) > > and the result is: > > [-0.0074906, 0.0561798; 0.0711610, -0.0337079] > > but I would like to get [22,17;25,21] anyone knows how to convert this > result? Many thanks. > Not sure what you want but maybe this is it. If you want to start with an integer matrix and get an integer matrix when you invert it then you must start with a matrix that has a determinant that is 1 or -1. try this x = [267,14;19,1]; HTH Doug |
[Prev in Thread] | Current Thread | [Next in Thread] |