Back to functions

dot


cross product

Calculates the dot product of two vectors

Usage: nerdamer("dot(v1, v2)")


Parameters

Vector v1 a vector
Vector v2 a vector

Returns

Matrix

EXAMPLES:
var x = nerdamer('dot([1,2,3], [4,5,6])').evaluate();
console.log(x.toString());
x = nerdamer('dot([x+1,2,tan(x)], [4,x^2,1/x])').evaluate();
console.log(x.toString());
OUTPUT:
Back to functions