simple-squiggle

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

invmod.js (338B)


      1 export var invmodDocs = {
      2   name: 'invmod',
      3   category: 'Arithmetic',
      4   syntax: ['invmod(a, b)'],
      5   description: 'Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)',
      6   examples: ['invmod(8, 12)=NaN', 'invmod(7, 13)=2', 'math.invmod(15151, 15122)=10429'],
      7   seealso: ['gcd', 'xgcd']
      8 };