Normalize
v divided by its Euclidean norm -- a unit vector in v's direction.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Normalize!Normalize(v)v / Sqrt(Total(Abs(v)^2))Normalize(v, f)v / f(v), a custom norm functionTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, ((any) -> any)?) -> any | combinatorics | always |
Details
- The zero vector is returned unchanged -- there is no direction to normalize it to.
Examples
Basic #
About
| Examples | 7 |
|---|---|
| Checked against | Wolfram Language 6 agree1 differ |
| Crosswalk | Wolfram Language |