Back to functions

cross


cross product

Calculates the cross product of two vectors

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


Parameters

Vector v1 a vector
Vector v2 a vector

Returns

Matrix

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