public class Modular
extends java.lang.Object
| Constructor | Description |
|---|---|
Modular() |
| Modifier and Type | Method | 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 © 2008–2025 Apache Software Foundation. All rights reserved.