Posts

Showing posts with the label solution by matrix inverse method

mathajax

Solving System of Linear Equation by Matrix Inverse

The two or more algebraic equation are called system of equations. The Java program finds solution vector X to a system of three linear equations by matrix inverse method. a 11 x 1 + a 12 x 2 + a 13 x 3 = b 1 a 21 x 1 + a 22 x 2 + a 23 x 3 = b 2 a 31 x 1 + a 32 x 2 + a 33 x 3 = b 3 The three linear equation is represented by matrix format by separating coefficients and unknown variables | a 11 a 12 a 13 | Coefficients matrix A = | a 21 a 22 a 23 | | a 31 a 32 a 33 | unknown variable X = [ x 1 x 2 x 3 ]' non-homogeneous b = [ b 1 b 2 b 3 ]' solve given matrix A and vector b (non-homogeneous vector) find value of vector X Matrix representation A X = b ...

Solve Linear Equation 2x2 matrix

Image
System of Linear Equation The two are more linear equations are called system of linear equation. ax 1 + bx 2 = b 1 cx 1 + dx 2 = b 2 System of Linear Equation in matrix representation solution of system of Linear Equation - Algorithm The following steps are carried out for solving system linear equations by inverse method. Read Matrix A 2x2 D = determinant (Matrix A) D==0, then print matrix A is singular return no solution cA = cofactor_matrix (A) Adjoint-Matrix Adj = transpose (Matrix cA) A -1 = Adj / D solution S = A -1 b print solution S Java program Solve Linear Equation The Java program LinearEquation has one constructor function and following four member functions in order t...