hey, ive got to find the inverse of an 8x8 matrix. i have only coded a 2x2 matrix method. i have no clue or idea how to do anything larger than a 2x2. help is greatly needed.

code:

public static double[][] inverse(double[][] A) { double[][] result = new double[A.length][A.length]; double ValueOfA = (A[0][0] * A[1][1]) - (A[0][1] * A[1][0]); result[0][0] = A[1][1]; result[0][1] = -A[0][1]; result[1][0] = -A[1][0]; result[1][1] = A[0][0]; result[0][0]/=ValueOfA; result[0][1]/=ValueOfA; result[1][0]/=ValueOfA; result[1][1]/=ValueOfA; for(int row= 0; row < result.length;row++) { for(int col = 0; col < result[row].length; col++) { System.out.print(result[row][col] + " "); } System.out.println(); } return result; }