Contents  Previous  Next  Subchapters 
Syntax 
norm( x ) x, p )

See Also  norm operator abs , max 
If x is an
empty matrix
,
the return value is equal to zero.
norm(5)
OMatrix will respond
5
norm([3, 4], "fro")
will result in
5
norm([3, 4], "inf")
will result in
4
norm([3, 4], "inf")
will result in
3
/ p p p \ (1/p)
 x + x + ... + x 
\ 1 2 n /
x = { ...
[3, 0], ...
[0, 4] ...
}
norm(x)
will result in
4
x = { ...
[3, 0], ...
[0, 4] ...
}
norm(x, "fro")
will result in
5
x = { ...
[1, 2], ...
[3, 4] ...
}
norm(x, 1)
will result in
6
x = { ...
[1, 2], ...
[3, 4] ...
}
norm(x, "inf")
will result in
7