Documentation

Mathlib.Analysis.NormedSpace.Normalize

Normalized vector #

Function that returns unit length vector that points in the same direction (if the given vector is nonzero vector) or returns zero vector (if the given vector is zero vector).

noncomputable def NormedSpace.normalize {V : Type u_1} [NormedAddCommGroup V] [NormedSpace V] (x : V) :
V

For a nonzero vector x, normalize x is the unit-length vector that points in the same direction as x. If x = 0, then normalize x = 0.

Equations
Instances For
    theorem NormedSpace.normalize_smul_of_pos {V : Type u_1} [NormedAddCommGroup V] [NormedSpace V] {r : } (hr : 0 < r) (x : V) :
    theorem NormedSpace.normalize_smul_of_neg {V : Type u_1} [NormedAddCommGroup V] [NormedSpace V] {r : } (hr : r < 0) (x : V) :