dot.js (538B)
1 "use strict"; 2 3 Object.defineProperty(exports, "__esModule", { 4 value: true 5 }); 6 exports.dotDocs = void 0; 7 var dotDocs = { 8 name: 'dot', 9 category: 'Matrix', 10 syntax: ['dot(A, B)', 'A * B'], 11 description: 'Calculate the dot product of two vectors. ' + 'The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] ' + 'is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn', 12 examples: ['dot([2, 4, 1], [2, 2, 3])', '[2, 4, 1] * [2, 2, 3]'], 13 seealso: ['multiply', 'cross'] 14 }; 15 exports.dotDocs = dotDocs;