Exemplo n.º 1
0
 public override uint ModularDifference(uint a, uint b, uint modulus)
 {
     return(IntegerMath.ModularDifference(a, b, modulus));
 }
Exemplo n.º 2
0
 public override Rational ModularDifference(Rational a, Rational b, Rational modulus)
 {
     return(IntegerMath.ModularDifference((BigInteger)a, (BigInteger)b, (BigInteger)modulus));
 }
 public override IResidue <ulong> Subtract(IResidue <ulong> x)
 {
     r = IntegerMath.ModularDifference(r, GetRep(x), reducer.modulus);
     return(this);
 }
Exemplo n.º 4
0
 public override ulong ModularDifference(ulong a, ulong b, ulong modulus)
 {
     return(IntegerMath.ModularDifference(a, b, modulus));
 }
 public override double ModularDifference(double a, double b, double modulus)
 {
     return((double)IntegerMath.ModularDifference(ToBigInteger(a), ToBigInteger(b), ToBigInteger(modulus)));
 }
 public override Complex ModularDifference(Complex a, Complex b, Complex modulus)
 {
     return((Complex)IntegerMath.ModularDifference(ToBigInteger(a), ToBigInteger(b), ToBigInteger(modulus)));
 }
 public override BigInteger ModularDifference(BigInteger a, BigInteger b, BigInteger modulus)
 {
     return(IntegerMath.ModularDifference(a, b, modulus));
 }