mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
8 lines • 321 B
JavaScript
export var invmodDocs = {
name: 'invmod',
category: 'Arithmetic',
syntax: ['invmod(a, b)'],
description: 'Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)',
examples: ['invmod(8, 12)', 'invmod(7, 13)', 'invmod(15151, 15122)'],
seealso: ['gcd', 'xgcd']
};