Releases: MarcoConsiglio/php-modular-arithmetic
Releases · MarcoConsiglio/php-modular-arithmetic
v3.1.1
v3.1.0
Changelog
v3.1.0 - 2026-02-24
Changed
ModularNumberclass constructor now acceptfloattype input for both$valueand$modulusparameters.- API and README documentation.
v3.0.0
Changelog
v3.0.0 - 2026-02-22
Add
ModularNumberto represent both integer and decimal modular numbers.Modular{
Addition
Multiplication
Exponentiation
}to provide arithmetic operations on modular numbers.Operationto chech common constraints of modular arithmetic.
Changed
DifferentModulusErrornow acceptModularNumbertype inputs.- API and README documentations.
Removed
IntegerOverflowError(no need anymore).IntegerModular{
Addition
Exponentiation
Multiplication
Operation
}, use the respectiveModular* class instead.ModularInteger, useModularNumberclass instead.
v2.0.0
Changelog
v2.0.0 - 2025-01-08
Changed
- BREAKING CHANGE: Parameter name
$ato$baseinIntegerModularExponentiation::__construct()method. - API documentation.
- Improvements to exponentiation operation.
Fixed
- Negative base exponentiation causing not to throws
IntegerOverflowExceptionwhen needed.
v1.0.0
Changelog
v1.0.0 - 2025-01-04
Added
- The
ModularIntegerclass that represent an integer variable along with its modulus. - The
IntegerModularOperationclass along with the arithmetic operations to perform modular arithmetic:IntegerModularAdditionIntegerModularMultiplicationIntegerModularExponentiation.
- Exceptions
DifferentModulusErrorandIntegerOverflowError. - API documentation.
- README documentation.