ModularArithmetic
Table of Contents
Properties
-
$adapter
: GmpMathInterface
-
$modulus
: GMP
Methods
-
__construct()
: mixed
-
add()
: GMP
-
div()
: GMP
-
mul()
: GMP
-
pow()
: GMP
-
sub()
: GMP
__construct()
public
__construct(GmpMathInterface $adapter, GMP $modulus) : mixed
Parameters
-
$adapter
: GmpMathInterface
-
-
$modulus
: GMP
-
add()
public
add(GMP $augend, GMP $addend) : GMP
Parameters
-
$augend
: GMP
-
-
$addend
: GMP
-
div()
public
div(GMP $dividend, GMP $divisor) : GMP
Parameters
-
$dividend
: GMP
-
-
$divisor
: GMP
-
mul()
public
mul(GMP $multiplier, GMP $muliplicand) : GMP
Parameters
-
$multiplier
: GMP
-
-
$muliplicand
: GMP
-
pow()
public
pow(GMP $base, GMP $exponent) : GMP
Parameters
-
$base
: GMP
-
-
$exponent
: GMP
-
sub()
public
sub(GMP $minuend, GMP $subtrahend) : GMP
Parameters
-
$minuend
: GMP
-
-
$subtrahend
: GMP
-