NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #1945 most downloaded on Packagist
Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra
Last release 11 months ago
24 Oct 2025
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
140 releases · first in 2016
Polynomial implements ObjectArithmetic
Internal refactoring/improvements
One column per quarter.
### New Features * Matrix * Cholesky decomposition * isRref * Exchange matrix * isInvolutory * isSignature * Hilbert matrix * isUpperBidiagonal * isLo
Complex number support to quadratic and cubic equations
### New Features * Matrix * isSingular * isNonsingular * isInvertible * leadingPrincipalMinor * isPositiveDefinite * isPositiveSemidefinite * isNegati
Number theory prime factorization
### New Features * Number Theory - Integers * Perfect powers * Advanced Sequences * Perfect powers * Not perfect powers * Primes up to n * Algebra * Q
Circular statistics (directional statistics)
Finance principle payment on an annuity
Finance internal rate of return
Matrix representation as array of column vectors
Finance: Annual Equivalent Rate (AER)
### New Features * Two-sample z significance test
Shannon entropy (bits, nats, hartleys)
### New Features * Lazy caterer's sequence * Magic squares sequence
### New Features * Look-and-say sequence
Refactor exceptions to use custom exception classes
Effect size η²p (Partial eta-squared)
Change root namespace from Math to MathPHP
Clamped Cubic Spline Interpolation
Natural cubic spline interpolation
Some null return values changed to NAN when computation is invalid
Matrix solve linear system of equations
Fix matrix determinant calculation
### New Features * Polynomial class * Vector cross product
Numerical Differentiation (\Math\NumericalAnalysis\NumericalDifferentiation)
Nevilles Method (\Math\NumericalAnalysis\Interpolation)
Lagrange polynomials (\Math\NumericalAnalysis\Interpolation)
One-way ANOVA (`Math\Statistics\ANOVA`)
Math\Statistics\ANOVA)Math\Probability\Distribution\Table)Math\Statistics\Descriptive)Math\Statistics\RandomVariable)Math\Probability\Distribution\Table)Math\Probability to Math\Probability\Distribution\TableStandard Normal Table (Z Table)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →