Post Reply 
modulo calculation: inverse of a number
02-11-2016, 05:24 PM
Post: #2
RE: modulo calculation: inverse of a number
The class of x in Z/nZ is represented by x %% n, you can do arithmetic operations on these objects (including polynomials having them as coefficients).
a:=(3 %% 14)^-1
The class residue is represented with x between -n/2 and n/2.
Use %% 0 to extract the integer (for example a %% 0 will return 5 here).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: modulo calculation: inverse of a number - parisse - 02-11-2016 05:24 PM



User(s) browsing this thread: 1 Guest(s)