normalize function
A vector scaled to length 1.
How to write it
normalize(v)
- v
- A vector. Takes a list.
Examples
normalize([3, 4])In the solver,
Open in the solvernormalize([3, 4])gives[3/5, 4/5].
Related functions
- null_space
A basis of the null space of a matrix: the vectors v with A v = 0.
- norm
Length of a vector.
- orthogonalize
Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.
- minors
The matrix of minors: the determinant left when each row and column is removed.
- pseudo_inverse
Moore-Penrose pseudo-inverse of a matrix.
- matrix_power
A square matrix to a whole power.