Skip to content

aayushi-droid/LinearEquation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinearEquation

1. Linear Equation Solving Using Inverse Matrix

Linear equation

$$AX = B$$

Find the value of X to solve the equation

$$X = inverse(A) . B$$

Example

$$3x + 8y = 5$$ $$4x + 11y = 7$$

find the value of x using inverse matrix

A = [[3, 8], 
    [4, 11]]

B = [5, 7]

X = ?
$$X = inverse(A) . B$$

Why not linear Regression to solve this problem.

Linear regression require more dataset to solve the problem. it will fit the line based on the row. If there is limited example so linear regression will not work as expected.

Reference:

Solving Systems with Inverses