suryapradana / alephp
A PHP Library To Solve Elementary Linear Algebra Problems
0.1.0
2017-02-15 09:21 UTC
This package is not auto-updated.
Last update: 2024-09-09 06:34:18 UTC
README
http://github.com/suryapradana/ALEphp
Easily To Solve Elementary Linear Algebra Problems Between Addition, Subtraction, Multiplication, Adjoin, Eigen, Invers, Scalar, System of linear equations, Transpose, Vector of Matrix
Features
- Available Elementary Linear Algebra Calculation:
- Addition
- Subtraction
- Multiplication
- Adjoin
- Eigen
- Invers
- Scalar
- System of linear equations
- Transpose
- Vector
Installation
composer require suryapradana/alephp
Usage
Addition
use ALE\ALE; require_once('../../src/ALE/ALE.php'); $additional = new ALE('Addition'); $additional->process->setRowColumn(3, 3); $additional->process->setDataFirst([ [1, 2, 5], [3, 4, 6], [8, 9, 2] ]); $additional->process->setDataSecond([ [5, 6, 4], [7, 3, 6], [4, 6, 2] ]); foreach ($additional->process->setALE() as $value) { echo implode(' ', $value); echo '<br>'; }
Vector
use ALE\ALE; require_once('../../src/ALE/ALE.php'); $vector = new ALE('Vector'); $vector->process->setVectorType('Projection'); $vector->process->setDataNonMatrixA(1,2,3); $vector->process->setDataNonMatrixB(4,3,2); foreach ($vector->process->setALE() as $values) { echo $values.' '; }
Eigen
use ALE\ALE; require_once('../../src/ALE/ALE.php'); $eigen = new ALE('Eigen'); $eigen->process->setDataFirst([ [3, 4], [5, 2] ]); $eigen->process->setALE();
License
ALEphp is released under the MIT Licence. See the bundled LICENSE file for details.