Gauss
|
|
- きのこ ちゃわんや
- 5 years ago
- Views:
Transcription
1 15 1 LU LDL T 6 : 1g00p013-5
2 Gauss Gauss Gauss LU LU LU Cholesky Cholesky
3 4.3 Cholesky LDL T LDL T LDL T
4 A 49 3
5
6 7.1 LU LDL T
7 1 6
8 1.1 1 LDL T A A 1 1 LU LDL T 7
9 1.2 1 LU LDL T 1.3 2, Gauss 3,Gauss LU 4,LDL T Cholesky. 5,LDL T 6, 7, 8,. 8
10 2 Gauss 9
11 2.1 Gauss LU 2.2 Gauss x 1, x 2, x 3 a 11 x 1 + a 12 x 2 + a 13 x 3 = b 1 (2.1) a 21 x 1 + a 22 x 2 + a 23 x 3 = b 2 (2.2) a 31 x 1 + a 32 x 2 + a 33 x 3 = b 3 (2.3) 2x 1 + 5x 2 + 7x 3 = 23 (2.4) 4x x x 3 = 58 (2.5) 8x x x 3 = 132 (2.6) Gauss (2.4) (2.5) (2.6) 2x 1 + 5x 2 + 7x 3 = 23 (2.7) 13x x 3 = 12 (2.8) 29x x 3 = 40 (2.9) (2.8) (2.9). 2x 1 + 5x 2 + 7x 3 = 23 (2.10) 3x 2 + 6x 3 = 12 (2.11) 10 4x 3 = 4 (2.12)
12 Gauss (2.12) x 3 = 1 (2.11) x 2 = (12 6x 3 )/3 = (12 6 1)/3 = 2 (2.10) x 1 = (23 5x 2 7x 3 )/2 = ( )/2 = 3 a ii Gauss a 11 0 a 21 x 1 + a 22 x 2 + a 23 x 3 = b 2 a 11 x 1 + a 12 x 2 + a 13 x 3 = b 1 a 31 x 1 + a 32 x 2 + a 33 x 3 = b 3 a 21 0 ( a 31 ) 11
13 0 a 11 0 x 1 a 12,,a 1n a 12,,a 1n a 11 a 12,,a 1n a Gauss a 11 x 1 + a 12 x 2 + a 13 x 3 = b 1 a 21 x 1 + a 22 x 2 + a 23 x 3 = b 2 a 31 x 1 + a 32 x 2 + a 33 x 3 = b 3 k = 1, 2,..., n 1 k i (i = k + 1,..., n) (A b) = (A (1) b (1) ) (A (1) b (1) ) (A (2) b (2) ) (A (k) b (k) ) (A (k+1) b (k+1) ) (A (n) b (n) ) A (n) = u 11 u 12 u 1n u 22 u 2n u nn, b(n) = y A (k) = (a (k) ij ), b (k) = (b (k) i ) Gauss 12
14 k = 1, 2,..., n 1 Gauss i = k + 1, k + 2,..., n m ik = a (k) ik /a(k) kk j = k + 1, k + 2,..., n b (k+1) i a (k+1) ij = b (k) i = a (k) ij m ik b (k) k m ik a (k) kj 1 a (1) 11 x 1 + a (1) 12 x a (1) 1,n 1x n 1 + a (1) 1n x n = b (1) 1 a (2) 22 x a (2) 2,n 1x n 1 + a (2) 2n x n = b (2) 2. a (n 1) n 1,n 1x n 1 + a (n 1) n 1,nx n a (n) nn x n = b (n 1) n 1 = b (n) n x n = b(n) n a (n) nn (2.13) 2 x n 1 x k = b(k) k a (k) k,k+1 x k+1 a (k) k,k+2 x k+2 a (k) kn x n a (k) kk (2.14) x 1 C 13
15 for (i=1;i<=n;i++){ pivot = a[i][i]; Gauss C for (j=i+1;j<=n;j++){ p=a[j][i]/pivot; a[j][i]=0.0; for (k=i+1;k<=n;k++) a[j][k] -= p*a[i][k]; b[j] -= p*b[i]; x[n] = b[n]/a[n][n]; for (i=n-1;i>=1;i--){ x[i]=b[i]; for (j=i+1;j<=n;j++) x[i] -= a[i][j]*x[j]; x[i] /= a[i][i]; / (n i) + (n i)(n i + 1) + (n i) + 1 = (n i)(n i + 3) + 1 / (n i)(n i + 1) (n i 1) = (n i)(n i + 2) / n [(n i)(n i + 3) + 1] = 1 + (n 2 2ni + i 2 + 3n 3i + 1) i=1 n 1 i=1 14
16 n 1 = 1 + (n 2 n 1 + 3n + 1) 1 (2n + 3) i=1 = 1 + (n 2 + 3n 1)(n 1) (2n + 3) + (n 1)n(2n 1) 6 / n 1 i=1 (n i)(n i + 2) = n 1 i=1 = (n 2 + 2n) (n 2 2ni + i 2 + 2n 2i) n 1 i=1 n 1 1 (2n + 2) = (n 2 + 2n)(n 1) (2n + 2) = 2n3 + 3n 2 5n 6 i=1 i=1 = 2n3 + 6n 2 3n 6 i + n 1 i 2 i=1 (n 1)n 2 + i + n 1 i 2 i=1 (n 1)n 2 (n 1)n(2n 1) 6 n 3 /3 n 3 /3 1 Gauss O(n 3 ) 2.5 Gauss LU 15
17 3 LU 16
18 3.1 Gauss LU LU 3.2 LU Ax = b x = A 1 b Gauss b Gauss M 1 = 1 m m m n A (1) = A M 1 A (1) = A (2) = a (1) 11 a (1) 12 a (1) 1n 0 a (2) 22 a (2) 2n a (2) n2 a (2) nn 17
19 M 1 A (1) k M K =, m jk = a (k) jk.. m k+1,k 1 /a(k) kk (3.1).. m k+2,k m n,k 0 1 k = 1, 2,..., n 1 Gauss i = k + 1, k + 2,..., n m ik = a (k) ik /a(k) kk j = k + 1, k + 2,..., n b (k+1) i a (k+1) ij = b (k) i = a (k) ij m ik b (k) k m ik a (k) kj M k A (k) = A (k+1) (3.2) M n 1 M n 2...M 2 M 1 A = A (n) 18
20 = U = a (1) 11 a (1) 12 a (1) 13 a (1) 1n a (2) 22 a (2) 23 a (2) 2n 0 a (1) 33 a (3) 3n.... a (n) nn (3.3) U 0 M n 1 M n 2...M 1 b = b (n) = b (1) 1 b (2) 2. b (n) n (3.4) Ax = b 3.3 U Ux = b (n) (3.5) M k Mk =.. m k+1,k 1.. m k+2,k m n,k 0 1, m jk = a (k) jk /a(k) kk (3.6) M k I L Mk 1 L = M 1 1 M M 1 n 1 (3.7) 19
21 1 m m 31 m 32 1 L = m n1 m n2 m n3 m n,n 1 1, m jk = a (k) jk /a(k) kk (3.8) L Gauss A A = LU (3.9) L U A LU A LU L,U Ax = b Ax = b LUx = b y Ly = b (3.10) Ux = y (3.11) x Ly = b m kk = 1 y 1 = b 1 k = 2, 3,..., n y k = b k k 1 j=1 m kj y j Ux = y 20
22 x n = y n /a (n) nn k = n 1, n 2,..., 1 n x k = y k a (k) kj x j j=k+1 /a (k) kk 3.3 LU 3 3 A A = Gauss A = b A L U 21
23 A L U = (3.12) A L U LU LU for( i = 1; i <= n; i++ ){ for( j = 1; j <= n; j++ ){ LU C if( i == j ){ l[i][j] = 1; else{ l[i][j] = 0; u[i][j] = a[i][j]; for( i = 1; i <= n; i++ ){ for( j = i+1; j <= n; j++ ){ l[j][i] = u[j][i] / u[i][i]; for( k = i; k <= n; k++ ){ u[j][k] = u[j][k] - u[i][k] * l[j][i]; Gauss a[1][1] 0 a[1][1] a[2][1] a kk a[k][k] 0 0 a kk 22
24 3.4 Gauss LU Cholesky 23
25 4 Cholesky 24
26 4.1 LU A Cholesky 4.2 Cholesky A A = S T S 1 A LDL T Cholesky A > 0 a (k) kk D 1 2 = a (1) 11 0 a (2) a (n) nn (4.1) S = D 1 2 L T A A = S T S (4.2) A S s 11 s 12 s 1n s 22 s 2n S = s nn S T S ij a ij (4.3) s 1i s ij + s 2i s 2j + + s ii s ij = a ij, (i j) (4.4) 25
27 s ii = a ii s ij = (a ij i 1 k=1 i 1 k=1 s 2 ki, (s 11 = a 11 ) s ki s kj )/s ii, (s 1j = a 1j /s 11 ) (4.5) s 11 = a 11 s 12, s 13,..., s 1n, s 22, s 23,... S S S T y = b, Sx = y Ax = b A 4.3 Cholesky Cholesky s ii = a ii s ij = (a ij i 1 k=1 i 1 k=1 s 2 ki, (s 11 = a 11 ) s ki s kj )/s ii, (s 1j = a 1j /s 11 ) (4.6) C 26
28 for (i = 1; i <= n; i++) { s = a[i][i]; for (k = 1; k < i; k++) s -= sqr(l[i][k]); if (s < 0) { Cholesky C exit(0); L[i][i] = sqrt(s); for (j =i + 1; j <= n; j++) { s = a[j][i]; for (k = 1; k < i; k++) s -= L[j][k] * L[i][k]; L[j][i] = s / L[i][i]; 4.4 A Cholesky LDL T 27
29 5 LDL T 28
30 5.1 A Cholesky LDL T 5.2 LDL T A LU U U U = DV (5.1) D = a (1) 11 0 a (2) 22 0 a (3) a (n) nn (5.2) V = 1 v 12 v 13 v 1n 1 v 23 v 2n 1 v 3n , v kj = a (k) kj /a(k) kk, k < j (5.3) A A t = A (n k) (n k) Gauss 1 29
31 A (k) s = a (k) kk a (k) k+1,k. a (k) nk a (k) k,k+1 a (k) kn a (k) k+1,k+1 a (k) k+1,n..... a (k) n,k+1 a (k) nn (5.4) A (k) s = A (k)t s (5.5) a (k) ij = a (k) ji, k i, j n (5.6) k 1 a ij = a (k 1) ij a(k 1) i,k 1 a (k 1) k 1,k 1 a (k 1) = a (k 1) a (k) = a (k) αβ βα ij ji a (k 1) k 1,j (5.7) A = A T a (1) αβ = a(1) βα A v kj = a(k) kj a (k) kk = a(k) jk a (k) kk = m jk (5.8) V L V = L T (5.9) A A A = LDL T (5.10) A LDL T 30
32 5.3 A LDL T D ii d i = a (i) ii L ij l ij A = LDL T LDL T A k=1,2,...,n i l kj d j l ij = a ki i = 1, 2,..., k 1 j=1 k l ki d i l ki = a kk i=1 l ii = 1 d 1 = a 11 k = 2, 3,..., n LDL T i = 1, 2,..., k 1 i 1 l ki = a ki l kj l ij d j /d i d k = a kk j=1 k 1 lkid 2 i i=1 0 d 1 = a 11 l 21, d 2, l 31, l 32, d 3,... D L A LDL T Ax = LDL T x = Ly, y = DL T x Ly = b, DL T x = y Ax = b 31
33 5.4 LDL T LDL T 1 1 2x 1 + x 2 + x 3 = 8 (5.11) x 1 + 3x 2 + 2x 3 = 11 (5.12) x 1 + 2x 2 + 4x 3 = 16 (5.13) x = x x (5.14) Ax = b (5.15) A LDL T A = LDL T (5.16) 1 d 11 1 l 21 l 31 = l 21 1 d 22 1 l 32 (5.17) l 31 l 32 1 d 33 1 d 11 d 11 l 21 d 11 l 31 = d 11 d 11 l d 22 d 11 l 21 l 31 + d 22 l 32 (5.18) d 11 d 11 l 21 l 31 + d 22 l 32 d 11 l d 22 l d = (5.19)
34 LU AX = b LDL T x = b LDL T x = b (5.20) DL T x = y (5.21) Ly = b (5.22) = y 1 y 2 y (5.23) y 1 y 2 y 3 = (5.24) DL T x = y x 1 x 2 x 3 = (5.25) x 1 x 2 x 3 = (5.26) 33
35 x 1 x 2 x 3 = (5.27) L D d 11 = a 11, l j1 = a j1 /d 1 (j = 2,..., n) d 22 = a 22 d 11 l 2 21, l j2 = (a 2j d 11 l 21 l j1 /d 22 )(j = 3,..., n) d 33 = a 33 d 11 l 2 31 d 22 l 2 32, l j3 = (a 3j d 11 l 31 l j1 d 2 l 32 l j2 )/d 33 (j = 4,..., n) d[1]=a[1][1]; for(k=2;k<=n;k++){ s=0;t=0; for(i=1;i<=k-1;i++){ LDL T C for(j=1;j<=i-1;j++){ s+=l[k][j]*l[i][j]*d[j]; l[k][i]=(a[k][i] - s)/d[i]; for(i=1;i<=k-1;i++){ t+=l[k][i]*l[k][i]*d[i]; d[k]=a[k][k]-t ; 34
36 5.5 A LDL T LU LDL T 35
37 6 36
38 6.1 C LU LDL T. 6.2,,. CPU memory OS Celeron 2.0GHz 512MB Windows XP cygwin+gcc 6.1: 6.3 LU 1. LDL T A 2. A a 11 2,3,...,n 37
39 A = n n n n n n n n n A 3. A x x i = i, (i = 1,..., n) 4. Ax = b b 5. A LU 6. Ly = b y 7. Ux = y x LDL T 1. A, x, b LU 2. A LDL T 3. Ly = b y 4. DL T x = y x
40 6.4 C LU LDL T 39
41 7 40
42 7.1 C LU LDL T "LU.txt" "LDLT.txt" time dimension 7.1: LU LDL T 100,LDL T LU LU n 3 /3 + O(n 2 ) LDL T n 3 /6 + O(n 2 ) 41
43 7.3 C LU LDL T 42
44 8 43
45 , Gauss 3,Gauss LU 4,LDL T Cholesky. 5,LDL T 6, 7, 8.3 A LDL T LU 44
46 8.4 LU LDL T LU n 3 /3 + O(n 2 ) LDL T n 3 /6 + O(n 2 ) LDL T LU 45
47 46
48 ,,..,,. 47
49 [1] :,, 2003, [2] :, 1999 [3] :,, 2002, [4] G.H.Golub and C.F.Van Loan: Matrix Computations,Johns Hopkins,
50 Appendix A 49
51 ///////////////LDL^T_Factorization/////////////// #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 1000 /* */ int main(void); int main(void){ int i,j,k; double s; double t; double sum; static double a[n+1][n+1]; static double b[n+1]; static double w[n+1][n+1]; static double x[n+1]; static double y[n+1]; static double l[n+1][n+1]; static double d[n+1]; static double ld[n+1][n+1]; unsigned long t1,t2 ; /*a_{11 a[1][1] */ /*A */ for(i=1;i<=n;i++){ for(j=i;j<=n;j++){ a[i][j]=j; for(j=i-1;j>=1;j--){ a[i][j]=a[j][i]; /* X */ 50
52 for(i=1;i<=n;i++){ x[i]=i; /*Ax=b B */ for(i=1;i<=n;i++){ for(k=1,sum=0;k<=n;k++){ sum+=a[i][k]*x[k]; b[i] = sum; /* */ for(i=1;i<=n;i++){ x[i]=0; t1=clock(); /* LDL^T */ /*L */ for(i=1;i<=n;i++){ for(j=1;j<=n;j++){ if(i==j){ else{ l[i][j]=1; l[i][j]=0; d[1]=a[1][1]; for(k=2;k<=n;k++){ for(i=1;i<=k-1;i++){ for(j=1,s=0;j<=i-1;j++){ 51
53 s+=l[k][j]*l[i][j]*d[j]; l[k][i]=(a[k][i] - s)/d[i]; for(i=1,t=0;i<=k-1;i++){ t+=l[k][i]*l[k][i]*d[i]; d[k]=a[k][k]-t ; /* LDL^T */ for(i=1;i<=n;i++){ y[i]=b[i]; for(j=1;j<i;j++){ y[i]-=l[i][j]*y[j]; /* DL^T*x=y */ /*DL^T */ for(i=1;i<=n;i++){ for(j=1;j<=n;j++){ for(i=n;i>=1;i--){ w[i][j]=d[i]*l[j][i]; x[i]=y[i]; for(j=n;j>i;j--){ x[i]-=w[i][j]*x[j]; x[i]/=w[i][i]; t2=clock(); /*l[j][i] ^ */ 52
54 printf(" ; %f[ms]\n", (t2-t1)/ ); return(0); ///////////////LU_Factorization/////////////// #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 1000 int main(void); int main(void){ int i,j,k; double s,t,sum; static double a[n+1][n+1]; static double b[n+1]; static double u[n+1][n+1]; static double w[n+1][n+1]; static double x[n+1]; static double y[n+1]; static double l[n+1][n+1]; static double d[n+1]; static double ld[n+1][n+1]; unsigned long t1,t2 ; /*a_{11 a[1][1] */ /*A */ for(i=1;i<=n;i++){ for(j=i;j<=n;j++){ a[i][j]=j; for(j=i-1;j>=1;j--){ a[i][j]=a[j][i]; 53
55 /* X */ for(i=1;i<=n;i++){ x[i]=i; /*Ax=b B */ for(i=1;i<=n;i++){ for(k=1,sum=0;k<=n;k++){ sum+=a[i][k]*x[k]; b[i] = sum; /* */ for(i=1;i<=n;i++){ x[i]=0; t1=clock(); /* LU */ for( i = 1; i <= N; i++ ){ for( j = 1; j <= N; j++ ){ if( i == j ){ l[i][j] = 1; else{ l[i][j] = 0; u[i][j] = a[i][j]; for( i = 1; i <= N; i++ ){ for( j = i+1; j <= N; j++ ){ l[j][i] = u[j][i] / u[i][i]; for( k = i; k <= N; k++ ){ u[j][k] = u[j][k] - u[i][k] * l[j][i]; 54
56 for(i=1;i<=n;i++){ y[i]=b[i]; for(j=1;j<i;j++){ y[i]-=l[i][j]*y[j]; for(i=n;i>=1;i--){ x[i]=y[i]; for(j=n;j>i;j--){ x[i]-=u[i][j]*x[j]; x[i]/=u[i][i]; t2=clock(); printf(" ; %f[ms]\n", (t2-t1)/ ); return(0); 55
1 5 13 4 1 41 1 411 1 412 2 413 3 414 3 415 4 42 6 43 LU 7 431 LU 10 432 11 433 LU 11 44 12 441 13 442 13 443 SOR ( ) 14 444 14 445 15 446 16 447 SOR 16 448 16 45 17 4 41 n x 1,, x n a 11 x 1 + a 1n x
More informationC言語による数値計算プログラミング演習
5. 行列の固有値問題 n n 正方行列 A に対する n 個の固有値 λ i (i=1,,,n) と対応する固有ベクトル u i は次式を満たす Au = λ u i i i a11 a1 L a1 n u1i a1 a a n u i A =, ui = M O M M an 1 an L ann uni これらはまとめて, つぎのように書ける 5.1 ヤコビ法 = Λ, = [ u1 u u
More informationXMPによる並列化実装2
2 3 C Fortran Exercise 1 Exercise 2 Serial init.c init.f90 XMP xmp_init.c xmp_init.f90 Serial laplace.c laplace.f90 XMP xmp_laplace.c xmp_laplace.f90 #include int a[10]; program init integer
More informationsim98-8.dvi
8 12 12.1 12.2 @u @t = @2 u (1) @x 2 u(x; 0) = (x) u(0;t)=u(1;t)=0fort 0 1x, 1t N1x =1 x j = j1x, t n = n1t u(x j ;t n ) Uj n U n+1 j 1t 0 U n j =1t=(1x) 2 = U n j+1 0 2U n j + U n j01 (1x) 2 (2) U n+1
More informationLINEAR ALGEBRA I Hiroshi SUZUKI Department of Mathematics International Christian University
LINEAR ALGEBRA I Hiroshi SUZUKI Department of Mathematics International Christian University 2002 2 2 2 2 22 2 3 3 3 3 3 4 4 5 5 6 6 7 7 8 8 9 Cramer 9 0 0 E-mail:hsuzuki@icuacjp 0 3x + y + 2z 4 x + y
More information2000 7 17 iii,,.,,,,.,.,,. =,,.,,.,.,,,,,,, fortran,.,,,,.,,, iv (i),., 10,, 10 1. (ii),, fortran, fortran, C,.. (i),., 10 23.. (ii),.,, fortran Pasal,, for, if then else. C., fortran C.,.,,.,.,,.,,.,.,,,,.
More informationスライド 1
数値解析 平成 24 年度前期第 13 週 [7 月 11 日 ] 静岡大学創造科学技術大学院情報科学専攻工学部機械工学科計測情報講座 三浦憲二郎 講義アウトライン [7 月 11 日 ] 関数近似と補間 最小 2 乗近似による関数近似 ラグランジュ補間 形状処理工学の基礎 点列からの曲線の生成 T.Kanai, U.Tokyo 関数近似 p.116 複雑な関数を簡単な関数で近似する関数近似 閉区間
More information行列代数2010A
(,) A (,) B C = AB a 11 a 1 a 1 b 11 b 1 b 1 c 11 c 1 c a A = 1 a a, B = b 1 b b, C = AB = c 1 c c a 1 a a b 1 b b c 1 c c i j ij a i1 a i a i b 1j b j b j c ij = a ik b kj b 1j b j AB = a i1 a i a ik
More informationスライド 1
数値解析 平成 29 年度前期第 14 週 [7 月 10 日 ] 静岡大学工学研究科機械工学専攻ロボット 計測情報分野創造科学技術大学院情報科学専攻 三浦憲二郎 期末試験 7 月 31 日 ( 月 ) 9 10 時限 A : 佐鳴会議室 B : 佐鳴ホール 講義アウトライン [7 月 10 日 ] 関数近似と補間 最小 2 乗近似による関数近似 ( 復習 ) ラグランジュ補間 形状処理工学の基礎
More informationGauss Strassen LU LU LU LU 22 5 Gauss LU
I, 208 3 23 3 2 4 3 6 3 6 32 6 32 6 322 7 323 Gauss 8 324 Strassen 9 325 0 326 0 327 LU 0 33 4 LU 2 4 2 4 2 42 3 43 4 42 8 43 0 LU 20 44 LU 22 5 Gauss LU 23 5 23 52 Gauss 23 53 LU 24 53 24 532 25 533 LU
More information弾性定数の対称性について
() by T. oyama () ij C ij = () () C, C, C () ij ji ij ijlk ij ij () C C C C C C * C C C C C * * C C C C = * * * C C C * * * * C C * * * * * C () * P (,, ) P (,, ) lij = () P (,, ) P(,, ) (,, ) P (, 00,
More information‚æ4›ñ
( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9
More informationQR
1 7 16 13 1 13.1 QR...................................... 2 13.1.1............................................ 2 13.1.2..................................... 3 13.1.3 QR........................................
More informationスライド 1
数値解析 2019 年度前期第 13 週 [7 月 11 日 ] 静岡大学創造科学技術大学院情報科学専攻工学部機械工学科計測情報講座 三浦憲二郎 講義アウトライン [7 月 11 日 ] 関数近似と補間 最小 2 乗近似による関数近似 ラグランジュ補間 T.Kanai, U.Tokyo 関数近似 p.116 複雑な関数を簡単な関数で近似する 関数近似 閉区間 [a,b] で定義された関数 f(x)
More informationC による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.
C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009383 このサンプルページの内容は, 新装版 1 刷発行時のものです. i 2 22 2 13 ( ) 2 (1) ANSI (2) 2 (3) Web http://www.morikita.co.jp/books/mid/009383
More information行列代数2010A
a ij i j 1) i +j i, j) ij ij 1 j a i1 a ij a i a 1 a j a ij 1) i +j 1,j 1,j +1 a i1,1 a i1,j 1 a i1,j +1 a i1, a i +1,1 a i +1.j 1 a i +1,j +1 a i +1, a 1 a,j 1 a,j +1 a, ij i j 1,j 1,j +1 ij 1) i +j a
More informationA common.h include #include <stdio.h> #include <time.h> #define MAXN int A[MAXN], n; double start,end; void inputdata(
2 065762A 19 7 13 1 2 2.1 common.h include #include #include #define MAXN 1000000 int A[MAXN], n; double start,end; void inputdata(void) int i; // printf(" "); scanf("%d",&n); // printf("
More information1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() malloc 2 #include <stdio.h> #include
1 1.1 C 2 1 double a[ ][ ]; 1 3x3 0 1 3x3 ( ) 0.240 0.143 0.339 0.191 0.341 0.477 0.412 0.003 0.921 1.2 malloc() malloc 2 #include #include #include enum LENGTH = 10 ; int
More information1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() 2 double *a[ ]; double 1 malloc() dou
1 1.1 C 2 1 double a[ ][ ]; 1 3x3 0 1 3x3 ( ) 0.240 0.143 0.339 0.191 0.341 0.477 0.412 0.003 0.921 1.2 malloc() 2 double *a[ ]; double 1 malloc() double 1 malloc() free() 3 #include #include
More informationjoho12.ppt
n φ 1 (x),φ 2 (x),,φ n (x) (x i, f i ) Q n c 1,,c n (,f k ) q n = c i φ i (x) x Q n i=1 c 1 = 0 c 1 n ( c 1 ) = q n f k 2 Q n ( c 1 ) = q 2 2 n ( ) 2 f k q n ( ) + f k Q n c 1 = c 1 q n 2 q n( ) q n q
More informationII 2 3.,, A(B + C) = AB + AC, (A + B)C = AC + BC. 4. m m A, m m B,, m m B, AB = BA, A,, I. 5. m m A, m n B, AB = B, A I E, 4 4 I, J, K
II. () 7 F 7 = { 0,, 2, 3, 4, 5, 6 }., F 7 a, b F 7, a b, F 7,. (a) a, b,,. (b) 7., 4 5 = 20 = 2 7 + 6, 4 5 = 6 F 7., F 7,., 0 a F 7, ab = F 7 b F 7. (2) 7, 6 F 6 = { 0,, 2, 3, 4, 5 },,., F 6., 0 0 a F
More informationPC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU
1. 1.1. 1.2. 1 PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 2. 2.1. 2 1 2 C a b N: PC BC c 3C ac b 3 4 a F7 b Y c 6 5 a ctrl+f5) 4 2.2. main 2.3. main 2.4. 3 4 5 6 7 printf printf
More informationc-all.dvi
III(994) (994) from PSL (9947) & (9922) c (99,992,994,996) () () 2 3 4 (2) 2 Euler 22 23 Euler 24 (3) 3 32 33 34 35 Poisson (4) 4 (5) 5 52 ( ) 2 Turbo 2 d 2 y=dx 2 = y y = a sin x + b cos x x = y = Fortran
More information2004 2005 2 2 1G01P038-0 1 2 1.1.............................. 2 1.2......................... 2 1.3......................... 3 2 4 2.1............................ 4 2.2....................... 4 2.3.......................
More information第1章
...1... 1... 1...3... 3... 5... 6...9... 9... 9... 9... 10... 12... 14 Windows...16... 16... 16...21... 21... 25...30...31...32...33 3 1 2 3 4 5 6 7 8 n x, y i 0,1,, n 1 i i y P x ) i 0, 1,, n 1 n 1 i
More information2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1
2008 ( 13 ) C LAPACK LAPACK p. 1 Q & A Euler http://phase.hpcc.jp/phase/mppack/long.pdf KNOPPIX MT (Mersenne Twister) SFMT., ( ) ( ) ( ) ( ). LAPACK p. 2 C C, main Asir ( Asir ) ( ) (,,...), LAPACK p.
More informationスライド 1
数値解析 平成 30 年度前期第 10 週 [6 月 12 日 ] 静岡大学工学研究科機械工学専攻ロボット 計測情報分野創造科学技術大学院情報科学専攻 三浦憲二郎 講義アウトライン [6 月 12 日 ] 連立 1 次方程式の直接解法 ガウス消去法 ( 復習 ) 部分ピボット選択付きガウス消去法 連立 1 次方程式 連立 1 次方程式の重要性 非線形の問題は基本的には解けない. 非線形問題を線形化して解く.
More informationcomment.dvi
( ) (sample1.c) (sample1.c) 2 2 Nearest Neighbor 1 (2D-class1.dat) 2 (2D-class2.dat) (2D-test.dat) 3 Nearest Neighbor Nearest Neighbor ( 1) 2 1: NN 1 (sample1.c) /* -----------------------------------------------------------------
More informationX G P G (X) G BG [X, BG] S 2 2 2 S 2 2 S 2 = { (x 1, x 2, x 3 ) R 3 x 2 1 + x 2 2 + x 2 3 = 1 } R 3 S 2 S 2 v x S 2 x x v(x) T x S 2 T x S 2 S 2 x T x S 2 = { ξ R 3 x ξ } R 3 T x S 2 S 2 x x T x S 2
More information(2016 2Q H) [ ] R 2 2 P = (a, b), Q = (c, d) Q P QP = ( ) a c b d (a c, b d) P = (a, b) O P ( ) a p = b P = (a, b) p = ( ) a b R 2 {( ) } R 2 x = x, y
(2016 2Q H) [ ] R 2 2 P = (a, b), Q = (c, d) Q P QP = a c b d (a c, b d) P = (a, b) O P a p = b P = (a, b) p = a b R 2 { } R 2 x = x, y R y 2 a p =, c q = b d p + a + c q = b + d q p P q a p = c R c b
More information#define N1 N+1 double x[n1] =.5, 1., 2.; double hokan[n1] = 1.65, 2.72, 7.39 ; double xx[]=.2,.4,.6,.8,1.2,1.4,1.6,1.8; double lagrng(double xx); main
=1= (.5, 1.65), (1., 2.72), (2., 7.39).2,.4,.6,.8, 1., 1.2, 1.4, 1.6 1 1: x.2 1.4128.4 1.5372.6 1.796533.8 2.198 1.2 3.384133 1.4 4.1832 1.6 5.1172 8 7 6 5 y 4 3 2 1.5 1 1.5 2 x 1: /* */ #include
More information[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±
[1] #include printf("hello, world."); (G1) int -32768 32767 long int -2147483648 2147483647 float ±3.4 10 38 ±3.4 10 38 double ±1.7 10 308 ±1.7 10 308 char [2] #include int a, b, c, d,
More information(1) (2) (1) (2) 2 3 {a n } a 2 + a 4 + a a n S n S n = n = S n
. 99 () 0 0 0 () 0 00 0 350 300 () 5 0 () 3 {a n } a + a 4 + a 6 + + a 40 30 53 47 77 95 30 83 4 n S n S n = n = S n 303 9 k d 9 45 k =, d = 99 a d n a n d n a n = a + (n )d a n a n S n S n = n(a + a n
More information数学Ⅱ演習(足助・09夏)
II I 9/4/4 9/4/2 z C z z z z, z 2 z, w C zw z w 3 z, w C z + w z + w 4 t R t C t t t t t z z z 2 z C re z z + z z z, im z 2 2 3 z C e z + z + 2 z2 + 3! z3 + z!, I 4 x R e x cos x + sin x 2 z, w C e z+w
More informationD D 1/2 L (LD 1/2 L ) A = LL T A P AP T = LDL T (P, L, D ) ( [2], [3] ) A 0 A = LDL T (L, D ) ( Cholesky ) A A = LL T (L ) ( Cholesky ) Trefethen and
Cholesky 2008 6 9, 2013 8 25 Cholesky Sylvester L U U 1, Cholesky LU ( Hermite Hermite ) LU LU Cholesky Cholesky A A = LDU (L, D, U ) LDU LDU A = A T = U T D T L T = U T DL T L = U T, U = L T A = LDL T.
More information: : : : ) ) 1. d ij f i e i x i v j m a ij m f ij n x i =
1 1980 1) 1 2 3 19721960 1965 2) 1999 1 69 1980 1972: 55 1999: 179 2041999: 210 211 1999: 211 3 2003 1987 92 97 3) 1960 1965 1970 1985 1990 1995 4) 1. d ij f i e i x i v j m a ij m f ij n x i = n d ij
More information‚æ2›ñ C„¾„ê‡Ìš|
I 8 10 10 I ( 6 ) 10 10 1 / 23 1 C ( ) getchar(), gets(), scanf() ( ) putchar(), puts(), printf() 1 getchar(), putchar() 1 I ( 6 ) 10 10 2 / 23 1 (getchar 1 1) 1 #include 2 void main(void){ 3 int
More informationTaro-再帰関数Ⅱ(公開版).jtd
0. 目次 6. 2 項係数 7. 二分探索 8. 最大値探索 9. 集合 {1,2,,n} 上の部分集合生成 - 1 - 6. 2 項係数 再帰的定義 2 項係数 c(n,r) は つぎのように 定義される c(n,r) = c(n-1,r) + c(n-1,r-1) (n 2,1 r n-1) = 1 (n 0, r=0 ) = 1 (n 1, r=n ) c(n,r) 0 1 2 3 4 5
More information[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:
005 9 7 1 1.1 1 Hello World!! 5 p r i n t f ( H e l l o World!! \ n ) ; 7 return 0 ; 8 } 1: 1 [ ] Hello World!! from Akita National College of Technology. 1 : 5 p r i n t f ( H e l l o World!! \ n ) ;
More informationAHPを用いた大相撲の新しい番付編成
5304050 2008/2/15 1 2008/2/15 2 42 2008/2/15 3 2008/2/15 4 195 2008/2/15 5 2008/2/15 6 i j ij >1 ij ij1/>1 i j i 1 ji 1/ j ij 2008/2/15 7 1 =2.01/=0.5 =1.51/=0.67 2008/2/15 8 1 2008/2/15 9 () u ) i i i
More information/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v
1 http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp /* do-while */ #include #include int main(void) double val1, val2, arith_mean, geo_mean; printf( \n );
More information(2018 2Q C) [ ] R 2 2 P = (a, b), Q = (c, d) Q P QP = ( ) a c b d (a c, b d) P = (a, b) O P ( ) a p = b P = (a, b) p = ( ) a b R 2 {( ) } R 2 x = x, y
(2018 2Q C) [ ] R 2 2 P = (a, b), Q = (c, d) Q P QP = a c b d (a c, b d) P = (a, b) O P a p = b P = (a, b) p = a b R 2 { } R 2 x = x, y R y 2 a p =, c q = b d p + a + c q = b + d q p P q a p = c R c b
More information1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main
C 2007 5 29 C 1 11 2 2.1 main() 1 FORTRAN C main() main main() main() 1 return 1 1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return
More informationUSB 0.6 https://duet.doshisha.ac.jp/info/index.jsp 2 ID TA DUET 24:00 DUET XXX -YY.c ( ) XXX -YY.txt() XXX ID 3 YY ID 5 () #define StudentID 231
0 0.1 ANSI-C 0.2 web http://www1.doshisha.ac.jp/ kibuki/programming/resume p.html 0.3 2012 1 9/28 0 [ 01] 2 10/5 1 C 2 3 10/12 10 1 2 [ 02] 4 10/19 3 5 10/26 3 [ 03] 6 11/2 3 [ 04] 7 11/9 8 11/16 4 9 11/30
More information:30 12:00 I. I VI II. III. IV. a d V. VI
2017 2017 08 03 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF X [ S ] a S S ; X X X, S [, a, ], ; BNF X (parse tree) (1) [a;a] (2) [[a]] (3) [a;[a]] (4) [[a];a] : [a] X 2 222222
More information離散最適化基礎論 第 11回 組合せ最適化と半正定値計画法
11 okamotoy@uec.ac.jp 2019 1 25 2019 1 25 10:59 ( ) (11) 2019 1 25 1 / 38 1 (10/5) 2 (1) (10/12) 3 (2) (10/19) 4 (3) (10/26) (11/2) 5 (1) (11/9) 6 (11/16) 7 (11/23) (11/30) (12/7) ( ) (11) 2019 1 25 2
More informationkiso2-09.key
座席指定はありません 計算機基礎実習II 2018 のウェブページか 第9回 ら 以下の課題に自力で取り組んで下さい 計算機基礎実習II 第7回の復習課題(rev07) 第9回の基本課題(base09) 第8回試験の結果 中間試験に関するコメント コンパイルできない不完全なプログラムなど プログラミングに慣れていない あるいは複雑な問題は 要件 をバラして段階的にプログラムを作成する exam08-2.c
More informationC言語による数値計算プログラミング演習
4. 連立一次方程式の解法 4. LU 分解法 同じ係数行列 A( サイズ n n) をもつ m 組の連立 次方程式 AX = B ( ただし A=[ ij ] は n 行 n 列の正則行列,B=[b ij ] と X=[x ij ] は n 行 m 列の行列 ) を同時に解く 行列 A,B を並置して 個の配列 A (n 行 n+m 列 ) を作成し, i,n+j =b ij (i=,,n; j=,,m)
More informationPart () () Γ Part ,
Contents a 6 6 6 6 6 6 6 7 7. 8.. 8.. 8.3. 8 Part. 9. 9.. 9.. 3. 3.. 3.. 3 4. 5 4.. 5 4.. 9 4.3. 3 Part. 6 5. () 6 5.. () 7 5.. 9 5.3. Γ 3 6. 3 6.. 3 6.. 3 6.3. 33 Part 3. 34 7. 34 7.. 34 7.. 34 8. 35
More information2012 A, N, Z, Q, R, C
2012 A, N, Z, Q, R, C 1 2009 9 2 2011 2 3 2012 9 1 2 2 5 3 11 4 16 5 22 6 25 7 29 8 32 1 1 1.1 3 1 1 1 1 1 1? 3 3 3 3 3 3 3 1 1, 1 1 + 1 1 1+1 2 2 1 2+1 3 2 N 1.2 N (i) 2 a b a 1 b a < b a b b a a b (ii)
More informationC言語によるアルゴリズムとデータ構造
Algorithms and Data Structures in C 4 algorithm List - /* */ #include List - int main(void) { int a, b, c; int max; /* */ Ÿ 3Ÿ 2Ÿ 3 printf(""); printf(""); printf(""); scanf("%d", &a); scanf("%d",
More informationTaro-再帰関数Ⅲ(公開版).jtd
0. 目次 1 1. ソート 1 1. 1 挿入ソート 1 1. 2 クイックソート 1 1. 3 マージソート - 1 - 1 1. ソート 1 1. 1 挿入ソート 挿入ソートを再帰関数 isort を用いて書く 整列しているデータ (a[1] から a[n-1] まで ) に a[n] を挿入する操作を繰り返す 再帰的定義 isort(a[1],,a[n]) = insert(isort(a[1],,a[n-1]),a[n])
More information+ 1 ( ) I IA i i i 1 n m a 11 a 1j a 1m A = a i1 a ij a im a n1 a nj a nm.....
+ http://krishnathphysaitama-uacjp/joe/matrix/matrixpdf 1 ( ) I IA i i i 1 n m a 11 a 1j a 1m A = a i1 a ij a im a n1 a nj a nm (1) n m () (n, m) ( ) n m B = ( ) 3 2 4 1 (2) 2 2 ( ) (2, 2) ( ) C = ( 46
More informationI. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (
2016 2016 07 28 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF : 11011 N N 0 N N 11 1001 N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) 1100100 (2) 1111011 (3) 1110010 (4) 1001011
More information実際の株価データを用いたオプション料の計算
2002 2 20 1 1 3 2 3 2.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5 2.1.1 : : : : : : : : : : : : : : : : : : : : 5 2.1.2 : : : : : : : : : : : : : : : : : : : : 6 2.2 : : : : : : : : : :
More informationC 2 / 21 1 y = x 1.1 lagrange.c 1 / Laglange / 2 #include <stdio.h> 3 #include <math.h> 4 int main() 5 { 6 float x[10], y[10]; 7 float xx, pn, p; 8 in
C 1 / 21 C 2005 A * 1 2 1.1......................................... 2 1.2 *.......................................... 3 2 4 2.1.............................................. 4 2.2..............................................
More informationn (1.6) i j=1 1 n a ij x j = b i (1.7) (1.7) (1.4) (1.5) (1.4) (1.7) u, v, w ε x, ε y, ε x, γ yz, γ zx, γ xy (1.8) ε x = u x ε y = v y ε z = w z γ yz
1 2 (a 1, a 2, a n ) (b 1, b 2, b n ) A (1.1) A = a 1 b 1 + a 2 b 2 + + a n b n (1.1) n A = a i b i (1.2) i=1 n i 1 n i=1 a i b i n i=1 A = a i b i (1.3) (1.3) (1.3) (1.1) (ummation convention) a 11 x
More information(Basic Theory of Information Processing) 1
(Basic Theory of Information Processing) 1 10 (p.178) Java a[0] = 1; 1 a[4] = 7; i = 2; j = 8; a[i] = j; b[0][0] = 1; 2 b[2][3] = 10; b[i][j] = a[2] * 3; x = a[2]; a[2] = b[i][3] * x; 2 public class Array0
More information1 Ricci V, V i, W f : V W f f(v ) = Imf W ( ) f : V 1 V k W 1
1 Ricci V, V i, W f : V W f f(v = Imf W ( f : V 1 V k W 1 {f(v 1,, v k v i V i } W < Imf > < > f W V, V i, W f : U V L(U; V f : V 1 V r W L(V 1,, V r ; W L(V 1,, V r ; W (f + g(v 1,, v r = f(v 1,, v r
More informationall.dvi
29 4 Green-Lagrange,,.,,,,,,.,,,,,,,,,, E, σ, ε σ = Eε,,.. 4.1? l, l 1 (l 1 l) ε ε = l 1 l l (4.1) F l l 1 F 30 4 Green-Lagrange Δz Δδ γ = Δδ (4.2) Δz π/2 φ γ = π 2 φ (4.3) γ tan γ γ,sin γ γ ( π ) γ tan
More informationInformatics 2014
C 計算機の歴史 手回し計算機 新旧のソロバン バベッジの階差機関 スパコン ENIAC (1946) パソコン 大型汎用計算機 電卓 現在のコンピュータ Input Output Device Central Processing Unit I/O CPU Memory OS (Operating System) OS Windows 78, Vista, XP Windows Mac OS X
More information10 10 10 1 2 3 4 2 2 4 5 6 7 8 1 9 1011 S 10 1 2 3 4 5 10 10 10 1 2 3 4 5 6 2 7 8 9 10 10 2 14 3 2 4 10 11 12 13 14 1521 15 16 15 16 ( ) 17 18 19 20 21 1 10 4 1 2 5 3 2 II 2 3 ( ) 5 21 5 22 2 3 23
More informationP06.ppt
p.130 p.198 p.208 2 1 double weight[num]; double min, max; min = max = weight[0]; for( i= 1; i < NUM; i++ ) if ( weight[i] > max ) max = weight[i]: if ( weight[i] < min ) min = weight[i]: weight 3 maxof(a,
More information構造と連続体の力学基礎
12 12.1? finite deformation infinitesimal deformation large deformation 1 [129] B Bernoulli-Euler [26] 1975 Northwestern Nemat-Nasser Continuum Mechanics 1980 [73] 2 1 2 What is the physical meaning? 583
More informationtuat1.dvi
( 1 ) http://ist.ksc.kwansei.ac.jp/ tutimura/ 2012 6 23 ( 1 ) 1 / 58 C ( 1 ) 2 / 58 2008 9 2002 2005 T E X ptetex3, ptexlive pt E X UTF-8 xdvi-jp 3 ( 1 ) 3 / 58 ( 1 ) 4 / 58 C,... ( 1 ) 5 / 58 6/23( )
More informationii
ii iii 1 1 1.1..................................... 1 1.2................................... 3 1.3........................... 4 2 9 2.1.................................. 9 2.2...............................
More informationd ϕ i) t d )t0 d ϕi) ϕ i) t x j t d ) ϕ t0 t α dx j d ) ϕ i) t dx t0 j x j d ϕ i) ) t x j dx t0 j f i x j ξ j dx i + ξ i x j dx j f i ξ i x j dx j d )
23 M R M ϕ : R M M ϕt, x) ϕ t x) ϕ s ϕ t ϕ s+t, ϕ 0 id M M ϕ t M ξ ξ ϕ t d ϕ tx) ξϕ t x)) U, x 1,...,x n )) ϕ t x) ϕ 1) t x),...,ϕ n) t x)), ξx) ξ i x) d ϕi) t x) ξ i ϕ t x)) M f ϕ t f)x) f ϕ t )x) fϕ
More information2014 3 10 5 1 5 1.1..................................... 5 2 6 2.1.................................... 6 2.2 Z........................................ 6 2.3.................................. 6 2.3.1..................
More information8 / 0 1 i++ i 1 i-- i C !!! C 2
C 2006 5 2 printf() 1 [1] 5 8 C 5 ( ) 6 (auto) (static) 7 (=) 1 8 / 0 1 i++ i 1 i-- i 1 2 2.1 C 4 5 3 13!!! C 2 2.2 C ( ) 4 1 HTML はじめ mkdir work 作業用ディレクトリーの作成 emacs hoge.c& エディターによりソースプログラム作成 gcc -o fuga
More informationx h = (b a)/n [x i, x i+1 ] = [a+i h, a+ (i + 1) h] A(x i ) A(x i ) = h 2 {f(x i) + f(x i+1 ) = h {f(a + i h) + f(a + (i + 1) h), (2) 2 a b n A(x i )
1 f(x) a b f(x)dx = n A(x i ) (1) ix [a, b] n i A(x i ) x i 1 f(x) [a, b] n h = (b a)/n y h = (b-a)/n y = f (x) h h a a+h a+2h a+(n-1)h b x 1: 1 x h = (b a)/n [x i, x i+1 ] = [a+i h, a+ (i + 1) h] A(x
More informationI. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *
2015 2015 07 30 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) +
More informationInformatics 2015
C 計算機の歴史 新旧のソロバン バベッジの階差機関 19C前半 手回し計算機 19C後半 20C後半 スパコン 1960年代 ENIAC (1946) 大型汎用計算機 1950年代 1980年代 電卓 1964 パソコン 1970年代 現在のコンピュータ Input Output Device Central Processing Unit I/O CPU Memory OS (Operating
More information1 4 2 EP) (EP) (EP)
2003 2004 2 27 1 1 4 2 EP) 5 3 6 3.1.............................. 6 3.2.............................. 6 3.3 (EP)............... 7 4 8 4.1 (EP).................... 8 4.1.1.................... 18 5 (EP)
More information16 B
16 B (1) 3 (2) (3) 5 ( ) 3 : 2 3 : 3 : () 3 19 ( ) 2 ax 2 + bx + c = 0 (a 0) x = b ± b 2 4ac 2a 3, 4 5 1824 5 Contents 1. 1 2. 7 3. 13 4. 18 5. 22 6. 25 7. 27 8. 31 9. 37 10. 46 11. 50 12. 56 i 1 1. 1.1..
More information:30 12:00 I. I VI II. III. IV. a d V. VI
2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx
More informationver Web
ver201723 Web 1 4 11 4 12 5 13 7 2 9 21 9 22 10 23 10 24 11 3 13 31 n 13 32 15 33 21 34 25 35 (1) 27 4 30 41 30 42 32 43 36 44 (2) 38 45 45 46 45 5 46 51 46 52 48 53 49 54 51 55 54 56 58 57 (3) 61 2 3
More information2017 p vs. TDGL 4 Metropolis Monte Carlo equation of continuity s( r, t) t + J( r, t) = 0 (79) J s flux (67) J (79) J( r, t) = k δf δs s( r,
27 p. 47 7 7. vs. TDGL 4 Metropolis Monte Carlo equation of continuity s( r, t) t + J( r, t) = (79) J s flux (67) J (79) J( r, t) = k δf δs s( r, t) t = k δf δs (59) TDGL (8) (8) k s t = [ T s s 3 + ξ
More information1. 1 BASIC PC BASIC BASIC BASIC Fortran WS PC (1.3) 1 + x 1 x = x = (1.1) 1 + x = (1.2) 1 + x 1 = (1.
Section Title Pages Id 1 3 7239 2 4 7239 3 10 7239 4 8 7244 5 13 7276 6 14 7338 7 8 7338 8 7 7445 9 11 7580 10 10 7590 11 8 7580 12 6 7395 13 z 11 7746 14 13 7753 15 7 7859 16 8 7942 17 8 Id URL http://km.int.oyo.co.jp/showdocumentdetailspage.jsp?documentid=
More informationj x j j j + 1 l j l j = x j+1 x j, n x n x 1 = n 1 l j j=1 H j j + 1 l j l j E
8 9 7 6 4 2 3 5 1 j x j j j + 1 l j l j = x j+1 x j, n x n x 1 = n 1 l j j=1 H j j + 1 l j l j E a n 1 H = ae l j, j=1 l j = x j+1 x j, x n x 1 = n 1 j=1 l j, l j = ±l l > 0) n 1 H = ϵ l j, j=1 ϵ e x x
More information橡Pro PDF
1 void main( ) char c; /* int c; */ int sum=0; while ((c = getchar())!= EOF) if(isdigit(c) ) sum += (c-'0'); printf("%d\n", sum); main()int i,sum=0; for(i=0;i
More informationInformatics 2010.key
http://math.sci.hiroshima-u.ac.jp/ ~ryo/lectures/informatics2010/ 1 2 C ATM etc. etc. (Personal Computer) 3 4 Input Output Device Central Processing Unit I/O CPU Memory 5 6 (CPU),,... etc. C, Java, Fortran...
More information2 [1] 7 5 C 2.1 (kikuchi-fem-mac ) input.dat (cat input.dat type input.dat ))
2.3 2007 8, 2011 6 21, 2012 5 29 1 (1) (2) (3) 2 Ω Poisson u = f (in Ω), u = 0 (on Γ 1 ), u n = 0 (on Γ 2) f Γ 1, Γ 2 Γ := Ω n Γ Ω (1980) Fortran : kikuchi-fem-mac.tar.gz 1 ( fem, 6701) tar xzf kikuchi-fem-mac.tar.gz
More informationPowerPoint Presentation
p.130 p.198 p.208 2 double weight[num]; double min, max; min = max = weight[0]; for( i= 1; i i < NUM; i++ ) ) if if ( weight[i] > max ) max = weight[i]: if if ( weight[i] < min ) min = weight[i]: weight
More information資料
PC PC C VMwareをインストールする Tips: VmwareFusion *.vmx vhv.enable = TRUE Tips: Windows Hyper-V -rwxr-xr-x 1 masakazu staff 8552 7 29 13:18 a.out* -rw------- 1 masakazu staff 8552 7 29
More information並列計算の数理とアルゴリズム サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.
並列計算の数理とアルゴリズム サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/080711 このサンプルページの内容は, 初版 1 刷発行時のものです. Calcul scientifique parallèle by Frédéric Magoulès and François-Xavier
More informationv v = v 1 v 2 v 3 (1) R = (R ij ) (2) R (R 1 ) ij = R ji (3) 3 R ij R ik = δ jk (4) i=1 δ ij Kronecker δ ij = { 1 (i = j) 0 (i
1. 1 1.1 1.1.1 1.1.1.1 v v = v 1 v 2 v 3 (1) R = (R ij ) (2) R (R 1 ) ij = R ji (3) R ij R ik = δ jk (4) δ ij Kronecker δ ij = { 1 (i = j) 0 (i j) (5) 1 1.1. v1.1 2011/04/10 1. 1 2 v i = R ij v j (6) [
More informationKrylov (b) x k+1 := x k + α k p k (c) r k+1 := r k α k Ap k ( := b Ax k+1 ) (d) β k := r k r k 2 2 (e) : r k 2 / r 0 2 < ε R (f) p k+1 :=
127 10 Krylov Krylov (Conjugate-Gradient (CG ), Krylov ) MPIBNCpack 10.1 CG (Conjugate-Gradient CG ) A R n n a 11 a 12 a 1n a 21 a 22 a 2n A T = =... a n1 a n2 a nn n a 11 a 21 a n1 a 12 a 22 a n2 = A...
More information第7章 有限要素法のプログラミング
April 3, 2019 1 / 34 7.1 ( ) 2 Poisson 2 / 34 7.2 femfp.c [1] main( ) input( ) assem( ) ecm( ) f( ) solve( ) gs { solve( ) output( ) 3 / 34 7.3 fopen() #include FILE *fopen(char *fname, char
More information1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit)
GNU MP BNCpack tkouya@cs.sist.ac.jp 2002 9 20 ( ) Linux Conference 2002 1 1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit) 10 2 2 3 4 5768:9:; = %? @BADCEGFH-I:JLKNMNOQP R )TSVU!" # %$ & " #
More informationC¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç
C (3) if else switch AND && OR (NOT)! 1 BMI BMI BMI = 10 4 [kg]) ( [cm]) 2 bmi1.c Input your height[cm]: 173.2 Enter Input your weight[kg]: 60.3 Enter Your BMI is 20.1. 10 4 = 10000.0 1 BMI BMI BMI = 10
More information数値計算法
12.1 電気回路網に関するキルヒホッフの法則による解法 1 工学的諸問題を多元連立 1 次方程式で表現することができる. 例えば, 荷物を最短の時間と最低のコストで輸送するためにはどのようなルートで物流を行うか という問題, 工場の部品の在庫の状況からいかに最小のコストで製品をつくるか という問題, 機械要素の運動の問題, 電気回路の解析の問題など, いくつか挙げられる. つまり, 計算機で多元連立方程式を解くことができれば,
More informationTaro-リストⅢ(公開版).jtd
リスト Ⅲ 0. 目次 2. 基本的な操作 2. 1 リストから要素の削除 2. 2 リストの複写 2. 3 リストの連結 2. 4 問題 問題 1 問題 2-1 - 2. 基本的な操作 2. 1 リストから要素の削除 まず 一般的な処理を書き つぎに 特別な処理を書く 一般的な処理は 処理 1 : リスト中に 削除するデータを見つけ 削除する場合への対応 特別な処理は 処理 2 : 先頭のデータを削除する場合への対応
More information-1-1 1 1 1 1 12 31 2 2 3 4
2007 -1-1 1 1 1 1 12 31 2 2 3 4 -2-5 6 CPU 3 Windows98 1 -3-2. 3. -4-4 2 5 1 1 1 -5- 50000 50000 50000 50000 50000 50000 50000 50000 50000 50000-6- -7-1 Windows 2 -8-1 2 3 4 - - 100,000 200,000 500,000
More informationA11 (1993,1994) 29 A12 (1994) 29 A13 Trefethen and Bau Numerical Linear Algebra (1997) 29 A14 (1999) 30 A15 (2003) 30 A16 (2004) 30 A17 (2007) 30 A18
2013 8 29y, 2016 10 29 1 2 2 Jordan 3 21 3 3 Jordan (1) 3 31 Jordan 4 32 Jordan 4 33 Jordan 6 34 Jordan 8 35 9 4 Jordan (2) 10 41 x 11 42 x 12 43 16 44 19 441 19 442 20 443 25 45 25 5 Jordan 26 A 26 A1
More informationkiso2-06.key
座席指定があります Linux を起動して下さい 第6回 計算機基礎実習II 計算機基礎実習II 2018 のウェブページか ら 以下の課題に自力で取り組んで下さい 第5回の復習課題(rev05) 第6回の基本課題(base06) 第5回課題の回答例 ex05-2.c 1. キーボードから整数値 a を入力すると a*a*a の値を出力することを繰り返すプログラムを作成しなさい 2. ただし 入力された
More information11042 計算機言語7回目 サポートページ:
11042 7 :https://goo.gl/678wgm November 27, 2017 10/2 1(print, ) 10/16 2(2, ) 10/23 (3 ) 10/31( ),11/6 (4 ) 11/13,, 1 (5 6 ) 11/20,, 2 (5 6 ) 11/27 (7 12/4 (9 ) 12/11 1 (10 ) 12/18 2 (10 ) 12/25 3 (11
More informationall.dvi
5,, Euclid.,..,... Euclid,.,.,, e i (i =,, ). 6 x a x e e e x.:,,. a,,. a a = a e + a e + a e = {e, e, e } a (.) = a i e i = a i e i (.) i= {a,a,a } T ( T ),.,,,,. (.),.,...,,. a 0 0 a = a 0 + a + a 0
More informationMicrosoft Word - C.....u.K...doc
C uwêííôöðöõ Ð C ÔÖÐÖÕ ÐÊÉÌÊ C ÔÖÐÖÕÊ C ÔÖÐÖÕÊ Ç Ê Æ ~ if eíè ~ for ÒÑÒ ÌÆÊÉÉÊ ~ switch ÉeÍÈ ~ while ÒÑÒ ÊÍÍÔÖÐÖÕÊ ~ 1 C ÔÖÐÖÕ ÐÊÉÌÊ uê~ ÏÒÏÑ Ð ÓÏÖ CUI Ô ÑÊ ÏÒÏÑ ÔÖÐÖÕÎ d ÈÍÉÇÊ ÆÒ Ö ÒÐÑÒ ÊÔÎÏÖÎ d ÉÇÍÊ
More information