<?xml version="1.0" encoding="shift_jis"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja"> <head> <title>Rg0n0000n0}Ɩh0o{</title> <meta http-equiv="Content-Type" content="text/html;charset=shift_jis" /> <link rel="stylesheet" type="text/css" href="style.css" media="all" /> </head> <div id="container"> <h1>[# ]0000000k000000㉐g0000000,{3V</h1> <h2>Rg0n0000n0}Ɩh0o{</h2> <div class="text"> <p> 0 000n0㉐g0Qt0LF0_00k0o00000k0d0D0f00]0n0i n0x0}Ɩj0i0L0_g0B004XTL0B000 </p> <h3>1000n0}Ɩ</h3> <h4>1.10000n0000n0x</h4> <p> 0 S0S0g0o0eQRU00f0D00000 sales2 0(uD0f0fY000000 sales2 o02L5Rg000000000Wg0eQRU00f0D000 </p> <div class="code table"> > sales2<br/> <br /> <table style="width:310px"> <tr> <td></td> <td>Cherry</td> <td>Apple</td> <td>Grape</td> <td>Banana</td> <td>Other</td> </tr> <tr> <td>A</td> <td>15</td> <td>20</td> <td>25</td> <td>10</td> <td>30</td> </tr> <tr> <td>B</td> <td>10</td> <td>25</td> <td>20</td> <td>25</td> <td>20</td> </tr> </table></div> </div> <div class="text"> <p> 0 !kk0:yY00F0k0pe ncol0nrow0dim 0(uD00h000000000J00s0LRn0Lpe0Rpe0MRn0!kCQ0Bl00S0h0L0Sg0B000]0n0O0!kk0:yY00 </p> <div class="code"> > nrow(sales2) <br /> [1] 2<br /> <br /> > ncol(sales2) <br /> [1] 5<br /> <br /> > dim(sales2) <br /> [1] 2 5 <br/> </div> </div> <h4>1.20000n0}Ɩ0000</h4> <div class="text"> <p> 0 R k0o00000}Ɩn0_00n0pe edit0edit.data.frame0data.entry0fix j0i0L0B000 edit o0 000000000n0wR 00edit.data.frame o0 00000000h0LRn0}Ɩ 00data.entry o0 0000eQRn0_00n0h{000n00000000 00fix o0 0000000n0}Ɩ 0(uh0W0f0\ObU00f0D000W0K0W00gяn000000g0o00000000000L0\ObU00f0D004XTo00 Nn0pen0D0Z0000000h{000n00000g0}Ɩ0LF0S0h0L0g0M000F0k0j0c0f0D000OH0p000000 </p> <div class="code"> > edit(sales2)<br/> </div> <p> 0[LY00h00!kn0000V1n00F0j0}Ɩ;ubL0K0000}Ɩ;ubo0 Excel {0i0O)Rg0o0j0D0L0000XSMOg0}ƖL0Sg0B000 </p> <center><img src="image1.jpg" width="285px" height="95px" alt="data2n000000000"/> <p>V10000}Ɩ0000n0;ub</p></center> <p> 0 pe edit g0}ƖW0_00000OX[Y00_00k0o00N$Pn0Kb}M0L0_g0B000sales2 0 edit g0}ƖW00]0n0P}g0 temp h0D0F0 TMRg0OX[W0_0D0h0M00sales2 k0 NfM0W0_0D0h0M0n0O0!kk0:yY00 </p> <div class="code"> > temp<- edit(sales2) <br /> > sales2<- edit(sales2)<br/> </div> </div> <div class-"text"> <p> 0 pe edit 0(uD0f0000000n0L0B00D0o0R0NQ0RH0_0D0h0M0k0o0000000000000000Wk0W0_0eL00D00<br /> 0 pe fix 0(uD0f00000}ƖY00h00}ƖU00_0eW0D0P}gL0vc NfM0U000n0g0N$Pn0Kbo0_h0W0j0D00<br /> 0 S0n00F0k00puj00000}Ɩ(un0peo0]00^00yr_0cc0f0D000 </p> </div> <h4>1.30000000n0P}T</h4> <div class="text"> <p> 0 00000000LRj0i0n0Ln0R0Rn0RL0_j04XTL0B000R k0o00000000J00s0LRn0P}Tn0pe rbind0cbind L0B000OH0p000000000 sales2 n0g_n0Ln0_k0000200300150200150RW0_0D0h0M0k0o0!kn00F0k0LF00 </p> <div class="code table"> > rbind(sales2,c(20,30,15,20,15)) <br/> <br /> <table style="width:310px"> <tr> <td></td> <td>Cherry</td> <td>Apple</td> <td>Grape</td> <td>Banana</td> <td>Other</td> </tr> <tr> <td>A</td> <td>15</td> <td>20</td> <td>25</td> <td>10</td> <td>30</td> </tr> <tr> <td>B</td> <td>10</td> <td>25</td> <td>20</td> <td>25</td> <td>20</td> </tr> <tr> <td></td> <td>20</td> <td>30</td> <td>15</td> <td>20</td> <td>15</td> </tr> </table> </div> </div> <div class="text"> <p> 0 pe rbind0cbind o0 TX0wU0n0L0B00D0o0Rn000000000LR0P}TY00S0h0L0Sg0B000OH0p00LR <span class="itl">A</span>0<span class="itl">B</span> L0B00h0Y000 </p> <center><img src="image2.jpg" width="88px" height="35px">000<img src="image3.jpg" width="88px" height="36px"></center> <p> 0 000LR <span class="itl">A</span>0<span class="itl">B</span> n0\Obh0 rbind(A,B)0cbind(A,B) n0[LP}g0:yY00 </p> <div class="code table"> > A<- matrix(0,2,2) <br /> > A[1,]<- c(1,1) <br /> > A[2,]<- c(2,4) <br /> > B<- matrix(0,2,2) <br /> > B[1,]<- c(4,3) <br /> > B[2,]<- c(2,4) <br /> > rbind(A,B) <br/> <br /> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>1</td> <td>1</td> </tr> <tr> <td>[2,]</td> <td>2</td> <td>4</td> </tr> <tr> <td>[3,]</td> <td>4</td> <td>3</td> </tr> <tr> <td>[4,]</td> <td>2</td> <td>4</td> </tr> </table> <br /> > cbind(A,B) <br /> <br /> <table> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> <td>[,3]</td> <td>[,4]</td> </tr> <tr> <td>[1,]</td> <td>1</td> <td>1</td> <td>4</td> <td>3</td> </tr> <tr> <td>[2,]</td> <td>2</td> <td>4</td> <td>2</td> <td>4</td> </tr> </table></div> </div> <div class="text"> <p> 0 pe rbind 0(uD00_00k0o000000000B00D0o0LRn0RpeL0NW00cbind o0LpeL0NW0j0Q00p0j00j0D00 </p> <h4>1.40000n0&Ny0fH0</h4> <p> 000000LRn0 }0&Ny0fH00peo0 sort g0B000sort o00000fk0&Ny0fH000 </p> <div class="code"> > sort(c(3,2,4,1)) <br/> [1] 1 2 3 4 <br/> </div> <p> 0 ~0_00R k0o00000n0^g0&Ny0fH00pe rev L0B000 </p> <div class="code"> > rev(c(3,2,4,1)) <br /> [1] 1 4 2 3 <br/> </div> <p> 0 00000000B00D0o0LR00B00L0R0Wnk0W00&Ny0fH00n0k0o00pe sort.list B00D0o0 order 0(uD0f0LF0S0h0L0Sg0B000<br /> 0 OH0p00000000 sales2 00,{1L0Wnk0W00fk0&Ny0fH0o0!kn00F0k0LF0S0h0L0g0M000pe order 0(uD0f00P}go0 TX0g0B000 </p> <div class="code table"> > sales2[,sort.list(sales2[1,])]<br/> <br /> <table style="width:310px"> <tr> <td></td> <td>Banana</td> <td>Cherry</td> <td>Apple</td> <td>Grape</td> <td>Other</td> </tr> <tr> <td>A</td> <td>10</td> <td>15</td> <td>20</td> <td>25</td> <td>30</td> </tr> <tr> <td>B</td> <td>25</td> <td>10</td> <td>25</td> <td>20</td> <td>20</td> </tr> </table></div> </div> <h3>2000n0o{</h4> <div class="text"> <p> 0 R g0o00{So{0֊to{0ko{0LRn0o{j0i0n0o{0LF0S0h0L0g0M000 </p> <h4>2.10{So{</h4> <p> 0 ;Nj0{So{o00R{0n{0WN{0d{0y0M0{g00]00^00n0o{o0S 0 0*0 /0^0(uD000o{n0 Tyh0Sh0n0[_OJ00s0]0n0o{O0h1k0:yY00 </p> <div class="table" align="center"> <caption>h10{So{n0h</caption> <table style="width:370px"> <tr> <th style="width:95px"> Ty</th> <th>h</th> <th style="width:95px">O</th> <th>P}g</th> </tr> <tr> <td>R{</td> <td> </td> <td>3+2</td> <td>5</td> </tr> <tr> <td>n{</td> <td> </td> <td>3-2</td> <td>1</td> </tr> <tr> <td>WN{</td> <td>*</td> <td>3*2</td> <td>6</td> </tr> <tr> <td>d{</td> <td>/</td> <td>3/2</td> <td>1.5</td> </tr> <tr> <td rowspan="2">y0M0{</td> <td rowspan="2">^</td> <td>2^3</td> <td>8</td> </tr> <tr> <td>8^(1/3)</td> <td>2</td> </tr> <tr> <td>d{n0FU</td> <td>%/%</td> <td>5%/%2</td> <td>2</td> </tr> <tr> <td>d{</td> <td>%%</td> <td>5%%2</td> <td>1</td> </tr> </table></div> </div> <div class="text"> <p> 0 h1k0:yY0{So{o00000000000000LRk00 gRg0B0000000000000000LRg0o00[_Y00 }n0g0h1n0On00F0k0{So{0LF00!N0000n0{So{n00000J00s0]0n0P}g0!kk0:yY00 </p> <div class="code table"> > x<-c(1,2,3,4) <br /> > y<-c(4,2,3,1) <br /> > x+y <br /> [1] 5 4 6 5 <br /> <br/> > x-y <br /> [1] -3 0 0 3 <br /> <br/> > x*y <br /> [1] 4 4 9 4 <br /> <br/> > x/y <br /> [1] 0.25 1.00 1.00 4.00 <br /> <br/> > x^2 <br /> [1] 1 4 9 16 <br /> <br/> > x%/%2 <br /> [1] 0 1 1 2 <br /> <br/> > x%%2 <br /> [1] 1 0 1 0 <br/> </div> <p> 0 LRk0W0f0o00\ObW0_0LR <span class="itl">A</span>, <span class="itl">B</span> 0(uD0f0o{0Lc0f00f0O0`0U0D00{So{k0J0Q00*QHQMOo0!kn00g0B000 </p> 0 `$0b'_ <br/> 0 a$0y0M0{(^) <br/> 0 b$0d{n0FUh0YO( %/%0%%) <br/> 0 c$0WN{h0d{(*0/0) <br/> 0 d$0R{h0n{(+0 ) <br/> </div> <h4>2.20ko{</h4> <div class="text"> <p> 0 ko{o0000'YM0D0K00\U0D0K00I{W0D0K0j0i00kY00_00n0o{g0B000h2k0ko{P[n0 Tyh0Sh0n0[_OJ00s0O0:yY00 </p> <div class="table" align="center"> <caption>h20ko{n0h</caption> <table style="width:370px"> <tr> <th style="width:120px"> Ty</th> <th>h</th> <th>O</th> <th>P}g</th> </tr> <tr> <td>00'Y</td> <td>></td> <td>3>2</td> <td>TRUE</td> </tr> <tr> <td>00'YK0I{W0D0</td> <td>>=</td> <td>3>=4</td> <td>FALSE</td> </tr> <tr> <td>00\</td> <td><</td> <td>3<2</td> <td>FALSE</td> </tr> <tr> <td>00\K0I{W0D0</td> <td><=</td> <td>3<=4</td> <td>TRUE</td> </tr> <tr> <td>I{W0D0</td> <td>= =</td> <td>3= =4</td> <td>FALSE</td> </tr> <tr> <td>I{W0O0j0D0</td> <td>!=</td> <td>3!=4</td> <td>TRUE</td> </tr> </table> </div> <p> 0MR{g0\ObW0_00000 x0y 0(uD0_0ko{h0]0n0P}g0!kk0:yY00 </p> <div class="code"> > x>y <br /> [1] FALSE FALSE FALSE TRUE <br /> <br /> > x>=y <br /> [1] FALSE TRUE TRUE TRUE <br /> <br /> > x!=y <br /> [1] TRUE FALSE FALSE TRUE <br /> <br /> > x==y <br /> [1] FALSE TRUE TRUE FALSE <br/> </div></div> <h4>2.30֊to{</h4> <div class="text"> <p> 0֊to{o00w (TRUE)0}P (FALSE) n02$Pn0o{g0B000h3k0֊to{n0 Tyh0Sh0n0[_OJ00s0O0:yY00hn0-Nn0 T o0 TRUE0F o0 FALSE n0eug0B000 </p> </div> <div class="table" align="center"> <caption>h30֊to{n0S</caption> <table style="width:370px"> <tr> <th> Ty</th> <th>h</th> <th>O</th> <th>P}g</th> </tr> <tr> <td>&T[(NOT)</td> <td>!</td> <td>!(F)</td> <td>TRUE</td> </tr> <tr> <td>Mz(AND)</td> <td>&</td> <td>T&T</td> <td>TRUE</td> </tr> <tr> <td>Mz(AND)</td> <td>&&</td> <td>T&&T</td> <td>TRUE</td> </tr> <tr> <td>T(OR)</td> <td>|</td> <td>T|F</td> <td>TRUE</td> </tr> <tr> <td>T(OR)</td> <td>||</td> <td>T||F</td> <td>TRUE</td> </tr> <tr> <td>cNvt֊T</td> <td>xor</td> <td>xor(T,T)</td> <td>FALSE</td> </tr> </table> </div> <div class="text"> <p> 0 ֊t0000n0\ObJ00s0]0n0o{h0P}g0!kk0:yY00 </p> <div class="code"> > Lx<-c(T,T,F,F) <br /> > Ly<-c(T,F,F,T) <br /> > !(Lx) <br /> [1] FALSE0FALSE0TRUE0TRUE <br /> <br /> > Lx & Ly <br /> [1] TRUE0FALSE0FALSE0FALSE <br /> <br /> > Lx && Ly <br /> [1] TRUE <br /> <br /> > Lx | Ly <br /> [1] TRUE0TRUE0FALSE0TRUE <br /> <br /> > Lx || Ly <br /> [1] TRUE <br /> <br /> > xor(Lx,Ly) <br /> [1] FALSE0TRUE0FALSE0TRUE <br/> </div> <p> 0 N Nn0OK000K000F0k00&, |, o00000n0Y0y0f0n0 }k0d0D0f0֊to{0LF0L00&&, ||o00000k0J0Q00gRn0 }n0n0֊to{L0b0zd0h00]0n0!kn0o{o0L0j0D00 </p> </div> <h4>3LRn0o{</h4> <h4>3.10LRn0R0n{</h4> <div class="text"> <p> 0 TX0pen0Lh0R00d0pen0LRn0k0o0R0n{0LF0S0h0L0Sg0B000LRn0R0n{o00LRn0[_Y00MOnn0 }k0d0D0f0!kn00F0k0o{0LF00 </p> <center><img src="image4.jpg" width="385px" height="38px"> <p><img src="image5.jpg" width="386px" height="38px"></p></center> 0 R g0o00LR <span class="itl">A</span>0<span class="itl">B</span> n0R0n{o0{So{n0hh0 TX0g0B000 <p> <div class="code table"> > A+B <br/> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>5</td> <td>4</td> </tr> <tr> <td>[2,]</td> <td>4</td> <td>8</td> </tr> </table> <br /> > A-B<br/> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>-3</td> <td>-2</td> </tr> <tr> <td>[2,]</td> <td>0</td> <td>0</td> </tr> </table></div> </div> <h4>3.20LRn0WN{</h4> <div class="text"> <p> 0LRn0WN{k0o00{So{n00F0k0[_Y00LRn0 }n0k0WN{0LF0o{h0}b_Npeg0[U00f0D00Mzo{L0B000 </p> <h4>(1)0LRn0{SWN{</h4> <p> 0 S0S0g0D0F0LRn0{So{h0o00LRn0 }n0k0{SWN{0LF0S0h0g0B000MR{k0(uD0_0LR <span class="itl">A</span>0<span class="itl">B</span> 0(uD0_0]0n0{n00000h0[LP}g0!kk0:yY00 </p> <div class="code table"> > A*B<br/> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>4</td> <td>3</td> </tr> <tr> <td>[2,]</td> <td>4</td> <td>16</td> </tr> </table> </div></div> <h4>(2)0LRn00000 P</h4> <div class="text"> <p> 0 LR <span class="itl">A</span> n0 Po00LR <span class="itl">A</span> n0Y0y0f0n0 }0 <span class="itl">k</span> Pk0Y000S000LRn00000 Ph0D0F000000 (scalar) o0LRg0o0j0O0pe$Pg0B00S0h0g0B000OH0p00LR <span class="itl">A</span> n02 Po0 </p> <center><img src="image6.jpg" width="226px" height="38px"></center> <p> h0j000Rg0n0{n0fM0_h0P}g0:yY00 </p> <div class="code table"> > 2*A<br/> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>2</td> <td>2</td> </tr> <tr> <td>[2,]</td> <td>4</td> <td>8</td> </tr> </table></div> </div> <h4>(3)0LRn0Mzo{</h4> <div class="text"> <p> 0 Rg0n0LRn0Mzo{o003.z^ (LRMz0LR000Mz crossprod0LRYMz outer) L0B00L00S0S0g0o0LRMzn00k0d0D0f0fY000OH0p00!kn00F0j0LR <span class="itl">A</span> 0 <span class="itl">D</span> L0B00h0Y000 </p> <center><img src="image7.jpg" width="218px" height="37px"></center> <p> 0 LRn0Mzo{n0000o00]n0LRk0J0Q00Ln0 }h0Sn0LRn0Rk0[_Y00 }n0Mzn0T0LRn0 }h0Y000<br/> 0 OH0p00 Nn0 <span class="itl">A</span> n0,{1Lo0 [1 1] g00<span class="itl">D</span> n0,{Ro0 <img src="image8.jpg" width="22px" height="31px"> g0B0001 4 + 1 2 L0MzLR <span class="itl">AD</span> n0,{1L0,{1Rn0 }h0j000 </p> <center><img src="image9.jpg" width="375px" height="195px"></center> <p> 0 LRn0Mzo{n0MRcagNo00]n0LRn0RpeL0Sn0LRn0Lpeh0NY00S0h0g0B000S0n0agN0n_0U0j0D0h0LRn0Mzo{o0b0z_0j0D00LR <span class="itl">A</span> o02R0<span class="itl">D</span> o02Lg0B00n0g00LR <span class="itl">A</span> h0LR <span class="itl">D</span> n0Mzo{o0Sg0B00L00Mzo{ <span class="itl">DA</span> o0b0z_0j0D00S00o0 <span class="itl">D</span> L03Rg00<span class="itl">A</span> L02Lg0B00K00g0B000]n0LRL0 <span class="itl">n</span> L0Sn0LRL0 <span class="itl">m</span> Rn04XT0LRn0Mzo{g0_00_0e_0n0 <span class="itl">n</span> L <span class="itl">m</span> Ro0LRh0j000<br/> 0 Rg0o000000*g0LRn0Mzo{0LF00LR <span class="itl">D</span> n0\Obh0Mzo{ <span class="itl">AD</span>0Ss0]0n0P}g0!kk0:yY00 </p> <div class="code table"> > D<-matrix(0,2,3) <br/> > D[1,]<-c(4,3,2) <br/> > D[2,]<-c(2,4,1) <br/> > A%*%D <p> <table style="width:200px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> <td>[,3]</td> </tr> <tr> <td>[1,]</td> <td>6</td> <td>7</td> <td>3</td> </tr> <tr> <td>[2,]</td> <td>16</td> <td>22</td> <td>8</td> </tr> </table></div> </div> <h4>3.30XSMOLRh0LR</h4> <div class="text"> <p> 0 LRn0;N[҉}n0 }L0Y0y0f0g00]0n0NYn0 }L000g0B00LR0XSMOLRh0D0F00XSMOLRo00N,vk0 <span class="itl">I</span>0B00D0o0 <span class="itl">E</span> g0hY00S0S0g0o0 <span class="itl">I</span> 0(uD00S0h0k0Y000 </p> <center><img src="image10.jpg" width="290px" height="115px"></center> <p> 0 {So{g0o00<span class="itl">k</span> k0 <img src="image11.jpg" width="11px" height="34px"> 0WNX00h0 <img src="image12.jpg" width="70px" height="34px"> h0j000S00h0<span class="itl"><B>AZ = ZA = I</B></span></center> <p> 0 S0n0h0M00LR <span class="itl">Z</span> o0LR <span class="itl">A</span> n0LRh0|Ts00<span class="itl">A<sup>-1</sup></span> g0h:yY000]0n00H000 0 <center><span class="itl"><B>AA<sup>-1</sup> = A<sup>-1</sup>A = I</B></span></center> <p> 0 B00LRn0LR0Bl00{o0LRn0Mzo{00iqіg0B000S0S0g0o0]0n0{n0GRn0fo0weuY000{0h00i0n0}b_Npek0Y00\fk0o0LRn0{elL0fU00f0D000<br/> 0 R g0n0LR0Bl00peo0 solve g0B000LR </p> <center><img src="image2.jpg" width="92px" height="35px"></center> <p> n0LRo0!kn00F0k0Bl000 <p/> <div class="code table"> > solve(A) <p> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>2</td> <td>-0.5</td> </tr> <tr> <td>[2,]</td> <td>-1</td> <td>0.5</td> </tr> </table></div> </div> <div class="text"> <p> 0LR <span class="itl">A</span> h0]0n0LRn0Mzo0!kk0:yY00F0k0XSMOLRk0j000 </p> <div class="code table"> > A%*%solve(A)<br/> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>1</td> <td>0</td> </tr> <tr> <td>[2,]</td> <td>0</td> <td>1</td> </tr> </table> <br /> >solve(A)%*%A <br /> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>1</td> <td>0</td> </tr> <tr> <td>[2,]</td> <td>0</td> <td>1</td> </tr> </table></div> </div> <h4>4.40V g$P</h4> <div class="text"> <p> 0 <span class="itl">n</span> L<span class="itl">n</span> Rn0ckeLR <span class="itl">A</span> h0 }L0 TBfk000g0o0j0D0 <span class="itl">n</span> !kCQn00000 <span class="itl">X</span> k0d0D0f00 0 <center><span class="itl"><B>AX = X</B></span></center> <p> L0b0zd0h0M000000Ope  0LR <span class="itl">A</span> n0V g$P (eigen value)0<span class="itl">X</span> 0V g0000 (eigen vector) h0F00V g$P0V g0000o0000㉐gk0YO0(uD000f0D000R k0o0ckeLRn0V g$P0V g00000Bl00pe eigen L0(uaU00f0D000Oh0W0f00!kn0LR <span class="itl">A</span> n0V g$P0V g00000Bl0f000F00 </p> <center><img src="image2.jpg" width="93px" height="35px"><p></center> <div class="code table"> > A<-matrix(c(1,2,1,4),2,2)<br/> > eigen(A)<br/> $values<br/> [1] 4.561552800.4384472<br/> <br /> $vectors<br/> <table style="width:220px"> <tr> <td></td> <td>[,1]</td> <td>[,2]</td> </tr> <tr> <td>[1,]</td> <td>-0.2703230</td> <td>-0.8719282</td> </tr> <tr> <td>[2,]</td> <td>-0.9627697</td> <td>0.4896337</td> </tr> </table> </div></div> <div class="text"> <p> 0 LRL0 <span class="itl">n</span> !kCQn0h0M00V g$Ph0V g0000n0gYpeo0 <span class="itl">n</span> Pg0B000V g$P (values) o0HQ-K00peH0,{1V g$P0,{2V g$P& ,{ <span class="itl">n</span> V g$P0V g0000 (vectors) o0RXSMOg0]K00,{1V g00000,{2V g0000& ,{ <span class="itl">n</span> 0000h0|Tv00<br/> 0 _00_0V g$Ph0V g00000(uD0f00V g$P0V g0000n0[k0(uD0_0I{_L0b0zd0K0i0F0K00xY00S0h0L0g0M000fn0O)Rn0_000V g$P0 lamuda0V g00000<span class="itl">X</span> h0F0000000n0 TMRk0Y000 </p> <div class="code table"> > lamuda=eigen(A)$values<br/> > X=eigen(A)$vectors<br/> > A%*%X[,1]<br/> <table style="width:180px"> <tr> <td></td> <td>[,1]</td> </tr> <tr> <td>[1,]</td> <td>-1.233093</td> </tr> <tr> <td>[2,]</td> <td>-4.391725</td> </tr> </table> <br /> > lamuda[1]*X[,1]<br/> <br /> <table style="width:220px"> <tr> <td>[1]</td> <td>-1.233093</td> <td>-4.391725</td> </tr> </table> </div> <div class="text"> <p> 0 ԏU00f0D00!NP}gL00&~h0*jk0&Ny000_0b__n0S0h0NYk0o00[_Y00$Po0~0c0_0O0 TX0g0B000S00g0,{1V g$Ph0V g0000(uD0f04XT0I{_L0b0zd0S0h0L0xg0M0_00 TX0n0elg00,{2V g$Ph0V g00000(uD0_04XTn0P}g0xY00S0h0L0g0M000 </p> <div align="right"><img src="image13.jpg" width="160px" height="160px"></div> </body> </html>