|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ObjectZModNData
A small database of facts about the ring Z/NZ.
| Field Summary | |
int |
cardP3
The number of points in P3(Z/NZ). |
int |
N
|
| Constructor Summary | |
ZModNData(int N)
Constructor. |
|
| Method Summary | |
int |
getInverse(int i)
Returns the inverse of i modulo N, or 0 if i is not a unit mod N. |
ArrayList |
getUnits()
Returns a list of the units mod N, as Integers. |
static void |
main(String[] args)
Prints out all the data. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final int N
public final int cardP3
PPT for what it is in general.
| Constructor Detail |
public ZModNData(int N)
IllegalArgumentException - If N ≤ 1.
ArithmeticException - If N is so big that
cardP3 would not fit in an int.| Method Detail |
public ArrayList getUnits()
public int getInverse(int i)
public static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||