xgcd.js (507B)
1 "use strict"; 2 3 Object.defineProperty(exports, "__esModule", { 4 value: true 5 }); 6 exports.xgcdDocs = void 0; 7 var xgcdDocs = { 8 name: 'xgcd', 9 category: 'Arithmetic', 10 syntax: ['xgcd(a, b)'], 11 description: 'Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.', 12 examples: ['xgcd(8, 12)', 'gcd(8, 12)', 'xgcd(36163, 21199)'], 13 seealso: ['gcd', 'lcm'] 14 }; 15 exports.xgcdDocs = xgcdDocs;