Skip to content

jimilinuxguy/PHP-Gaussian-Elimination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PHP-Gaussian-Elimination

Gaussian elimination is a method for solving matrix equations/solving systems of linear equations of the form Ax=b.

Solves a system of equations by composing an augmented matrix equation: See Gaussian Elimination - Wikipedia and Gaussian Elimination - Wolfram Alpha for more information on implementing.

Usage

Edit math.php, and modify the sample matrix values below:

$A = array(array(2, 4), array(1, 1));

$x = array(8, 2);

$gaus = new Gaussian();

$answer = $gaus->solve($A, $x); // returns [0, 2]

About

PHP implementation of the Gaussian Elimination method for solving system of equations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages