Invert Matrix
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Invert Matrix

Started by chill, 25 December, 2004, 13:54:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chill

there are 2 ways of inverting a matrix one
is
using  sub determinats
other is the Gau?-Jordan method

and the better one is defently
the Gau?-Jordan, it can easily calculate the
inverse Matrix of a 100 x 100 matrix
whereas the sub determinats method will take hours maybe, I borke it off, maybe someone want's to try...

and to prof the calculations of the following script are right.
we do this

the inverse Matrix =  matrix^-1

now when you multiply the orginal matrix with
the inveres you get the identity matrix

e.g. for a 3 x 3
1 0 0
0 1 0
0 0 1

so what we do is something like

m1 = Matrix:Create( 10, 10 )
m1:fillrandom( -5, 5 )

m1:draw()

m2 = m1^-1

m2: draw()

m3 = m2 * m1

m3:draw()

if m3 is a Identymatrix then the calcualtion was correct

now when we do
m1 = Matrix:Create( 100, 100 )
we get a 100 x 100 matrix to try the same

here  the code
using Gau?-Jordan

here  the code using sub detreminats

SMF spam blocked by CleanTalk