Wilang Documentation1.0.0+4

cross#

Calculate the cross product for two vectors in three dimensional space.

Available in: math cells, REPL.

Syntax#

cross(A, B)

Arguments and behavior#

For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns matrix.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
cross([1, 1, 0],  [0, 1, 1])

Expected result: matrix.

See also#

multiply · dot

All functions · Math guides