bigint-mod-arith/types/modInv.d.ts

12 lines
321 B
TypeScript
Raw Normal View History

/**
* Modular inverse.
*
* @param a The number to find an inverse for
* @param n The modulo
*
2022-09-12 08:59:51 +00:00
* @throws {@link RangeError} if a does not have inverse modulo n
2021-03-24 17:30:45 +00:00
*
* @returns The inverse modulo n
*/
2021-03-24 17:30:45 +00:00
export declare function modInv(a: number | bigint, n: number | bigint): bigint;
//# sourceMappingURL=modInv.d.ts.map