modulus
Computes the modulus of a matrix.
Syntax
-
modulus(A)
-
A
is a matrix
-
Description
If A
is a matrix, then modulus(A)
returns the modulus √(A*⋅A)
of A
.
Notes
This is a matrix function. Do not confuse with:
Examples
A ≔ ❨❨5, 0, 2, 3, 1❩, ❨1, 4, 0, 1, 0❩, ❨0, 5, 8, 3, 1❩, ❨−1, 2, 5, 3, 6❩, ❨1, 5, 3, 2, 0❩❩
⎛ 5 0 2 3 1⎞ ⎜ 1 4 0 1 0⎟ ⎜ 0 5 8 3 1⎟ ⎜−1 2 5 3 6⎟ ⎝ 1 5 3 2 0⎠
modulus(A)
⎛ 4.86531493705 0.197149742661 0.131466734649 1.99615001761 −0.536604274264⎞ ⎜ 0.197149742661 7.21423755911 3.61920444225 2.16774802461 0.343709363644⎟ ⎜ 0.131466734649 3.61920444225 8.48646517758 3.39284557522 2.31356508346⎟ ⎜ 1.99615001761 2.16774802461 3.39284557522 2.76123201191 2.04461494862⎟ ⎝−0.536604274264 0.343709363644 2.31356508346 2.04461494862 5.2972526882⎠