deathpain ياليت تفهمني كيف اسوي matrix inverse
من نوع 3*3 انا اللي مو عارفتة خطوات طريقة حسابها عشان اسو يها في كود
يعني اول احسب دلتا aواش كمان وعلى العموم الله يوفقك على مساعدتك لنا
كود PHP:
the inverse of a square matrix a is denoted a-1, such that a×a-1 = i, where i is the identity matrix with all1’s on the diagonal and 0 on all other cells.
The inverse of matrix , for example, is
that is,
the inverse of a 3 × 3 matrix
can be obtained using the following formula if :
.
Implement the following function to obtain an inverse of the matrix:
Public static double[][] inverse(double[][] a)
write a test program that prompts the user to enter , , , , , , , , for a matrix and displays its inverse matrix. Here are the sample runs:
Sample 1
enter a11, a12, a13, a21, a22, a23, a31, a32, a33: 1 2 1 2 3 1 4 5 3
-2 0.5 0.5 1 0.5 -0.5 1 -1.5 0.5