Cross product (cross)
Cross product of two vectors in three dimensions.
How to write it
cross(a, b)
- a
- A vector with three components. Takes a list.
- b
- A vector with three components. Takes a list.
Examples
cross([1, 2, 3], [4, 5, 6])In the solver,
Open in the solvercross([1, 2, 3], [4, 5, 6])gives[-3, 6, -3].
Related functions
- det
Determinant of a square matrix.
- cholesky_decomposition
Cholesky decomposition of a symmetric positive definite matrix.
- diagonal
The diagonal of a matrix, as a list.
- characteristic_polynomial
Characteristic polynomial of a square matrix in a variable.
- diagonal_matrix
A matrix with the given list on its diagonal and zeros elsewhere.
- adjugate
Adjugate of a square matrix: the transpose of its cofactors.