12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
/**
|
|
* Modular inverse.
|
|
*
|
|
* @param a The number to find an inverse for
|
|
* @param n The modulo
|
|
*
|
|
* @throws {@link RangeError} if a does not have inverse modulo n
|
|
*
|
|
* @returns The inverse modulo n
|
|
*/
|
|
export declare function modInv(a: number | bigint, n: number | bigint): bigint;
|
|
//# sourceMappingURL=modInv.d.ts.map
|