2021-03-24 13:04:30 +00:00
|
|
|
/**
|
|
|
|
* Modular inverse.
|
|
|
|
*
|
|
|
|
* @param a The number to find an inverse for
|
|
|
|
* @param n The modulo
|
|
|
|
*
|
2021-03-24 17:30:45 +00:00
|
|
|
* @throws {RangeError}
|
|
|
|
* Excpeption thorwn when a does not have inverse modulo n
|
|
|
|
*
|
|
|
|
* @returns The inverse modulo n
|
2021-03-24 13:04:30 +00:00
|
|
|
*/
|
2021-03-24 17:30:45 +00:00
|
|
|
export declare function modInv(a: number | bigint, n: number | bigint): bigint;
|
2021-03-24 13:04:30 +00:00
|
|
|
//# sourceMappingURL=modInv.d.ts.map
|