mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
18 lines (17 loc) • 367 B
JavaScript
module.exports = {
'name': 'cross',
'category': 'Matrix',
'syntax': [
'cross(A, B)'
],
'description': 'Calculate the cross product for two vectors in three dimensional space.',
'examples': [
'cross([1, 1, 0], [0, 1, 1])',
'cross([3, -3, 1], [4, 9, 2])',
'cross([2, 3, 4], [5, 6, 7])'
],
'seealso': [
'multiply',
'dot'
]
};