13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
/**
|
|
* Modular inverse.
|
|
*
|
|
* @param a The number to find an inverse for
|
|
* @param n The modulo
|
|
*
|
|
* @throws {RangeError}
|
|
* Excpeption thorwn when 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
|