tenks for giving me that..

but actually the problem is, i'm dealing with nxn matrix which need me to inverse it..i this kind of matrix..
[code] //B'-matrix to find the value of deltaDel
print ("B'-matrix<br>");
for($i=1;$i<=$totalbus;$i++)
{
if(($buscode[$i]==0)||($buscode[$i]==2))
{
for($j=1;$j<=$totalbus;$j++)
{
if(($buscode[$j]==0)||($buscode[$j]==2))
{
$B1matrix[$busnum[$i][$j]]=$matrix_imgpart[$i][$j];
print($B1matrix[$busnum[$i][$j]]." ");
}
}
}
print("<br>");
}
print("<br>");
//B''-matrix to find the value of deltaVolt
print ("B''-matrix");
for($i=1;$i<=$totalbus;$i++)
{
if($buscode[$i]==2)
{
for($j=1;$j<=$totalbus;$j++)
{
if($buscode[$j]==2)
{
$B2matrix[$busnum[$i][$j]]=$matrix_imgpart[$i][$j];
print($B2matrix[$busnum[$i][$j]]." ");
}
}
}
print("<br>");
}
print("<br>");
[code]
and now i have to inverse the matrix..another problem is, the matrix that im dealing with is not only 3x3 matrix..it could be 4x4 or 2x2.. so, i cant fixed the equation to inverse it.
really hope that u can help me to solve it..