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