Lines Matching full:modulus
1236 modulus string
1243 var element, modulus, gcd, inverse Int
1247 (&modulus).SetString(test.modulus, 10)
1248 (&inverse).ModInverse(&element, &modulus)
1250 (&inverse).Mod(&inverse, &modulus)
1257 (&modulus).SetInt64(int64(n))
1260 (&gcd).GCD(nil, nil, &element, &modulus)
1264 (&inverse).ModInverse(&element, &modulus)
1266 (&inverse).Mod(&inverse, &modulus)
1268 t.Errorf("ModInverse(%d,%d)*%d%%%d=%d, not 1", &element, &modulus, &element, &modulus, &inverse)