baha2rmirzazadeh / phpmath
一个强大的PHP数学库!
1.5.2
2019-10-11 12:30 UTC
Requires
- php: >=7.1.0
- ext-gmp: *
This package is auto-updated.
Last update: 2024-09-14 12:16:05 UTC
README
此库包含用于计算数学事物的有效类和方法。
功能
其中一些功能包括求解方程组、线性、二次和三次方程求解器、与素数等操作。
更多详细信息请参阅文档。
即将添加[统计类]
安装
使用 [Composer] 安装包
$ composer require baha2rmirzazadeh/phpmath
示例
use PHPMath\Math\Math; use PHPMath\Algebra\Algebra; use PHPMath\Algebra\MatrixFactory; $math = new Math(); print_r($math->ProbablePrimeNumbersList(20000, 185)); print_r($math->dividable(1858)); $algebra = new Algebra(); print_r($algebra->systemOfLinearEquation([[2, -4, 5], [4, -1, 0], [-2, 2, -3]], [[-33], [-5], [19]])); print_r($algebra->cubicEquation(1, 2, -1, -2)); $matrix = new MatrixFactory(); print_r($matrix->transpose([[2, 4, 6, -4], [3, 4, 5, 0]])); print_r($matrix->multiply($matrix->inverse([[1, 2], [3, 4]]), [[1, 2], [3, 4]])); print_r($matrix->reShape([1, 2, 4, 5, 8, 9], 2, 3));
类和方法描述
所有类和方法都有文档,您可以阅读它们并了解它们的工作方式。
作者
- [Bahador Mirzazadeh]
- 邮箱: [baha2r.mirzazadeh98@gmail.com]
许可证
此包库的所有内容均受 [MIT许可证] 许可。