I know how to calculate the inverse of a matrix but I am having difficulty applying it in php
. I am new to php
and got an assignment to create a php
program that gives inverse of a matrix.
Can anyone please help me to create this program? It would be very useful for my learning.
Below I have a 2x2 matrix in two arrays of which I took the Adjoint but now I'm having problems with further steps
Array
(
[0] => Array
(
[0] => 1
[1] => 2
)
[1] => Array
(
[0] => 4
[1] => 5
)
)
Array
(
[0] => Array
(
[0] => 5
[1] => -2
)
[1] => Array
(
[0] => -4
[1] => 1
)
)