Liền kề ma trận python

On Thu, Dec 9, 2010 at 10:03 PM, Rob Beezer wrote:
> Có bất kỳ sự phản đối nào đối với việc phản đối hiện tại. chức năng liên kết ()
> (trả về một ma trận các đồng sáng lập) và đổi tên nó thành
> "phân xử"?
> phản đối. Điều đó sẽ bắt đầu quá trình giải phóng "liên kết" cho
> cái gì khác (lý tưởng là chuyển vị liên hợp)

Show

    Tôi đã không thể trả lời về vấn đề này trước đây và hôm nay sau khi nhận được
    bình luận về vé #10501 Tôi đã bình luận ngay tại đó, đó có thể là một
    hơi thiếu lịch sự vì đã hết thời gian và tôi đã không đăng bài đó
    bình luận cho chủ đề này (nếu vậy tôi xin lỗi)

    Dù sao, đây là một bản sao của bài viết của tôi, trong trường hợp nó hữu ích

    Tôi đã nêu một số phản đối, nhưng tôi sẽ nhắc lại

    Về việc không dùng "adjoint" có nghĩa là "ma trận của các đồng sáng lập"
    1. đó là thuật ngữ tiêu chuẩn và đã có ý nghĩa này trong hiền triết từ lâu
    2. "adjugate" là thuật ngữ mới hơn và (IMO) ít tiêu chuẩn hơn - trong
    đặc biệt nó không có bản dịch rõ ràng

    Khi sử dụng "adjoin" có nghĩa là "chuyển vị liên hợp"
    3. "chuyển vị liên hợp" rất dễ nói, và đó thực sự là ý nghĩa của nó
    4. "toán tử phụ" cho một ma trận có vẻ không được xác định rõ ràng, bởi vì một
    ma trận không phải là toán tử mà chỉ là biểu diễn của toán tử trong
    một số cơ sở

    Hơn nữa, nếu có hai cách sử dụng xung đột của tên "adjoint", tôi
    sẽ thấy hợp lý hơn nếu giữ cách sử dụng đã có
    truyền thống trong Sage

    Việc sử dụng "liên kết" là phổ biến liên quan đến các dạng bậc hai
    afaict (và, như John Cremona đã chỉ ra, là nơi thuật ngữ này bắt nguồn
    với Gauss ở dạng bậc hai bậc ba)

    Tôi cũng đã chỉ ra một tham chiếu đến Bourbaki mà tôi đã đăng
    bên trên. Tôi vẫn chưa tìm thấy tài liệu tham khảo cho "adjugate" mà
    thỏa mãn tôi (ý tôi là, nó bắt nguồn từ đâu?) hoặc một tài liệu tham khảo tốt
    để biết cách sử dụng "liên kết của ma trận" theo nghĩa "chuyển vị liên hợp"
    liên quan đến các toán tử liên kết mà cuối cùng không gây ra một số đau đớn
    khi sử dụng nó trong thế giới thực, nơi không phải tất cả các cơ sở đều trực giao
    (thậm chí không phải mọi không gian vectơ đều có tích bên trong)

    OTOH, tôi chắc chắn đánh giá cao chuyển vị và chuyển vị liên hợp đó
    được sử dụng khá nhiều, và do đó tôi nghĩ rằng nó thực sự xứng đáng với tất cả
    các phím tắt được đề xuất (T, H, sao, v.v.)

    gonzalo

    Ma trận liên hợp (hoặc Adjugate) của một ma trận là ma trận thu được bằng cách chuyển vị ma trận cofactor của một ma trận vuông đã cho được gọi là ma trận Adjoint hoặc Adjugate của nó. Adjoint của bất kỳ ma trận vuông 'A' (giả sử) được biểu diễn dưới dạng Adj(A).  

    Thí dụ.  

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 

    thuộc tính quan trọng.  

    Tích của ma trận vuông A với ma trận kề của nó tạo ra một ma trận đường chéo, trong đó mỗi mục nhập đường chéo bằng định thức của A.  
    i. e.  

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 

    Một ma trận vuông khác 0 'A' cấp n được gọi là khả nghịch nếu tồn tại một ma trận vuông duy nhất 'B' cấp n sao cho,

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    • tính từ (AB) = (tính từ B). (tính từ A)
    • adj(k A) = kn-1 adj(A)
    • A-1 = (tính từ A) /. A
    • (A-1)-1 = A
    • (AB)-1 = B-1A-1

    Làm thế nào để tìm Adjoin?

    Chúng tôi làm theo định nghĩa được đưa ra ở trên.  

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]

    Làm thế nào để tìm nghịch đảo?

    Nghịch đảo của ma trận chỉ tồn tại nếu ma trận không phải là số ít i. e. , định thức không được bằng 0.  
    Sử dụng định thức và điều chỉnh, chúng ta có thể dễ dàng tìm thấy nghịch đảo của ma trận vuông bằng cách sử dụng công thức dưới đây,

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  

    Nghịch đảo được sử dụng để tìm giải pháp cho một hệ phương trình tuyến tính

    Dưới đây là các triển khai để tìm phép đối và nghịch đảo của ma trận.   

    C++




    // C++ program to find adjoint and inverse of a matrix

    #include

    using

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    0
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    1

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    2

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    3

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    4

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    6_______0_______7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    8
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    0
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    4

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    5_______0_______7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    1

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    3

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    3

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______3_______5

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______3_______7

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______3_______9

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______1
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    2

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______4

     

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______6

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    1

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______3

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______5

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3____56_______7

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    // C++ program to find adjoint and inverse of a matrix5

    // C++ program to find adjoint and inverse of a matrix6// C++ program to find adjoint and inverse of a matrix7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 // C++ program to find adjoint and inverse of a matrix9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    8
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 #include 7#include 8

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using0

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1 using3

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5 using6

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 using9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    00

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    03
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    04

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    06

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    11

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    13

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    15

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    17

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    19

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    21

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    26

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    28

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    30_______0_______7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    8
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    34

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    38

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    40

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    47

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    50

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    55

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    60

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______62

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______64

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______66

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______68

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______70

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______72

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______74

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______76

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    82

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    83

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    84
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    85_______0_______7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    8
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    89

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    92

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    95

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    98

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    00
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    01
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    05
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    10

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    13

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    17

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    19

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    24

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    29

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1_______31
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    33

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    36
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    39

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    40

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    41

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    42
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    43
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    44
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    45_______0_______5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    47

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    55

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    29

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1_______60
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    64

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    68

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    70

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    74

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    76

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    78

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    80

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    13
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    84

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    87
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    88

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    00
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    91
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    94

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    00
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    97
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    02

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    00_______2_______05
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    09

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    11

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    14

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    Java




       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    16

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    44
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    18

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    22
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    24
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    25
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    27

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    28

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    33
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    35
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    4
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    45_______2_______46_______2_______47
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    3

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    56
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    58

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    65
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    67

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______2_______71

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______2_______73

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    76

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______4

     

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______6

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    87_______2_______88_______2_______89

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    93
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______5

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3____56_______7

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    // C++ program to find adjoint and inverse of a matrix5

    // C++ program to find adjoint and inverse of a matrix7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 // C++ program to find adjoint and inverse of a matrix9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    33
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    19
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46_______0_______43#include 8

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    24

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    27_______2_______88
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    32
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    34
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    36

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    39_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    42
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    00

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    46
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88_______0_______43
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    04

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    06

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    56
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    58

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    13

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    64
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    66

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    68
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    70
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    19

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    21

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    26

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    28

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    30
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    33
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    90

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    94_______2_______88
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    00
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    34
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    04
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    47

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    46
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88_______0_______43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    39_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    42

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    45
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    31

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6_______0_______7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    93
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    40

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______62

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______64

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______66

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______68

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______52
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    53
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    54
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    56
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    58
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______72

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______74

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______66
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    68

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    82

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    83

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    77
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    85_______0_______7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    33
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    82

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    92

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    95

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    91
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    97
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    01
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    05
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    10

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    10_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    42

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    17

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    45
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    31

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6_______0_______7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    93
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    40

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______33
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    35

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    36
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    41

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    42

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    43

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    48

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    45
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    31

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6_______0_______7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    93
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    40

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______67
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    71

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    48

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    45
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    31

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6_______0_______7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    93
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    40

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______98
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    99// C++ program to find adjoint and inverse of a matrix00

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    71

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    68

    // C++ program to find adjoint and inverse of a matrix07

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5 // C++ program to find adjoint and inverse of a matrix10

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 // C++ program to find adjoint and inverse of a matrix14// C++ program to find adjoint and inverse of a matrix15// C++ program to find adjoint and inverse of a matrix16
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    53// C++ program to find adjoint and inverse of a matrix18
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    53// C++ program to find adjoint and inverse of a matrix18// C++ program to find adjoint and inverse of a matrix21// C++ program to find adjoint and inverse of a matrix22

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88_______1678_______18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46_______1678_______18// C++ program to find adjoint and inverse of a matrix31// C++ program to find adjoint and inverse of a matrix22

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2// C++ program to find adjoint and inverse of a matrix34// C++ program to find adjoint and inverse of a matrix31// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88// C++ program to find adjoint and inverse of a matrix18// C++ program to find adjoint and inverse of a matrix15// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46// C++ program to find adjoint and inverse of a matrix22

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8// C++ program to find adjoint and inverse of a matrix31// C++ program to find adjoint and inverse of a matrix16
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88// C++ program to find adjoint and inverse of a matrix16// C++ program to find adjoint and inverse of a matrix49// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    25// C++ program to find adjoint and inverse of a matrix52

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    10_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    42
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    84

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88 // C++ program to find adjoint and inverse of a matrix62
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    42
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    88

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    97
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    91
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    94

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    97
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    97
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    02

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    97
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    05
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    09

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    11

     

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    // C++ program to find adjoint and inverse of a matrix92

    Python3




    // C++ program to find adjoint and inverse of a matrix93

    // C++ program to find adjoint and inverse of a matrix94

    // C++ program to find adjoint and inverse of a matrix95_______1678_______96

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    25

     

    // C++ program to find adjoint and inverse of a matrix98

    // C++ program to find adjoint and inverse of a matrix99

    #include 00

    #include 01 #include 02

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 04// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 08// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 12

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 15#include 16 #include 17#include 18

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 21#include 16 #include 17#include 18

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1679_______26

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1679_______28

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______1 #include 31_______1678_______96 #include 33#include 34 #include 35// C++ program to find adjoint and inverse of a matrix96 #include 37

     

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3#include 39// C++ program to find adjoint and inverse of a matrix96 #include 41

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3#include 08#include 44// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88

     

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3#include 48

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3#include 50

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1 #include 53_______1678_______96// C++ program to find adjoint and inverse of a matrix96 #include 56#include 57
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88#include 59

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2#include 08// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2#include 04____1679_______44_______1678_______96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88

     

     

    #include 69

    #include 70

    #include 01 #include 72

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 74// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46   #include 77

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 79

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1 #include 82// C++ program to find adjoint and inverse of a matrix96// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88#include 59

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    32
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    34
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46#include 93

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 95// C++ program to find adjoint and inverse of a matrix96 #include 97#include 98

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using06using07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17_______1680_______12

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using14// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88   using17

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using19

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using22#include 16 #include 17#include 18

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using27

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    64
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46using31

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9#include 74#include 44// C++ program to find adjoint and inverse of a matrix96 using14using37
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    32
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46using40using37 using42#include 57
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using47

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using14// C++ program to find adjoint and inverse of a matrix96 #include 57using14

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5 #include 74

     

     

    using56

    #include 01 using58

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1 using61// C++ program to find adjoint and inverse of a matrix96// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88#include 59

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    00
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    34
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46#include 93// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using77

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using14// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9#include 95// C++ program to find adjoint and inverse of a matrix96 #include 97#include 98

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using06using07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17_______1680_______12

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 08#include 16 #include 17using04

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______014

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______016

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______018

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______020

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1680_______14// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    024
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88// C++ program to find adjoint and inverse of a matrix18#include 57
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    029#include 44
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    031
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    032
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    53#include 93

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______036

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______038

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______040// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    042using37
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    044#include 57
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    047

     

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    048

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    049

    #include 01

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    051

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    053

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    055// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    057

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    060// C++ program to find adjoint and inverse of a matrix96// C++ program to find adjoint and inverse of a matrix96
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46#include 59

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    066
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    01
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    072

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    074

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    076// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    078

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    086using07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17using12

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    094

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    096

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 08#include 16 #include 17using04

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______110// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    112
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    113
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    055

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    117

     

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    118

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    119

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    120

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    121

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    122

    #include 01

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    124

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 08#include 16 #include 17using04

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______066
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    139// C++ program to find adjoint and inverse of a matrix96
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    066
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    145

     

     

    #include 01

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    147

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 08#include 16 #include 17using04

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______066
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    163
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    164
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    165
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    166// C++ program to find adjoint and inverse of a matrix96
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    066
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    145

     

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    173

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    174// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    176// C++ program to find adjoint and inverse of a matrix15// C++ program to find adjoint and inverse of a matrix18#include 57
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    53// C++ program to find adjoint and inverse of a matrix18
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    53// C++ program to find adjoint and inverse of a matrix18// C++ program to find adjoint and inverse of a matrix21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    185
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46// C++ program to find adjoint and inverse of a matrix18// C++ program to find adjoint and inverse of a matrix31
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    185#include 57// C++ program to find adjoint and inverse of a matrix31// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88// C++ program to find adjoint and inverse of a matrix18// C++ program to find adjoint and inverse of a matrix15// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    185// C++ program to find adjoint and inverse of a matrix31// C++ program to find adjoint and inverse of a matrix18#include 57
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    88// C++ program to find adjoint and inverse of a matrix18#include 57// C++ program to find adjoint and inverse of a matrix49// C++ program to find adjoint and inverse of a matrix18
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    25
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    212

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    076// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    024_______1680_______07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    221

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    222_______1678_______96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    024_______1680_______07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    221

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 #include 04#include 16 #include 17using04

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    237_______1678_______96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    024using07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    221

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    247// C++ program to find adjoint and inverse of a matrix96
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    024using07
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5 using09#include 16 #include 17
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    221

     

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    066
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    258
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    260

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    066
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    263
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    094

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    266

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    066
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    269
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    89

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    272

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    274

     

    ______________275

    C#




    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    276

    using

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    278

    using

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    280

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    44
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    18

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    286
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    288

     

    ______________289

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    290

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    295
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    297
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    4
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    1

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    3

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    314

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    321

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______2_______71

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______2_______73

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    76

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______0_______334

     

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______6

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    341

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______3

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______5

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3____56_______7

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    // C++ program to find adjoint and inverse of a matrix5

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    358

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 // C++ program to find adjoint and inverse of a matrix9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    295
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7 #include 7#include 8

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    24

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1 using3

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    378

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    381_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    384
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    00

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    03
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    04

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    06

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    396

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    400

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    15

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    404

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    19

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    21

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    26

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    ______________415

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    30
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    295
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    422

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    426

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    430

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    437

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    03

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    381_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    384

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    24

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    29

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______462

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______64

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______466

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______68

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______470

     

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______72

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______74

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______476

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    82

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    83

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    84
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    85_______0_______7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    295
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    490

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    493

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    95

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    499

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    503
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    01
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    05
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    10

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    516_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    384

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    17

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    24

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    29

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______535
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    35

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    36
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    41

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    42

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    43

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    550

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    24

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    29

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______565
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    569

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    46
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    550

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    24

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    6
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    29

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______503
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    593
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    594

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    569

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    68

    // C++ program to find adjoint and inverse of a matrix07

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    21
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    604

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    608

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    610

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    612

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____0_______614

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    516_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    7
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    384
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    621

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    624_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    88
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    384
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    628

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    503
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    91
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    94

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    503
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    97
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    02

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    503
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    05
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    09

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    11

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    654

    Javascript




    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    655

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    656

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    657

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    658

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    659

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    660

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    28

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    662
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    663

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    666

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    3

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    672

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    677

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______2_______71

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______2_______73

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______4_______1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    76

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______1_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______4

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______6

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3_______4_______8

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    341

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______3

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____56_______5

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    3____56_______7

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______56_______7

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    // C++ program to find adjoint and inverse of a matrix5

    // C++ program to find adjoint and inverse of a matrix7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    662
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    717

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    720#include 8

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    24

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1 using3

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5 using6

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    733
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    00

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    739

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    743_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    750
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    04

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    06

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    757

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    13

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    15

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    17

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    19

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    21

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    26

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    28

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    662 
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    780

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    426

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    40

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    47

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    750

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    733_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    739

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    743_______3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    817

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    822

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______62

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______64

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______66

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______68

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______470

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______72

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______74

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______842

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    82

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    83

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    662
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    851

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    92

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    856

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    499

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    863
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    01
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    05
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    10

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    876
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    739

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    885
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    17

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    817

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    822

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______902

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    667

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9using5
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    36
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    43

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    909

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    910

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    911

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    912

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    43

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    662
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    260

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    817

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    822

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______926
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    863
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    931
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    662
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    937

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    817

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    822

    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    4_______0_______948
    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    61
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    863
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    931
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    68

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    959

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    961

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2____0_______963

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    2
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    965

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    876
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    969____3_______40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

     

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    5_______0_______739

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    8

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    885
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    980
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    40
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    735

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364
    7

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    863
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    985
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    94

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    863
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    989
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    15

       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    02

     

    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    863
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    994
    Let A[N][N] be input matrix.
    
    1) Create a matrix adj[N][N] store the adjoint matrix.
    2) For every entry A[i][j] in input matrix where 0 <= i < N
       and 0 <= j < N.
        a) Find cofactor of A[i][j]
        b) Find sign of entry.  Sign is + if (i+j) is even else
           sign is odd.
        c) Place the cofactor at adj[j][i]
    72

      If det(A) != 0
        A-1 = adj(A)/det(A)
      Else
        "Inverse doesn't exist"  
    1
       A.B = B.A = I
    The matrix 'B' is said to be inverse of 'A'.
    i.e.,  B = A-1
    09

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    9
    Below example and explanation are taken from here.
    5  -2  2  7
    1   0  0  3
    -3  1  5  0
    3  -1 -9  4
    
    For instance, the cofactor of the top left corner '5' is
     + |0   0   3|
    ...|1   5   0| = 3(1 * -9 - (-1) * 5) = -12.
    ...|-1 -9   4|
    (The minor matrix is formed by deleting the row 
     and column of the given entry.)
    
    As another sample, the cofactor of the top row corner '-2' is
      -|1   0  3|
    ...|-3  5  0| = - [1 (20 - 0) - 0 + 3 (27 - 15)] = -56.
    ...|3  -9  4|
    
    Proceeding like this, we obtain the matrix
    [-12  -56   4   4]
    [76   208   4   4]
    [-60  -82  -2  20]
    [-36  -58  -10 12]
    
    Finally, to get the adjoint, just take the previous
    matrix's transpose:
    [-12   76 -60  -36]
    [-56  208 -82  -58]
    [4     4   -2  -10]
    [4     4   20   12] 
    999

     

     

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    000

     

    A.adj(A) = det(A).I 
    
    I  => Identity matrix of same order as of A.
    det(A) => Determinant value of A 
    001

    đầu ra

    The Adjoint is :
    -12 76 -60 -36 
    -56 208 -82 -58 
    4 4 -2 -10 
    4 4 20 12 
    
    The Inverse is :
    -0.136364 0.863636 -0.681818 -0.409091 
    -0.636364 2.36364 -0.931818 -0.659091 
    0.0454545 0.0454545 -0.0227273 -0.113636 
    0.0454545 0.0454545 0.227273 0.136364

    Vui lòng tham khảo https. //www. chuyên viên máy tính. org/determinant-of-a-matrix/ để biết chi tiết về getCofactor() và yếu tố quyết định()

    Bài viết này được đóng góp bởi Ashutosh Kumar. Vui lòng viết nhận xét nếu bạn thấy bất cứ điều gì không chính xác hoặc nếu bạn muốn chia sẻ thêm thông tin về chủ đề đã thảo luận ở trên.