PHPackages                             moc/math - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. moc/math

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

moc/math
========

Mathematical fitting library for PHP. Performs Linear and non-linear fitting of data. Includes classes for various Math used when fitting. Included a lot of linear algebra like Matrix and Vector algebra.

7117[1 issues](https://github.com/mocdk/MOC.Math/issues)PHP

Since May 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/mocdk/MOC.Math)[ Packagist](https://packagist.org/packages/moc/math)[ RSS](/packages/moc-math/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

MOC.Math
========

[](#mocmath)

Math library for PHP. Include Matrix manipulation, equation solving and linear and un-linear fitting

Some of the matrix calculations could also be done using the PHP lapack extensions. The MOC/Math package is a native PHP implementation which is bound to be slower, but does not require any external libraries.

The library is not feature complete, and contains just enough to do linear and non-linear fitting. The algorithms are inspired by the very excellent book "Numerial recepies".

Installing
----------

[](#installing)

Easiest way is to include it with composer in your existing composer project.

```
composer require moc/math
```

And then start using is directly in your project.

```
