Normalize
Details
- Normalize[v] is effectively v/Norm[v], except that zero vectors are returned unchanged.
- Except in the case of zero vectors, Normalize[v] returns the unit vector in the direction of v.
- For a complex number z, Normalize[z] returns z/Abs[z], except that Normalize[0] gives 0.
- Normalize[expr,f] is effectively expr/f[expr], except when there are zeros in f[expr].
Examples
open all close allBasic Examples (1)
Normalize[{1, 5, 1}]Scope (5)
Normalize[{x, y}]Use an arbitrary norm function:
Normalize[{x, y}, f]v = {1, 2 I, 3, 4 I, 5, 6I};Normalize using exact arithmetic:
Normalize[v]Normalize[N[v]]Use 24‐digit precision arithmetic:
Normalize[N[v, 24]]s = N[SparseArray[Table[{2 ^ i} -> i, {i, 20}]]]Normalize[s]ArrayRules[%]Normalize a TimeSeries:
ts = TimeSeries[{1, 2, 3}, {.1, .3}];ts["Path"]Norm[ts["Values"]]nts = Normalize[ts]nts["Path"]Norm[nts["Values"]]Generalizations & Extensions (2)
Applications (1)
m is a symmetric matrix with distinct eigenvalues:
m = {{1, 2, 3}, {2, 4, 5}, {5, 3, 1}}Power method to find the eigenvector associated with the largest eigenvalue:
v = FixedPoint[Normalize[m.#]&, RandomReal[1, {3}]]This is consistent (up to sign) with what Eigenvectors gives:
Eigenvectors[N[m], 1]The eigenvalue can be found with Norm:
Norm[m.v]Properties & Relations (1)
Tech Notes
History
Text
Wolfram Research (2007), Normalize, Wolfram Language function, https://reference.wolfram.com/language/ref/Normalize.html.
CMS
Wolfram Language. 2007. "Normalize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Normalize.html.
APA
Wolfram Language. (2007). Normalize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Normalize.html
BibTeX
@misc{reference.wolfram_2026_normalize, author="Wolfram Research", title="{Normalize}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Normalize.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_normalize, organization={Wolfram Research}, title={Normalize}, year={2007}, url={https://reference.wolfram.com/language/ref/Normalize.html}, note=[Accessed: 13-June-2026]}