linalg(deprecated)
cond
condition number of a matrix
Calling Sequence
Parameters
Description
Examples
cond(A)
cond(A, normname)
A
-
square matrix
normname
(optional) matrix norm, must be one of: 1, 2, 'infinity', or 'frobenius'.
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[ConditionNumber], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function cond computes the ``standard'' matrix condition number, defined as norm(A) * norm(inverse(A)). The matrix norm is the default employed by the linalg[norm] function, namely the infinity norm (maximum row sum).
More generally, cond(A, normname) computes norm(A, normname) * norm(inverse(A), normname). This is the same measure, but using the specified norm instead of the infinity norm.
The command with(linalg,cond) allows the use of the abbreviated form of this command.
with⁡linalg:
B≔array⁡1..2,1..2,identity
B≔1001
cond⁡B
1
A≔matrix⁡3,3,1,0,3,−4,2,0,0,3,−2
A≔103−42003−2
cond⁡A,1
3
See Also
linalg(deprecated)[norm]
LinearAlgebra
LinearAlgebra[ConditionNumber]
Download Help Document