Skip to content

HJyup/system-of-linear-equations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System of Linear Equations

A simple Haskell project to solve systems of linear equations using the matrix inverse method.

Overview

This project provides a solution to systems of linear equations represented in matrix form:

[ A X = B ]

Where:

  • ( A ): The coefficient matrix, representing the linear equations.
  • ( X ): The column vector of unknown variables.
  • ( B ): The column vector of constants.

By calculating the inverse of ( A ), the solution ( X ) can be derived as:

[ X = A^{-1} B ]

Features

  • Multiplies ( A^{-1} ) with ( B ) to obtain the solution vector ( X ).
  • Provides error handling for cases where the matrix ( A ) is not invertible or input is invalid.

Requirements

  • GHC (Glasgow Haskell Compiler): Ensure you have GHC installed.
  • Cabal: For managing Haskell dependencies and building the project.

Run Locally

Clone the repository and navigate to the project directory:

git clone https://github.com/HJyup/system-of-linear-equations.git
cd sudoku-solver

Build the project with Cabal:

cabal build

Run the application with Cabal:

cabal run system-of-linear-equations

License

MIT

About

A haskell project to solve linear equations using inverse

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published