Economics Dynamics Problems 221

Economics Dynamics Problems 221 - Discrete systems of...

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

View Full Document Right Arrow Icon
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 ]o r a b c Matrix {{ a , b } , { c , d }} [[ a , b ], [ c , d ]] ± ab cd ² 5.2.1 Matrices in Mathematica To illustrate Mathematica ’s package, let mA = ± 32 4 1 2 3 ² , mB = ± 0 11 230 ² , mC = 21 10 23 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 =
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/14/2011 for the course ECO 3023 taught by Professor Dr.gwartney during the Fall '11 term at FSU.

Ask a homework question - tutors are online