linalg(deprecated)
normalize
normalize a vector
Calling Sequence
Parameters
Description
Examples
normalize(A)
A
-
vector
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Normalize], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The normalize function normalizes the specified vector with the 2-norm.
Use map(linalg[normalize], linalg[GramSchmidt]({v1, v2, .., vk}), to compute the orthonormal basis for a set v1,v2,vk,.. of vectors.
This function is part of the linalg package, and so can be used in the form normalize(..) only after performing the command with(linalg) or with(linalg, normalize). The function can always be accessed in the long form linalg[normalize](..).
with⁡linalg:
normalize⁡array⁡1,−I
22−I2⁢2
norm⁡,2
1
normalize⁡array⁡1,−2,2
13−2323
See Also
linalg(deprecated)[GramSchmidt]
linalg(deprecated)[norm]
LinearAlgebra
Download Help Document