Matrices & Linear Algebra
The Wolfram Language represents matrices as lists of lists:
| In[1]:= |
Enter a table using CTRL+ ENTER for rows and CTRL+ , for columns:
| In[2]:= |
| Out[2]= |
MatrixForm displays output as a matrix:
| In[3]:= |
| Out[3]= |
You can construct a matrix with iterative functions:
| In[1]:= |
| Out[1]= |
Or import data that represents a matrix:
| In[2]:= |
| Out[2]= |
IdentityMatrix, DiagonalMatrix and others are built-in symbols.
Standard matrix operations work elementwise:
| In[1]:= |
| Out[1]= |
Compute the dot product of two matrices:
| In[2]:= |
| Out[2]= |
Find the determinant:
| In[3]:= |
| Out[3]= |
Get the inverse of a matrix:
| In[4]:= |
| Out[4]= |
Use LinearSolve to solve a linear system:
| In[1]:= |
| Out[1]= |
Functions for minimization and matrix decomposition are available as well.
QUICK REFERENCE: Matrices and Linear Algebra »
