mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
15 lines
333 B
JavaScript
15 lines
333 B
JavaScript
module.exports = {
|
|
'name': 'distance',
|
|
'category': 'Geometry',
|
|
'syntax': [
|
|
'distance([x1, y1], [x2, y2])',
|
|
'distance([[x1, y1], [x2, y2])'
|
|
],
|
|
'description': 'Calculates the Euclidean distance between two points.',
|
|
'examples': [
|
|
'distance([0,0], [4,4])',
|
|
'distance([[0,0], [4,4]])'
|
|
],
|
|
'seealso': []
|
|
};
|