Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

normalize function

A vector scaled to length 1.

How to write it

normalize(v)

v
A vector. Takes a list.

Examples

  • normalize⁡([3,4])=[35,45]\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
  • 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.