Returns the n-th norm of x. The scalar n must be an integer greater than zero.
for vectors: norm(x,n) = sum(x^n)^(1/n)
for matrices: norm(x,n) = sum(sum(x^n))^(1/n)
Syntax
norm(x,n)
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Arguments: | x | real, complex | scalar, vector, matrix, signal, xy-data | |
n | real | scalar | ||
Result: | z | real | scalar |
Calculator Input
Use the
button to complete the operation.Example
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL MATRIX |
| [[1,2],[3,4]] | |
n | Argument | REAL | 3 | 3 | |
z | Result | REAL | 4.64159 | norm(x, n) |