PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Matrix-Based Minimization
>
Norm
>
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Graph Programming
>
Matrices and Linear Algebra
>
Matrix-Based Minimization
>
Norm
>
Mathematica
>
Visualization and Graphics
>
Graphs & Networks
>
Graph Programming
>
Matrices and Linear Algebra
>
Matrix-Based Minimization
>
Norm
>
BUILT-IN MATHEMATICA SYMBOL
Vectors and Matrices
Vector Operations
Tutorials »
|
Normalize
Abs
EuclideanDistance
Dot
Total
RootMeanSquare
ContraharmonicMean
SingularValueList
Integrate
Outer
See Also »
|
Linear Systems
Math & Counting Operations on Lists
Matrices and Linear Algebra
Matrix-Based Minimization
Numerical Evaluation & Precision
Operations on Vectors
More About »
Norm
Norm
[
expr
]
gives the norm of a number, vector or matrix.
Norm
gives the
-norm.
MORE INFORMATION
For complex numbers,
Norm
[
z
]
is
Abs
[
z
]
.
For vectors,
Norm
[
v
]
is
Sqrt
[
v
.
Conjugate
[
v
]]
.
»
For vectors,
Norm
is
Total
[
Abs
[
v
]
p
]
(1/
p
)
.
For vectors,
Norm
[
v
,
Infinity
]
is the
-norm given by
Max
[
Abs
[
v
]]
.
»
For matrices,
Norm
[
m
]
gives the maximum singular value of
m
.
»
Norm
gives the Frobenius norm of
m
.
»
Norm
can be used on
SparseArray
objects.
»
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Norm of a vector:
Norm of a complex number:
Norm of a vector:
In[1]:=
Out[1]=
Norm of a complex number:
In[1]:=
Out[1]=
Scope
(3)
is a vector of integers:
Use exact arithmetic to compute the norm:
Use approximate machine-number arithmetic:
Use 35-digit precision arithmetic:
is a
SparseArray
representation of
:
The norm is always real even when the input is complex:
TraditionalForm
formatting:
Generalizations & Extensions
(6)
The
-norm:
The
-norm:
Norm of a matrix, equal to the largest singular value:
The 1-norm and
-norm, respectively, for matrices:
The Frobenius norm for matrices:
Symbolic matrix norms for a real parameter
:
Applications
(3)
Estimate the mean distance from the origin to random points in the unit square:
Compare to the asymptotic result:
Solve an ill-conditioned linear system
with a known solution:
Get the norm of the residual:
Get the norm of the actual error:
Approximate the solution of
using
spatial points and
time steps:
Find two solutions with fixed
where the second has twice as many time steps:
Estimate the error by the norm of the difference:
Extrapolate to a better solution from the first-order convergence of the backward Euler method:
Compute a more accurate solution with
NDSolve
:
Compare the errors in the three solutions:
Properties & Relations
(4)
The norm of
is equal to the square root of the
Dot
product
:
is a decreasing function of
:
The horizontal asymptote is the
-norm, equal to
Max
[
Abs
[
v
]]
:
The matrix 2-norm is the maximum 2-norm of
for all unit vectors
:
This is also equal to the largest singular value of
:
The Frobenius norm is the same as the norm made up of the vector of the elements:
Possible Issues
(1)
It is expensive to compute the 2-norm for large matrices:
If you need only an estimate, the 1-norm or
-norm are very fast:
Neat Examples
(2)
Unit balls for using 1, 2, 3, and
norms:
Different norm functions:
SEE ALSO
Normalize
Abs
EuclideanDistance
Dot
Total
RootMeanSquare
ContraharmonicMean
SingularValueList
Integrate
Outer
TUTORIALS
Vectors and Matrices
Vector Operations
MORE ABOUT
Linear Systems
Math & Counting Operations on Lists
Matrices and Linear Algebra
Matrix-Based Minimization
Numerical Evaluation & Precision
Operations on Vectors
New in 5