Function Repository Resource:
Matrix Condition Number
Calculate the condition number of a matrix
ResourceFunction["MatrixConditionNumber"][matrix,…] calculates the condition number of matrix with respect to the specified norm. |
Details and Options
Examples
Basic Examples (4) 
Calculate the κ of a matrix w.r.t. 2-norm:
| In[1]:= |
| Out[1]= |
For a 3⨯3 matrix:
| In[2]:= |
| Out[2]= |
Condition number computed with machine precision:
| In[3]:= |
| Out[3]= |
Symbolic calculation:
| In[4]:= |
| Out[4]= |
Condition number of a complex matrix:
| In[5]:= |
| Out[5]= |
Scope (5) 
Calculate the condition number corresponding to other norms:
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
| In[9]:= |
| Out[9]= |
For any matrix A, κ(λ A)=κ(A)
| In[10]:= |
| Out[10]= |
or for any complex constant as well:
| In[11]:= |
| Out[11]= |
For a diagonal matrix D=diag(di), :
| In[12]:= |
| Out[12]= |
Efficient of large computations depend on the efficiency of very efficient Norm:
| In[13]:= |
| In[14]:= |
| Out[14]= |
Condition number of sparse matrices:
| In[15]:= |
| Out[15]= |
| In[16]:= |
| Out[16]= |
Condition number of structured matrices:
| In[17]:= |
| Out[17]= |
| In[18]:= |
| Out[18]= |
IdentityMatrix[n] always has condition number 1:
| In[19]:= |
| Out[19]= |
Condition number of HilbertMatrix grows exponentially:
| In[20]:= |
| Out[20]= |
Properties and Relations (1) 
MatrixConditionNumber requires the first argument to be a square matrix:
| In[21]:= |
| Out[21]= |