simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

invmod.js (473B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.invmodDocs = void 0;
      7 var invmodDocs = {
      8   name: 'invmod',
      9   category: 'Arithmetic',
     10   syntax: ['invmod(a, b)'],
     11   description: 'Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)',
     12   examples: ['invmod(8, 12)=NaN', 'invmod(7, 13)=2', 'math.invmod(15151, 15122)=10429'],
     13   seealso: ['gcd', 'xgcd']
     14 };
     15 exports.invmodDocs = invmodDocs;