xgcd.js 507 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.xgcdDocs = void 0;
  6. var xgcdDocs = {
  7. name: 'xgcd',
  8. category: 'Arithmetic',
  9. syntax: ['xgcd(a, b)'],
  10. 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.',
  11. examples: ['xgcd(8, 12)', 'gcd(8, 12)', 'xgcd(36163, 21199)'],
  12. seealso: ['gcd', 'lcm']
  13. };
  14. exports.xgcdDocs = xgcdDocs;