
Inverse modulo p File ID: 65093 


 Inverse modulo p License: Freeware Downloads: 47
Submit Rating: 



Inverse modulo p Description 

Description: Very rarely it is necessary to find the multiplicative inverse of a number in the ring of integers modulo p. Thie recipe handles those rare cases. That is, given x, an integer, and p the modulus, we seek a integer x^1 such that x * x^1 = 1 mod p. For example 38 is the inverse of 8 modulo 101 since 38 * 8 = 304 = 1 mod 101. The inverse only exists when a and p are relatively prime. 
More Similar Code 

An implementation of the image normalization (and inverse normalization) part of P. Dong et al.'s paper: "Digital Watermarking Robust to Geometric Distortions," IEEE Trans. Image Processing, Vol. 14, No. 12, pp. 21402150, 2005.
Anthropomorphic arm with 6 DOF and spherical wrist It calculates the Inverse Kinematic of an Anthropomorphic arm with 6 DOF. 'q' is the solutions in radiant and K is the direct Kinematic matrix.
K = [ n s a p; 0 0 0...
It calculates the Inverse Kinematic of an Anthropomorphic arm with 3 DOF. 'q' is the solutions in radiant and K is the direct Kinematic matrix.
K = [ n s a p; 0 0 0 1] where n, s, a are three vectors fo 3 elements...
A Flipdict is a python dict subclass that maintains a onetoone inverse mapping. Each key maps to a unique value, and each value maps back to that same key. Each instance has a "flip" attribute to access the inverse mapping.
Applying the inverse transform method to the normal distribution entails evaluation of the inverse normal. This is the BeasleySpringerMoro algorithm for approximating the inverse normal.
Input: u, a sacalar or matrix with elements...
Inverse every 2D matrix slice (the first two dimensions) for multidimensional array M: M(:,:,p,q,...) * X(:,:,p,q,...) = repmat(eye(m),[1,1,p,q,...]), where input M is a ND array (m x m x [p x q x ...]), for all possible...
This function shows an approximation of the Julia set boundary for the functions of the form P(z) = z^2 + C. The inverse iteration is a method for calculating previous values of z by doing z = sqrt(zc). By doing this, points along the boundary...
Nimda Attack Log P Linux compatible. Takes any clf(common log format) or similar log file and parses it for nimda requests from an infected computer. With this info., it creates a webpage seperating the requests by monthly totals. Page is easily...
p protect is multiplatform compatible. A straightforward protection script written in PHP. When a visitor enters the wrong username and password in the login page, this script will automatically notify you through email.
[psi gopt] = dfdesign_w_lmi(phi, w, d, n);
DFDESIGN_W_LMI computes the Hinfinity optimal inverse FIR filter of phi(z). The resulting filter minimizes the Hinfinity norm of the error system E_w(z) = [z^(d) ... 
User Review for Inverse modulo p 
