Skip to content

Releases: MarcoConsiglio/php-modular-arithmetic

v3.1.1

24 Feb 16:42
ee60fbe

Choose a tag to compare

Changelog

v3.1.1 - 2026-02-24

Changed

  • Dependencies upgrade.

v3.1.0

24 Feb 12:09
c53541d

Choose a tag to compare

Changelog

v3.1.0 - 2026-02-24

Changed

  • ModularNumber class constructor now accept float type input for both $value and $modulus parameters.
  • API and README documentation.

v3.0.0

22 Feb 12:38
f203ed2

Choose a tag to compare

Changelog

v3.0.0 - 2026-02-22

Add

  • ModularNumber to represent both integer and decimal modular numbers.
  • Modular{
        Addition
        Multiplication
        Exponentiation
    } to provide arithmetic operations on modular numbers.
  • Operation to chech common constraints of modular arithmetic.

Changed

  • DifferentModulusError now accept ModularNumber type inputs.
  • API and README documentations.

Removed

  • IntegerOverflowError (no need anymore).
  • IntegerModular{
        Addition
        Exponentiation
        Multiplication
        Operation
    }, use the respective Modular* class instead.
  • ModularInteger, use ModularNumber class instead.

v2.0.0

08 Jan 12:06
67f9797

Choose a tag to compare

Changelog

v2.0.0 - 2025-01-08

Changed

  • BREAKING CHANGE: Parameter name $a to $base in IntegerModularExponentiation::__construct() method.
  • API documentation.
  • Improvements to exponentiation operation.

Fixed

  • Negative base exponentiation causing not to throws IntegerOverflowException when needed.

v1.0.0

04 Jan 11:45
e6c883e

Choose a tag to compare

Changelog

v1.0.0 - 2025-01-04

Added

  • The ModularInteger class that represent an integer variable along with its modulus.
  • The IntegerModularOperation class along with the arithmetic operations to perform modular arithmetic:
    • IntegerModularAddition
    • IntegerModularMultiplication
    • IntegerModularExponentiation.
  • Exceptions DifferentModulusError and IntegerOverflowError.
  • API documentation.
  • README documentation.