HW2 CODE - T3[2,1]=T2[2,1*T1[1,1 T2[2,2*T1[2,1 T3[2,2]=T2[2,1*T1[1,2 T2[2,2*T1[2,2 T2=T3 for(i in 1(n-1 T4=T4%T1 T3 T4

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

View Full Document Right Arrow Icon
Sheet1 Page 1 #1a T1=matrix(c(.7,.3,.1,.9),nrow=2,ncol=2,byrow=T) T2=T1 T3=T1 T4=T1 n=100000 for(i in 1:(n-1)){ T3[1,1]=T2[1,1]*T1[1,1]+T2[1,2]*T1[2,1] T3[1,2]=T2[1,1]*T1[1,2]+T2[1,2]*T1[2,2]
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: T3[2,1]=T2[2,1]*T1[1,1]+T2[2,2]*T1[2,1] T3[2,2]=T2[2,1]*T1[1,2]+T2[2,2]*T1[2,2] T2=T3 } for(i in 1:(n-1)){ T4=T4%*%T1 } T3 T4...
View Full Document

This note was uploaded on 11/24/2010 for the course STAT 201a taught by Professor Wu during the Spring '10 term at Pasadena City College.

Ask a homework question - tutors are online