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