Matrices 2
Understanding Matrix Evaluation in Mathematica
Basics of Matrix Evaluation
Matrix: A mathematical representation that consists of rows and columns.
To work with matrices in Mathematica, you need to define the matrix before using it.
Using Variables
A variable is a symbol that can be assigned a value or expression. In this case, 'm' is a variable.
Evaluation: Mathematically specifying what 'm' represents is crucial for correct operation.
Without defining what 'm' is, Mathematica cannot perform operations involving it.
Specific Instructions for Evaluation
Evaluate a Cell: To connect the variable to the matrix, you first need to evaluate the cell containing the variable.
How to Evaluate:
Hold
Shiftand pressEnterto evaluate the current cell.Once evaluated, 'm' will be associated with the matrix.
Working with Input Cells
It's essential to distinguish between text cells and input cells in Mathematica.
Creating a New Input Cell:
Problem: Hitting
Enterkeeps you within the same text cell and does not create a new input cell.Solution: Use the down arrow key until reaching a horizontal bar; this indicates where a new input cell can be created.
Steps to Follow
After creating a new cell:
Type the matrix or expression you wish to evaluate.
Press
Shift+Enterto evaluate the expression in the new input cell.
This ensures Mathematica knows you want to perform calculations with the specified matrix or variable.