mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
16 lines
295 B
JavaScript
16 lines
295 B
JavaScript
module.exports = {
|
|
'name': 'gcd',
|
|
'category': 'Arithmetic',
|
|
'syntax': [
|
|
'gcd(a, b)',
|
|
'gcd(a, b, c, ...)'
|
|
],
|
|
'description': 'Compute the greatest common divisor.',
|
|
'examples': [
|
|
'gcd(8, 12)',
|
|
'gcd(-4, 6)',
|
|
'gcd(25, 15, -10)'
|
|
],
|
|
'seealso': [ 'lcm', 'xgcd' ]
|
|
};
|