# normalize function

A vector scaled to length 1.

## How to write it

### normalize(v)

**v**

A vector. Takes a list.

## Examples

- $\displaystyle \operatorname{normalize}(\left[ 3, 4 \right]) = \left[ \frac{3}{5}, \frac{4}{5} \right]$

  `normalize([3, 4])`

  In the solver, `normalize([3, 4])` gives `[3/5, 4/5]`.

  [Open in the solver](https://hilberon.com/?q=normalize%28%5B3%2C%204%5D%29)

## Related functions

- [null_space](https://hilberon.com/library/null_space)

  A basis of the null space of a matrix: the vectors v with A v = 0.
- [norm](https://hilberon.com/library/norm)

  Length of a vector.
- [orthogonalize](https://hilberon.com/library/orthogonalize)

  Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.
- [minors](https://hilberon.com/library/minors)

  The matrix of minors: the determinant left when each row and column is removed.
- [pseudo_inverse](https://hilberon.com/library/pseudo_inverse)

  Moore-Penrose pseudo-inverse of a matrix.
- [matrix_power](https://hilberon.com/library/matrix_power)

  A square matrix to a whole power.

---
Source: https://hilberon.com/library/normalize
