aayushi-droid / LinearEquation

Solving Linear equations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Solving Linear equations

License:MIT License


Languages

Language:Python 100.0%