public class QuantumToolBox extends Object
| Modifier and Type | Method and Description | 
|---|---|
static long | 
order(double z,
     long a,
     long n,
     int limit)
Given the number z ≈ s/r as information,
  where r is the order modulo n of the number a,
  and 0 <= s < r
  (but not knowing neither s nor r), 
  this method returns a multiple of r if such a number is found,
  or -1 otherwise. 
 | 
public static long order(double z,
                         long a,
                         long n,
                         int limit)
z - a number approximating the unknown rational number s/ra - a previously randomly chosen test numbern - the moduluslimit - the maximum number of continued fraction coefficients to be computedNumbers.continuedFraction(double,int), 
Numbers.ord(long,long)