{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Economics Dynamics Problems 221

# Economics Dynamics Problems 221 - Discrete systems of...

This preview shows page 1. Sign up to view the full content.

Discrete systems of equations 205 Table 5.1 Representations of matrices in Mathematica and Maple Conventional Mathematica Maple representation Vector { a , b , c } [ a , b , c ] [ a , b , c ] or a b c Matrix {{ a , b } , { c , d }} [ [ a , b ], [ c , d ] ] a b c d 5.2.1 Matrices in Mathematica To illustrate Mathematica ’s package, let mA = 3 2 4 1 2 3 , mB = 0 1 1 2 3 0 , mC = 2 1 1 0 2 3 then in Mathematica use: mA={{3,2,4},{1,-2,-3}} mB={{0,-1,1},{2,3,0}} mC={{2,1},{-1,0},{2,3}} mA+mB (to add) mA-mB (to subtract) mA.mC (to multiply) Notice that mA cannot be multiplied by mB. Any such attempt leads to an error message indicating that the matrices have incompatible shapes. Square matrices have special properties. For illustrative purposes, let m A = 2 1 1 3 0 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}