public class Modular extends Object
Constructor and Description |
---|
Modular() |
Modifier and Type | Method and Description |
---|---|
static double |
addMod(double x,
double a)
Given x in [0,1) and a in (-1,1),
return (x, a) mod 1.0.
|
static long |
mod(long e,
long n)
Compute 2^e mod n
|
static long |
modInverse(long x,
long y)
Given 0 < x < y,
return x^(-1) mod y.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.