Size: px
Start display at page:

Download ""

Transcription

1

2

3 iii,,.,,,,.,.,,. =,,.,,.,.,,,,,,, fortran,.,,,,.,,,

4 iv (i),., 10,, (ii),, fortran, fortran, C,.. (i),., (ii),.,, fortran Pasal,, for, if then else. C., fortran C.,.,,.,.,,.,,.,.,,,,.

5 v iii 1 Gauss Gauss Gauss Gauss ( 1) fortran C Gauss (1) fortran C Gauss (2)

6 vi fortran C Gauss fortran C Gauss Gauss fortran C rank fortran C (1) fortran C fortran

7 vii C fortran C fortran C fortran C fortran C fortran C

8 viii fortran C ([D] ) ([B] ) ([D] ) ([D] ) ([B] ) ((i) ) ((ii) ) (i) (ii)

9 ix fortran merge Lagrange serendipity bubble at enter of element quadrati bubble at enter of eah fae and 1 bubble at enter of element

10

11 1 1 Gauss (1) 1. (2) Gauss. 1.1 Gauss 1. [A], {b, { b 1 b 2 b 3 b = 0 0 (1.1) 1. [A (1) ]=[A], { (1) = {.

12 2 1 Gauss step 1. [A (1) ] {( 4) / 5 1 {{{{ A (1) 21 A (1) 11 3 { 1 / 5 1 {{{{ A (1) 31 A (1) 11 4 { 0 / 5 1 {{{{ A (1) 41 A (1) 11 [A (1) ]{b = { (1), [A (2) ]{b = { (2) b 1 b 2 b 3 b = 0 0 (1.2) step 2. [A (2) ] 2 0 3, 4. {( 3 16 ) / {{{{ { 4 A (2) 23 1 {{ A (2) 24 A (2) 22 / 14 5 {{ A (2) 22 2 [A (2) ]{b = { (2), [A (3) ]{b = { (3).

13 1.1. Gauss b 1 b 2 b 3 b 4 = (1.3) step 3. [A (3) ] {( 4 20 ) / {{{{ A (3) 34 A (3) 44 [A (3) ]{b = { (3), [A (4) ]{b = { (4) b 1 b 2 b 3 b = (1.4) (1.1), 1 1. (forward redution) {b b 4, b 3, b 2, b 1. (bakward substitution)

14 4 1 Gauss step 1. step 2. step 3. step 4. { b 2 = b 3 = 1 {{ (4) 2 { 8 7 {{ (4) 3 ( { b 1 = 0 {{ ( 4) {{ (4) 1 A (4) 12 b 4 = 7 6 {{ (4) 4 ( 16 ) 5 {{ A (4) {{ b 2 20 ) {{ 7 A (4) {{ b 3 1 {{ A (4) 13 / 5 = 7 {{ 6 5 A (4) {{ b 4 1 {{ A (4) {{ b 3 / 15 = 12 {{ 7 5 A (4) {{ b 4 0 {{ A (4) 14 / 14 = {{ A (4) 22 7 / 5 = {{{{ b 4 A (4) 11 (1.5) (1.6) (1.7) (1.8) 1.1.3,. (bakward redution).,. (4,0) i = (4) i. (.,,. )

15 1.1. Gauss 5 step 1. step 2. b 4 = 7 6 {{ (4,0) 4 (4,1) 1 = 0 {{ (4,0) 1 (4,1) 2 = 1 {{ (4,0) 2 (4,1) 3 = 8 7 {{ (4,0) 3 / 5 = {{ A (4) ( {{ A (4) 14 {{ A (4) {{ A (4) {{ b {{ b 4 ) 7 5 {{ b 4 (1.9) = 0 (1.10) = 2 5 = 36 7 (1.11) (1.12) b 3 = 36 7 {{ (4,1) 3 (4,2) 1 = 0 {{ (4,1) 1 (4,2) 2 = 2 5 {{ (4,1) 2 / 15 = {{ A (4) 33 1 {{ A (4) 13 ( 16 5 {{ A (4) {{ b 3 ) 12 5 {{ b 3 = 12 5 = (1.13) (1.14) (1.15) step 3. b 2 = {{ (4,2) 2 (4,3) 1 = 12 5 {{ (4,2) 1 / 14 = {{ A (4) 22 ( 4) {{ A (4) {{ b 2 (1.16) = 8 (1.17)

16 6 1 Gauss step 4. / b 1 = 8 5 = 8 5 {{{{ (4,3) 1 A (4) 11 (1.18),, 6, 6, 4. step,,. loop index,. skyline Gauss, skyline Gauss,, , 1, i, j (i j) C, 0 [P (i, j : C)].

17 j [P (i, j : C)] = (1.19). 1. i C [P (i, j : C)] [A], [A] i [A] j C. 1.1,,, [A], [A] [S], [P n ]. [P n ]...[P 2 ][P 1 ][A] =[S] (1.20), (1.1) (1.20) {{{{{{ step3 step2 step = (1.21).

18 8 1 Gauss step 1. step 2. step (1.22) (1.23) (1.24) [P (i, j : C)] j, i = j +1 n [P (i +1,i: C i+1 )][P (i +2,i: C i+2 )]...[P (u, i : C n )] = i i C i C i C n 1 0 (1.25)

19 1.2. 9, 1, i i +1 C i+1,c i+2,...c n 0.. [P (i, j : C)] [P (i, j : C)], C i+1,c i+2,...c n C i C n 1 0,, [L i ] = (1.26) C i C n 1 0 [L i ]= i i L i+1,i L n,i 1 0 (1.27), L i+j,i = A(i) i+j,i A (i) i,i (1.28)

20 10 1 Gauss [L i ] [L 1 i ] [L 1 i ]. [L 1 i ]= i i L i+1,i L n,i 1 0 (1.29) [A] n, [L 1 i ],, [A (n) ]. [A (2) ]=[L 1 1 ][A(1) ] [S] =[A (n) ],.. [A (n) ]=[L 1 n 1 ][A(n 1) ] (1.30) [L 1 n 1 ]...[L 1 2 ][L 1 1 ][A] =[S] (1.31) (1.1) (1.29), (1.31) [S] [A (1) ]= [L 1 1 ]= 1 0 L 2,1 1 L 3,1 0 1 L 4, L 2,1 = A(1) 2,1 = 4 A (1) 5 1,1 L 3,1 = A(1) 3,1 = 1 5 A (1) 1,1 L 4,1 = A(1) 4,1 = 0 5 =0 A (1) 1,1 (1.32) (1.33)

21 [L 1 1 ][A(1) ]= [L 1 2 ]= [L 1 2 ][A(2) ]= [L 1 3 ]= [L 1 3 ][A(3) ]= =[A (2) ] (1.34) L 3,2 = A(2) 3,2 = 8 A (2) 7 2,2 0 L 3,2 1 L 4,2 = A(2) 4,2 = 5 (1.35) 0 L 4,2 0 1 A (2) 14 2, =[A (3) ] (1.36) L 4,3 = A(3) 4,3 = 4 (1.37) A (3) 3 3,3 0 0 L 4, =[A (4) ]=[S] (1.38) (1.31) [L n 1 ], [L n 2 ],...,[L 2 ], [L 1 ]. [L]. [A] =[L 1 ][L 2 ]...[L n 1 ][S] (1.39) [L] =[L 1 ][L 2 ]...[L n 1 ] (1.40)

22 12 1 Gauss [L],. 1 0 L 2,1 1. L 3,1 L 3,2.. [L] = 1... L i+1,i... 1 L n,1 L n,2... L n,i... L n,n 1 1 (1.41) [L] (1.39) [A] =[L][S] (1.42) [L] [S].. [S],,,, [S] [D] [S] =[D][U]

23 [D], [U],. S 11 S S 1n S [S] = S 0 nn S 11 S 0 11 /S 11 S 12 /S S 1n /S 11 S = 22 S 22 /S S 2n /S S 0 nn S 0 nn /S nn S 11 1 S 0 12 /S S 1n /S 11 S = 22 1 S 2n /S S 0 nn 1 0 (1.43) S 11 0 S [D] = S 0 nn (1.44) 1 S 12 /S S 1n /S 11 1 S [U] = 2n /S (1.45) [U] [L] 1. [A]. [A] =[L][D][U] (1.46), loop index, [A] [U] =[L T ]. [A]

24 14 1 Gauss. 2 [A] =[L][D][L T ]=[U T ][D][U] (1.47) [A] =[L][D][U], 1 [A]{b = {,. [L][D][U]{b = { [D][U]{b =[L 1 ]{ [U]{b =[D 1 ][L 1 ]{ {b =[U 1 ][D 1 ][L 1 ]{ (1.48) [L 1 ]{. {x =[L 1 ]{, {x 1. [L]{x = { (1.49) 1, (forward substitution).. x 1 = 1 (1.50) x 2 = 2 L 21 x 1 (1.51) x 3 = 3 L 31 x 1 L 32 x 2 (1.52)., skyline. 2 [L][D][L T ],, [U T ][D][U].

25 [D 1 ][L 1 ]{. {x, [D 1 ][L 1 ]{ =[D 1 ]{x {y =[D 1 ]{x {y 1. [D]{y = {x (1.53) 1.. y i = x i /D ii (i =1 n) (1.54) [U 1 ][D 1 ][L 1 ]{. {y {b =[U 1 ]{y, {b 1. [U]{b = {y (1.55) 1., (1.48).,,. 1.1 [A (4) ] [S], { (4) {x =[L 1 ]{. (1.1),. 1 0 [L] = [D] = (1.56) (1.57)

26 16 1 Gauss [U] =[L T ]= [L 1 ]=[L 1 n 1 ] [L 1 2 ][L 1 1 ]= (1.58) (1.59) [L 1 ]{ = = 8 = { (4) (1.60) Gauss Gauss.., , ,,, ( ) 3 15 ( ) , 5,, 5.,.

27 1.3. Gauss Gauss , skyline.. 1.2, L [L] = 21 1 (1.61) L 31 L 32 1 L 41 L 42 L 43 1 D 11 0 D [D] = 22 (1.62) D 33 D U 12 U 13 U 14 1 U [U] = 23 U 24 (1.63) 1 U [L], [D], [U] [A] =[L][D][U]. [A] = D 11 D 11 U 12 D 11 U 13 D 11 U 14 L 21 D 11 L 21 D 11 U 12 + D 22 L 21 D 11 U 13 + D 22 U 23 L 21 D 11 U 14 + D 22 U 24 L 31 D 11 L 31 D 11 U 12 + L 32 D 22 L 31 D 11 U 13 + L 32 D 22 U 23 + D 33 L 31 D 11 U 14 + L 32 D 22 U 24 + D 33 U 34 L 41 D 11 L 41 D 11 U 12 + L 42 D 22 L 41 D 11 U 13 + L 42 D 22 U 23 + L 43 D 33 L 41 D 11 U 14 + L 42 D 22 U 24 + L 43 D 33 U 34 + D 44 (1.64)

28 18 1 Gauss. A 11 = D 11 (1.65) A 1i = D 11 U 1i i =2 n (1.66) A i1 = L i1 D 11 i =2 n (1.67) i 2 i 1 A ij = D ii U ij + L ik D kk U kj (i<j: ) (1.68) k=1 j 1 A ij = L ij D jj + L ik D kk U kj (i>j: ) (1.69) k=1 i 1 A ii = D ii + L ik D kk U ki (i = j) (1.70) k= [L], [D], [U]. j =1 D 11 = A 11 (1.71) j =2 U 12 = A 12 /D 11 (1.72) L 21 = A 21 /D 11 D 22 = A 22 L 21 D 11 U 12 (1.73)

29 1.3. Gauss 19 j =3 U 13 = A 13 /D 11 (1.74) L 31 = A 31 /D 11 U 23 =(A 23 L 21 D 11 U 13 )/D 22 (1.75) L 32 =(A 32 L 31 D 11 U 12 )/D 22 D 33 = A 33 L 31 D 11 U 13 L 32 D 22 U 23 (1.76).. for j =1 D 11 = A 11 for j =2 U 12 = A 12 /D 11 L 21 = A 21 /D 11 D 22 = A 22 L 21 D 11 U 12 for j =3 n U 1j = A 1j /D 11 L j1 = A j1 /D 11 for i =2 j 1 for k =1 i 1 temp U = temp U + L ik D kk U kj temp L = temp L + L jk D kk U ki end for

30 20 1 Gauss U ij =(A ij temp U)/D ii L ji =(A ji temp L)/D ii end for for k =1 j 1 temp = temp + L jk D kk U kj end for D jj = A jj temp end for.,., 1,. ( ) for i =1 x 1 = 1 for i =2 n for j =1 i 1 temp = temp + L ij x j end for x i = i temp end for for i =1 n end for y i = x i /D ii

31 1.3. Gauss 21 ( ) for j = n b n = y n for j = n 2 step = 1 for i =1 j 1 y i = y i U ij b j end for b j 1 = y j 1 end for 1.1,,. skyline. 1.1:

32 22 1 Gauss Gauss ( 1). (1). [A] n n n..... n n n... n (2) {b = {1, 2,...,n T [A]{b = { {. (3) [A]{b = { 1 {b, {1, 2,...,n T. (4) , pu time.. n.. A a 2 n,n b b 1 n 1 n L al 2 n,n D ad 2 n,n U au 2 n,n x x 1 n y y 1 n

33 1.3. Gauss 23,. 2, fortran fortran. init gauss gauss ver1. Makefile FC = g77 F_OPT = -O2 OBJS = main.o mis.o gauss_ver1.o TARGET = gauss_ver1 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $< main.f gauss elimination ver. 1 by WATANABE Hiroshi (2000 June) impliit real*8(a-h,o-z) parameter(n = 1000) parameter(i_hek = 1) dimension a(n,n),b(n),(n),al(n,n),au(n,n),ad(n,n),x(n),y(n) all init(a,b,,n) if (i_hek.ge. 2) all hek_matrix(a,b,,n) all gauss_ver1(a,b,,al,au,ad,x,y,n)

34 24 1 Gauss if (i_hek.ge. 1) all hek_solution(b,n) stop end mis.f ####################################################################### subroutine init(a,b,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),b(*),(*) do i = 1,n do j = 1,i a(i,j) = dfloat(i) a(j,i) = dfloat(i) do i = 1,n b(i) = dfloat(i) do i = 1,n temp = 0.D0 do j = 1,n temp = temp + a(i,j) * b(j) (i) = temp return end ####################################################################### subroutine hek_matrix(a,b,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),b(*),(*) write(*,*) matrix A do i = 1,n

35 1.3. Gauss 25 write(*,1000) (a(i,j),j=1,n) write(*,*) vetor b write(*,1000) (b(i),i=1,n) write(*,*) vetor write(*,1000) ((i),i=1,n) 1000 format(8e10.3) return end ####################################################################### subroutine hek_solution(b,n) ####################################################################### impliit real*8(a-h,o-z) dimension b(*) write(*,*) solution vetor b write(*,1000) (b(i),i=1,n) 1000 format(8e10.3) return end gauss ver1.f ####################################################################### subroutine gauss_ver1(a,b,,al,au,ad,x,y,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),b(*),(*),al(n,*),au(n,*),ad(n,*),x(*),y(*) ad(1,1) = a(1,1) au(1,2) = a(1,2) / ad(1,1) al(2,1) = a(2,1) / ad(1,1) ad(2,2) = a(2,2) - al(2,1) * ad(1,1) * au(1,2) do j = 3,n au(1,j) = a(1,j) / ad(1,1) al(j,1) = a(j,1) / ad(1,1)

36 26 1 Gauss do i = 2, j-1 temp_u = 0.d0 temp_l = 0.d0 do k = 1, i-1 temp_u = temp_u 1 + al(i,k) * ad(k,k) * au(k,j) temp_l = temp_l 1 + al(j,k) * ad(k,k) * au(k,i) au(i,j) = (a(i,j) - temp_u) / ad(i,i) al(j,i) = (a(j,i) - temp_l) / ad(i,i) temp = 0.d0 do k = 1,j-1 temp = temp + al(j,k) * ad(k,k) * au(k,j) ad(j,j) = a(j,j) - temp x(1) = (1) do i = 2,n temp = 0.d0 do j = 1,i-1 temp = temp + al(i,j) * x(j) x(i) = (i) - temp do i = 1,n y(i) = x(i) / ad(i,i) b(n) = y(n) do j = n,2,-1 do i = 1,j-1 y(i) = y(i) - au(i,j) * b(j) b(j-1) = y(j-1) return end

37 1.3. Gauss C C, 1, C 0., n x i x, x 1 = x[0], x 2 = x[1],, x n = x[n-1],.,. (1), 0. (2) 0. (1) C, 0,.,.,, 1, 1,,. (2), fortran,,.,.,, C,.,,,,,,., x i (x 1 =1.0,x 2 = 2.0,x 3 =3.0,,x n = n) 1 x.

38 28 1 Gauss double *x; x = (double *)mallo(sizeof(double)*n); for (i = 0; i < n; ++i){ x[i] = (double)(i+1);, x i = i = x[i-1]... mallo x, x, *(x), x[0], x., xx, x 1. *(xx+1) *(x)., xx[1], x[0]. xx 1 n.. xx x, x i = i = x[i-1] = xx[i]. double *x, *xx; x = (double *)mallo(sizeof(double)*n); xx = x - 1; for (i = 1; i <= n; ++i){ xx[i] = (double)(i); 2, 1..

39 1.3. Gauss [A] = , fortran,, 1 a[0] a[n-1], 2 a[0 + n] a[n-1 + n]., i j i 1+(j 1) n, a[i-1+(j-1)*n]. double *a; a = (double *)mallo(sizeof(double)*n*n); for (j = 0; j < n; ++j){ for (i = 0; i < n; ++i){ a[i + j * n] = (double)((i+1)*10 + (j+1));, aa, a 1+n. *(aa+1+1*n) *(a),, aa[i+j*n], a[(i-1)+(j-1)*n].. double *a, *aa; a = (double *)mallo(sizeof(double)*n*n); aa = a - n - 1; for (j = 1; j <= n; ++j){ for (i = 1; i <= n; ++i){ aa[i + j * n] = (double)(i*10 + j);

40 30 1 Gauss,. init gauss gauss ver1. Makefile CC = g C_OPT = -O2 OBJS = main.o mis.o gauss_ver1.o TARGET = gauss_ver1 $(TARGET):$(OBJS) $(CC) $(C_OPT) -o $(TARGET) $(OBJS)..o: $(CC) - $(C_OPT) $< main. /* gauss elimination ver. 1 by WATANABE Hiroshi (2000 July) */ #inlude <stdio.h> #define N 1000 #define I_CHECK 1 void init(double *a, double *b, double *, int n); void hek_matrix(double *a, double *b, double *, int n); void gauss_ver1(double *a, double *b, double *, double *al, double *au, double *ad, double *x, double *y, int n); void hek_solution(double *b, int n); main() { double *a,*b,*,*al,*au,*ad,*x,*y; int n;

41 1.3. Gauss 31 n = N; a = (double *)mallo(sizeof(double)*n*n); al = (double *)mallo(sizeof(double)*n*n); au = (double *)mallo(sizeof(double)*n*n); ad = (double *)mallo(sizeof(double)*n*n); b = (double *)mallo(sizeof(double)*n); = (double *)mallo(sizeof(double)*n); x = (double *)mallo(sizeof(double)*n); y = (double *)mallo(sizeof(double)*n); init(a,b,,n); if (I_CHECK >= 2) hek_matrix(a,b,,n); gauss_ver1(a,b,,al,au,ad,x,y,n); if (I_CHECK >= 1) hek_solution(b,n); mis. void init(double *arg_a, double *arg_b, double *arg_, int n) { double *a, *b, *; int i,j, ij, ji; double temp; a = arg_a-1-n; b = arg_b-1; = arg_-1; for (i = 1; i <= n; ++i){ for (j = 1; j <= n; ++j){ a[i+j*n] = (double)(i); a[j+i*n] = (double)(i); for (i = 1; i <= n; ++i){ b[i] = (double)(i); for (i = 1; i <= n; ++i){ temp = 0.0;

42 32 1 Gauss for (j = 1; j <= n; ++j){ temp = temp + a[i+j*n] * b[j]; [i] = temp; void hek_matrix(double *arg_a, double *arg_b, double *arg_, int n) { double *a, *b, *; int i,j; a = arg_a-1-n; b = arg_b-1; = arg_-1; printf("matrix A\n"); for (i = 1; i <= n; ++i){ for (j = 1; j <= n; ++j) printf("% 10.3E",a[i+j*n]); printf("\n"); printf("vetor b\n"); for (i = 1; i <= n; ++i) printf("% 10.3E",b[i]); printf("\n"); printf("vetor \n"); for (i = 1; i <= n; ++i) printf("% 10.3E",[i]); printf("\n"); void hek_solution(double *arg_b, int n) { double *b; int i; b = arg_b-1; printf("solution vetor b\n"); for (i = 1; i <= n; ++i) printf("% 10.3E",b[i]); printf("\n"); gauss ver1. void gauss_ver1(double *arg_a, double *arg_b, double *arg_, double *arg_al, double *arg_au, double *arg_ad, double *arg_x, double *arg_y, int n) {

43 1.3. Gauss 33 double *a, *b, *, *al, *au, *ad, *x, *y; int i, j, k; double temp_u, temp_l, temp; a = arg_a -1-n; al = arg_al-1-n; au = arg_au-1-n; ad = arg_ad-1-n; b = arg_b-1; = arg_-1; x = arg_x-1; y = arg_y-1; ad[1+1*n] = a[1+1*n]; au[1+2*n] = a[1+2*n] / ad[1+1*n]; al[2+1*n] = a[2+2*n] / ad[1+1*n]; ad[2+2*n] = a[2+2*n] - al[2+1*n] * ad[1+1*n] * au[1+2*n]; for (j = 3; j <= n; ++j){ au[1+j*n] = a[1+j*n] / ad[1+1*n]; al[j+1*n] = a[j+1*n] / ad[1+1*n]; for (i = 2; i <= j-1; ++i){ temp_u = 0.0; temp_l = 0.0; for (k = 1; k <= i-1; ++k){ temp_u = temp_u + al[i+k*n] * ad[k+k*n] * au[k+j*n]; temp_l = temp_l + al[j+k*n] * ad[k+k*n] * au[k+i*n]; au[i+j*n] = (a[i+j*n] - temp_u) / ad[i+i*n]; al[j+i*n] = (a[j+i*n] - temp_l) / ad[i+i*n]; temp = 0.0; for (k = 1; k <= j-1; ++k){ temp = temp + al[j+k*n] * ad[k+k*n] * au[k+j*n]; ad[j+j*n] = a[j+j*n] - temp; x[1] = [1]; for (i = 2; i <= n; ++i){ temp = 0.0; for (j = 1; j <= i-1; ++j){ temp = temp + al[i+j*n] * x[j];

44 34 1 Gauss x[i] = [i] - temp; for (i = 1; i <= n; ++i){ y[i] = x[i] / ad[i+i*n]; b[n] = y[n]; for (j = n; j >= 2; --j){ for (i = 1; i <= j-1; ++i){ y[i] = y[i] - au[i+j*n] * b[j]; b[j-1] = y[j-1]; 1.4 Gauss (1),,.., , 1.

45 1.4. Gauss (1) 35 x(1) = (1) (1.77) temp = 0.D0 (1.78) temp = al(2, 1)x(1) (1.79) x(2) = (2) temp (1.80) temp = 0.D0 (1.81) temp = al(3, 1)x(1) + al(3, 2)x(2) (1.82) x(3) = (3) temp (1.83). x(i), x(1),...,x(i 1) (i), (1),...,(i 1)., x(i) (i) x. y,. 2.1 ( { ) Gauss, pu time OS fortran fortran. gauss ver1 gauss ver21. Makefile

46 36 1 Gauss FC = g77 F_OPT = -O2 OBJS = main.o mis.o gauss_ver21.o TARGET = gauss_ver21 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $< main.f gauss elimination ver. 2.1 by WATANABE Hiroshi (2000 June) impliit real*8(a-h,o-z) parameter(n = 1000) parameter(i_hek = 1) dimension a(n,n),b(n),(n),al(n,n),au(n,n),ad(n,n) all init(a,b,,n) if (i_hek.ge. 2) all hek_matrix(a,b,,n) all gauss_ver21(a,,al,au,ad,n) if (i_hek.ge. 1) all hek_solution(,n) stop end mis.f gauss ver1 gauss ver21.f ####################################################################### subroutine gauss_ver21(a,,al,au,ad,n) #######################################################################

47 1.4. Gauss (1) 37 impliit real*8(a-h,o-z) dimension a(n,*),(*),al(n,*),au(n,*),ad(n,*) ad(1,1) = a(1,1) au(1,2) = a(1,2) / ad(1,1) al(2,1) = a(2,1) / ad(1,1) ad(2,2) = a(2,2) - al(2,1) * ad(1,1) * au(1,2) do j = 3,n au(1,j) = a(1,j) / ad(1,1) al(j,1) = a(j,1) / ad(1,1) do i = 2, j-1 temp_u = 0.d0 temp_l = 0.d0 do k = 1, i-1 temp_u = temp_u 1 + al(i,k) * ad(k,k) * au(k,j) temp_l = temp_l 1 + al(j,k) * ad(k,k) * au(k,i) au(i,j) = (a(i,j) - temp_u) / ad(i,i) al(j,i) = (a(j,i) - temp_l) / ad(i,i) temp = 0.d0 do k = 1,j-1 temp = temp + al(j,k) * ad(k,k) * au(k,j) ad(j,j) = a(j,j) - temp do i = 2,n temp = 0.d0 do j = 1,i-1 temp = temp + al(i,j) * (j) (i) = (i) - temp do i = 1,n (i) = (i) / ad(i,i)

48 38 1 Gauss do j = n,2,-1 do i = 1,j-1 (i) = (i) - au(i,j) * (j) return end C C. gauss ver1 gauss ver21. Makefile CC = g C_OPT = -O2 OBJS = main.o mis.o gauss_ver21.o TARGET = gauss_ver21 $(TARGET):$(OBJS) $(CC) $(C_OPT) -o $(TARGET) $(OBJS)..o: $(CC) - $(C_OPT) $< main. /* gauss elimination ver. 2.1 by WATANABE Hiroshi (2000 July) */ #inlude <stdio.h> #define N 1000 #define I_CHECK 1 void init(double *a, double *b, double *, int n); void hek_matrix(double *a, double *b, double *, int n);

49 1.4. Gauss (1) 39 void gauss_ver21(double *a, double *, double *al, double *au, double *ad, int n); void hek_solution(double *b, int n); main() { double *a,*b,*,*al,*au,*ad; int n; n = N; a = (double *)mallo(sizeof(double)*n*n); al = (double *)mallo(sizeof(double)*n*n); au = (double *)mallo(sizeof(double)*n*n); ad = (double *)mallo(sizeof(double)*n*n); b = (double *)mallo(sizeof(double)*n); = (double *)mallo(sizeof(double)*n); init(a,b,,n); if (I_CHECK >= 2) hek_matrix(a,b,,n); gauss_ver21(a,,al,au,ad,n); if (I_CHECK >= 1) hek_solution(b,n); mis. gauss ver1 gauss ver21. void gauss_ver21(double *arg_a, double *arg_, double *arg_al, double *arg_au, double *arg_ad, int n) { double *a, *, *al, *au, *ad; int i, j, k; double temp_u, temp_l, temp; a = arg_a -1-n; al = arg_al-1-n; au = arg_au-1-n; ad = arg_ad-1-n; = arg_-1;

50 40 1 Gauss ad[1+1*n] = a[1+1*n]; au[1+2*n] = a[1+2*n] / ad[1+1*n]; al[2+1*n] = a[2+2*n] / ad[1+1*n]; ad[2+2*n] = a[2+2*n] - al[2+1*n] * ad[1+1*n] * au[1+2*n]; for (j = 3; j <= n; ++j){ au[1+j*n] = a[1+j*n] / ad[1+1*n]; al[j+1*n] = a[j+1*n] / ad[1+1*n]; for (i = 2; i <= j-1; ++i){ temp_u = 0.0; temp_l = 0.0; for (k = 1; k <= i-1; ++k){ temp_u = temp_u + al[i+k*n] * ad[k+k*n] * au[k+j*n]; temp_l = temp_l + al[j+k*n] * ad[k+k*n] * au[k+i*n]; au[i+j*n] = (a[i+j*n] - temp_u) / ad[i+i*n]; al[j+i*n] = (a[j+i*n] - temp_l) / ad[i+i*n]; temp = 0.0; for (k = 1; k <= j-1; ++k){ temp = temp + al[j+k*n] * ad[k+k*n] * au[k+j*n]; ad[j+j*n] = a[j+j*n] - temp; for (i = 2; i <= n; ++i){ temp = 0.0; for (j = 1; j <= i-1; ++j){ temp = temp + al[i+j*n] * [j]; [i] = [i] - temp; for (i = 1; i <= n; ++i){ [i] = [i] / ad[i+i*n]; for (j = n; j >= 2; --j){ for (i = 1; i <= j-1; ++i){ [i] = [i] - au[i+j*n] * [j];

51 1.5. Gauss (2) Gauss (2) Gauss,. 1.2(a) A 11,. j D kk j U kj k =1 k =2. j i L ik k =1 k = i 1 U ij k = i 1 (a) (b) 1.2: U ij (i j) A ij, 1.2(b) U kj (k =1 i 1),L ik (k =1 i 1),D kk (k =1 i 1), [A].,. U kj,l ik,d kk, [U], [L]. [A] [D], [U], [L]

52 42 1 Gauss [U], [D], [L] pu time OS fortran fortran. gauss ver21 gauss ver22. Makefile FC = g77 F_OPT = -O2 OBJS = main.o mis.o gauss_ver22.o TARGET = gauss_ver22 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $< main.f gauss elimination ver. 2.2 by WATANABE Hiroshi (2000 June) impliit real*8(a-h,o-z) parameter(n = 1000) parameter(i_hek = 1) dimension a(n,n),b(n),(n)

53 1.5. Gauss (2) 43 all init(a,b,,n) if (i_hek.ge. 2) all hek_matrix(a,b,,n) all gauss_ver22(a,,n) if (i_hek.ge. 1) all hek_solution(,n) stop end mis.f gauss ver1 gauss ver22.f ####################################################################### subroutine gauss_ver22(a,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),(*) a(1,1) = a(1,1) a(1,2) = a(1,2) / a(1,1) a(2,1) = a(2,1) / a(1,1) a(2,2) = a(2,2) - a(2,1) * a(1,1) * a(1,2) do j = 3,n a(1,j) = a(1,j) / a(1,1) a(j,1) = a(j,1) / a(1,1) do i = 2, j-1 temp_u = 0.d0 temp_l = 0.d0 do k = 1, i-1 temp_u = temp_u 1 + a(i,k) * a(k,k) * a(k,j) temp_l = temp_l 1 + a(j,k) * a(k,k) * a(k,i) a(i,j) = (a(i,j) - temp_u) / a(i,i) a(j,i) = (a(j,i) - temp_l) / a(i,i)

54 44 1 Gauss temp = 0.d0 do k = 1,j-1 temp = temp + a(j,k) * a(k,k) * a(k,j) a(j,j) = a(j,j) - temp do i = 2,n temp = 0.d0 do j = 1,i-1 temp = temp + a(i,j) * (j) (i) = (i) - temp do i = 1,n (i) = (i) / a(i,i) do j = n,2,-1 do i = 1,j-1 (i) = (i) - a(i,j) * (j) return end C C. gauss ver21 gauss ver22. Makefile CC = g C_OPT = -O2 OBJS = main.o mis.o gauss_ver22.o

55 1.5. Gauss (2) 45 TARGET = gauss_ver22 $(TARGET):$(OBJS) $(CC) $(C_OPT) -o $(TARGET) $(OBJS)..o: $(CC) - $(C_OPT) $< main. /* gauss elimination ver. 2.2 by WATANABE Hiroshi (2000 July) */ #inlude <stdio.h> #define N 1000 #define I_CHECK 1 void init(double *a, double *b, double *, int n); void hek_matrix(double *a, double *b, double *, int n); void gauss_ver22(double *a, double *, int n); void hek_solution(double *b, int n); main() { double *a,*b,*; int n; n = N; a b = (double *)mallo(sizeof(double)*n*n); = (double *)mallo(sizeof(double)*n); = (double *)mallo(sizeof(double)*n); init(a,b,,n); if (I_CHECK >= 2) hek_matrix(a,b,,n); gauss_ver22(a,,n); if (I_CHECK >= 1) hek_solution(b,n); mis. gauss ver1

56 46 1 Gauss gauss ver22. void gauss_ver22(double *arg_a, double *arg_, int n) { double *a, *; int i, j, k; double temp_u, temp_l, temp; a = arg_a -1-n; = arg_-1; a[1+2*n] = a[1+2*n] / a[1+1*n]; a[2+1*n] = a[2+2*n] / a[1+1*n]; a[2+2*n] = a[2+2*n] - a[2+1*n] * a[1+1*n] * a[1+2*n]; for (j = 3; j <= n; ++j){ a[1+j*n] = a[1+j*n] / a[1+1*n]; a[j+1*n] = a[j+1*n] / a[1+1*n]; for (i = 2; i <= j-1; ++i){ temp_u = 0.0; temp_l = 0.0; for (k = 1; k <= i-1; ++k){ temp_u = temp_u + a[i+k*n] * a[k+k*n] * a[k+j*n]; temp_l = temp_l + a[j+k*n] * a[k+k*n] * a[k+i*n]; a[i+j*n] = (a[i+j*n] - temp_u) / a[i+i*n]; a[j+i*n] = (a[j+i*n] - temp_l) / a[i+i*n]; temp = 0.0; for (k = 1; k <= j-1; ++k){ temp = temp + a[j+k*n] * a[k+k*n] * a[k+j*n]; a[j+j*n] = a[j+j*n] - temp; for (i = 2; i <= n; ++i){ temp = 0.0; for (j = 1; j <= i-1; ++j){ temp = temp + a[i+j*n] * [j]; [i] = [i] - temp; for (i = 1; i <= n; ++i){ [i] = [i] / a[i+i*n];

57 1.6. Gauss 47 for (j = n; j >= 2; --j){ for (i = 1; i <= j-1; ++i){ [i] = [i] - a[i+j*n] * [j]; 1.6 Gauss ,,. i =1 U ij. U 1j = A 1j /D 11 U 2j =(A 2j L 21 D 11 U 1j )/D 22 U 3j =(A 3j L 31 D 11 U 1j L 32 D 22 U 2j )/D 33. U ij =(A ij L i1 D 11 U 1j L i2 D 22 U 2j... L ii 1 D i 1i 1 U i 1j )/D ii U i+1j =(A i+1j L i+11 D 11 U 1j L i+12 D 22 U 2j... L i+1i D ii U ij )/D i+1i+1 (1.84), i =2, U ij U kj (k =1 i 1) D kk, U kj., (D kk U kj ), (L jk D kk ), U ij,l ji,. for j =1 D 11 = A 11

58 48 1 Gauss j k =1. i i +1 D kk L ik L i+1k U kj U ij U i+1j k = i 1 1.3: for j =2 U 12 = A 12 /D 11 L 21 = A 21 /D 11 D 22 = A 22 L 21 D 11 U 12 for j =3 n for i =2 j 1 for k =1 i 1 temp U = temp U + L ik (D kk U kj ) temp L = temp L +(L jk D kk )U ki end for

59 1.6. Gauss 49 (D ii U ij )=A ij temp U (L ji D ii )=A ji temp L end for for i =1 j 1 U ij =(D ii U ij )/D ii L ji =(L ji D ii )/D ii end for for k =1 j 1 temp = temp + L jk D kk U kj end for D jj = A jj temp end for pu time (D kk U kj ), (L jk D kk ) U kj, L jk, A. OS fortran fortran. gauss ver22 gauss ver3. Makefile FC = g77 F_OPT = -O2

60 50 1 Gauss OBJS = main.o mis.o gauss_ver3.o TARGET = gauss_ver3 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $< main.f gauss elimination ver. 3 by WATANABE Hiroshi (2000 May) impliit real*8(a-h,o-z) parameter(n = 1000) parameter(i_hek = 1) dimension a(n,n),b(n),(n) all init(a,b,,n) if (i_hek.ge. 2) all hek_matrix(a,b,,n) all gauss_ver3(a,,n) if (i_hek.ge. 1) all hek_solution(,n) stop end mis.f gauss ver1 gauss ver3.f ####################################################################### subroutine gauss_ver3(a,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),(*)

61 1.6. Gauss 51 a(1,2) = a(1,2) / a(1,1) a(2,1) = a(2,1) / a(1,1) a(2,2) = a(2,2) - a(2,1) * a(1,1) * a(1,2) do j = 3,n do i = 2, j-1 temp_u = 0.d0 temp_l = 0.d0 do k = 1, i-1 temp_u = temp_u + a(i,k) * a(k,j) temp_l = temp_l + a(j,k) * a(k,i) a(i,j) = a(i,j) - temp_u a(j,i) = a(j,i) - temp_l do i = 1,j-1 a(i,j) = a(i,j) / a(i,i) a(j,i) = a(j,i) / a(i,i) temp = 0.d0 do k = 1,j-1 temp = temp + a(j,k) * a(k,k) * a(k,j) a(j,j) = a(j,j) - temp do i = 2,n do j = 1,i-1 (i) = (i) - a(i,j) * (j) do i = 1,n (i) = (i) / a(i,i) do j = n,2,-1 do i = 1,j-1 (i) = (i) - a(i,j) * (j) return end

62 52 1 Gauss C C. gauss ver22 gauss ver3. Makefile CC = g C_OPT = -O2 OBJS = main.o mis.o gauss_ver3.o TARGET = gauss_ver3 $(TARGET):$(OBJS) $(CC) $(C_OPT) -o $(TARGET) $(OBJS)..o: $(CC) - $(C_OPT) $< main. /* gauss elimination ver. 3 by WATANABE Hiroshi (2000 July) */ #inlude <stdio.h> #define N 1000 #define I_CHECK 1 void init(double *a, double *b, double *, int n); void hek_matrix(double *a, double *b, double *, int n); void gauss_ver3(double *a, double *, int n); void hek_solution(double *b, int n); main() { double *a,*b,*; int n;

63 1.6. Gauss 53 n = N; a b = (double *)mallo(sizeof(double)*n*n); = (double *)mallo(sizeof(double)*n); = (double *)mallo(sizeof(double)*n); init(a,b,,n); if (I_CHECK >= 2) hek_matrix(a,b,,n); gauss_ver3(a,,n); if (I_CHECK >= 1) hek_solution(b,n); mis. gauss ver1 gauss ver3. void gauss_ver3(double *arg_a, double *arg_, int n) { double *a, *; int i, j, k; double temp_u, temp_l, temp; a = arg_a -1-n; = arg_-1; a[1+2*n] = a[1+2*n] / a[1+1*n]; a[2+1*n] = a[2+2*n] / a[1+1*n]; a[2+2*n] = a[2+2*n] - a[2+1*n] * a[1+1*n] * a[1+2*n]; for (j = 3; j <= n; ++j){ for (i = 2; i <= j-1; ++i){ temp_u = 0.0; temp_l = 0.0; for (k = 1; k <= i-1; ++k){ temp_u = temp_u + a[i+k*n] * a[k+j*n]; temp_l = temp_l + a[j+k*n] * a[k+i*n]; a[i+j*n] = a[i+j*n] - temp_u; a[j+i*n] = a[j+i*n] - temp_l;

64 54 1 Gauss for (i = 1; i <= j-1; ++i){ a[i+j*n] = a[i+j*n] / a[i+i*n]; a[j+i*n] = a[j+i*n] / a[i+i*n]; temp = 0.0; for (k = 1; k <= j-1; ++k){ temp = temp + a[j+k*n] * a[k+k*n] * a[k+j*n]; a[j+j*n] = a[j+j*n] - temp; for (i = 2; i <= n; ++i){ temp = 0.0; for (j = 1; j <= i-1; ++j){ temp = temp + a[i+j*n] * [j]; [i] = [i] - temp; for (i = 1; i <= n; ++i){ [i] = [i] / a[i+i*n]; for (j = n; j >= 2; --j){ for (i = 1; i <= j-1; ++i){ [i] = [i] - a[i+j*n] * [j]; 1.7 Gauss Gauss [A] [A] =[L][D][L T ]=[U T ][D][U]. 3,. [U].

65 1.7. Gauss Gauss 55 for j =1 D 11 = A 11 for j =2 U 12 = A 12 /D 11 D 22 = A 22 U 12 D 11 U 12 for j =3 n for i =1 j 1 for k =1 i 1 temp = temp + U ki (D kk U kj ) end for D ii U ij = A ij temp end for for i =1 j 1 U ij = D ii U ij /D ii end for for i =1 j 1 temp = temp + U ij D ii U ij end for D jj = A jj temp end for 4, Gauss. [U] [L], pu time. 3.

66 56 1 Gauss fortran fortran. gauss_ver4l [L], gauss_ver4u [U]., pu time..,, CPU., CPU,,..,. fortran 2 1. a(i, j), a n (j 1) n + i. a(i +1,j) a(i, j +1) a(i, j) a(i +1,j) a(i, j +1) n.. Makefile FC = g77 F_OPT = -O2 OBJS = main.o mis.o gauss_ver4l.o gauss_ver4u.o TARGET = gauss_ver4 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $<

67 1.7. Gauss Gauss 57 j a(1,j) a(1,j). a(i, j) a(i, j +1) a(i +1,j). (j 1) n n n a(1,j) a(1,j). a(i, j) a(i +1,j).. a(i, j +1). 1.4: main.f gauss elimination ver. 4l, 4u by WATANABE Hiroshi (2000 June) impliit real*8(a-h,o-z) parameter(n = 1000) parameter(i_hek = 1) dimension a(n,n),b(n),(n) all init(a,b,,n) if (i_hek.ge. 2) all hek_matrix(a,b,,n) all gauss_ver4l(a,,n) all gauss_ver4u(a,,n)

68 58 1 Gauss if (i_hek.ge. 1) all hek_solution(,n) stop end mis.f gauss ver1 gauss ver4l.f ####################################################################### subroutine gauss_ver4l(a,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),(*) a(2,1) = a(2,1) / a(1,1) a(2,2) = a(2,2) - a(2,1) * a(1,1) * a(2,1) do j = 3,n do i = 2, j-1 temp_l = 0.d0 do k = 1, i-1 temp_l = temp_l + a(j,k) * a(i,k) a(j,i) = a(j,i) - temp_l do i = 1,j-1 a(j,i) = a(j,i) / a(i,i) temp = 0.d0 do k = 1,j-1 temp = temp + a(j,k) * a(k,k) * a(j,k) a(j,j) = a(j,j) - temp do i = 2,n do j = 1,i-1 (i) = (i) - a(i,j) * (j)

69 1.7. Gauss Gauss 59 do i = 1,n (i) = (i) / a(i,i) do j = n,2,-1 do i = 1,j-1 (i) = (i) - a(j,i) * (j) return end gauss ver4u.f ####################################################################### subroutine gauss_ver4u(a,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),(*) a(1,2) = a(1,2) / a(1,1) a(2,2) = a(2,2) - a(1,2) * a(1,1) * a(1,2) do j = 3,n do i = 2, j-1 temp_u = 0.d0 do k = 1, i-1 temp_u = temp_u + a(k,i) * a(k,j) a(i,j) = a(i,j) - temp_u do i = 1,j-1 a(i,j) = a(i,j) / a(i,i) temp = 0.d0 do k = 1,j-1 temp = temp + a(k,j) * a(k,k) * a(k,j) a(j,j) = a(j,j) - temp

70 60 1 Gauss do i = 2,n do j = 1,i-1 (i) = (i) - a(j,i) * (j) do i = 1,n (i) = (i) / a(i,i) do j = n,2,-1 do i = 1,j-1 (i) = (i) - a(i,j) * (j) return end C fortran. gauss_ver4l [L], gauss_ver4u [U]. Makefile CC = g C_OPT = -O2 OBJS = main.o mis.o gauss_ver4l.o gauss_ver4u.o TARGET = gauss_ver4 $(TARGET):$(OBJS) $(CC) $(C_OPT) -o $(TARGET) $(OBJS)..o: $(CC) - $(C_OPT) $< main.

71 1.7. Gauss Gauss 61 /* gauss elimination ver. 4l, 4u by WATANABE Hiroshi (2000 July) */ #inlude <stdio.h> #define N 1000 #define I_CHECK 1 void init(double *a, double *b, double *, int n); void hek_matrix(double *a, double *b, double *, int n); void gauss_ver4l(double *a, double *, int n); void gauss_ver4u(double *a, double *, int n); void hek_solution(double *b, int n); main() { double *a,*b,*; int n; n = N; a b = (double *)mallo(sizeof(double)*n*n); = (double *)mallo(sizeof(double)*n); = (double *)mallo(sizeof(double)*n); init(a,b,,n); if (I_CHECK >= 2) hek_matrix(a,b,,n); /* gauss_ver4l(a,,n); */ gauss_ver4u(a,,n); if (I_CHECK >= 1) hek_solution(b,n); mis. gauss ver1 gauss ver4l. void gauss_ver4l(double *arg_a, double *arg_, int n) { double *a, *; int i, j, k; double temp_u, temp_l, temp;

72 62 1 Gauss a = arg_a -1-n; = arg_-1; a[2+1*n] = a[2+2*n] / a[1+1*n]; a[2+2*n] = a[2+2*n] - a[2+1*n] * a[1+1*n] * a[2+1*n]; for (j = 3; j <= n; ++j){ for (i = 2; i <= j-1; ++i){ temp_l = 0.0; for (k = 1; k <= i-1; ++k){ temp_l = temp_l + a[j+k*n] * a[i+k*n]; a[j+i*n] = a[j+i*n] - temp_l; for (i = 1; i <= j-1; ++i){ a[j+i*n] = a[j+i*n] / a[i+i*n]; temp = 0.0; for (k = 1; k <= j-1; ++k){ temp = temp + a[j+k*n] * a[k+k*n] * a[j+k*n]; a[j+j*n] = a[j+j*n] - temp; for (i = 2; i <= n; ++i){ temp = 0.0; for (j = 1; j <= i-1; ++j){ temp = temp + a[i+j*n] * [j]; [i] = [i] - temp; for (i = 1; i <= n; ++i){ [i] = [i] / a[i+i*n]; for (j = n; j >= 2; --j){ for (i = 1; i <= j-1; ++i){ [i] = [i] - a[j+i*n] * [j];

73 1.7. Gauss Gauss 63 gauss ver4u. void gauss_ver4u(double *arg_a, double *arg_, int n) { double *a, *; int i, j, k; double temp_u, temp_l, temp; a = arg_a-1-n; = arg_-1; a[1+2*n] = a[1+2*n] / a[1+1*n]; a[2+2*n] = a[2+2*n] - a[1+2*n] * a[1+1*n] * a[1+2*n]; for (j = 3; j <= n; ++j){ for (i = 2; i <= j-1; ++i){ temp_u = 0.0; temp_l = 0.0; for (k = 1; k <= i-1; ++k){ temp_u = temp_u + a[k+i*n] * a[k+j*n]; a[i+j*n] = a[i+j*n] - temp_u; for (i = 1; i <= j-1; ++i){ a[i+j*n] = a[i+j*n] / a[i+i*n]; temp = 0.0; for (k = 1; k <= j-1; ++k){ temp = temp + a[k+j*n] * a[k+k*n] * a[k+j*n]; a[j+j*n] = a[j+j*n] - temp; for (i = 2; i <= n; ++i){ temp = 0.0; for (j = 1; j <= i-1; ++j){ temp = temp + a[j+i*n] * [j]; [i] = [i] - temp; for (i = 1; i <= n; ++i){ [i] = [i] / a[i+i*n];

74 64 1 Gauss for (j = n; j >= 2; --j){ for (i = 1; i <= j-1; ++i){ [i] = [i] - a[i+j*n] * [j]; ,., x 1 n +1 ( m i (i =1 n + 1)) n ( k i (i =1 n)). x i, f i (i =1 n +1),. m 1 ü 1 = f 1 + k 1 (u 2 u 1 ) m 2 ü 2 = f 2 + k 1 (u 1 u 2 ) + k 2 (u 3 u 2 ) m 3 ü 3 = f 3 + k 2 (u 2 u 3 ) + k 3 (u 4 u 3 ). m n ü n = f n + k n 1 (u n 1 u n ) + k n (u n+1 u n ) m n+1 u n+1 = f n+1 + k n (u n u n+1 ) u i (i =1 n +1) m i x 1..

75 x 3 x n n+1 x 1 1.5: - k 1 k 1 k 1 k 1 + k 2 k 2 k 2 k 2 + k 3 k 3... k n 1 k n 1 + k n k n k n k n+1 u 1 u 2 u 3. u n u n+1 = f 1 m 1 ü 1 f 2 m 2 ü 2 f 3 m 3 ü 3. f n m n ü n f n+1 m n+1 ü n+1 (1.85), ü 1 =ü 2 = =ü n =ü n+1 =0, u 1 = u 2 = = u n = u n+1 =0.,,., rank n. ( ), u 1 =0,,., v 1 = u 2 u 1,v 2 = u 3 u 2, v n = u n+1 u n.,,,.,, u 1 =0.,,, u j = a,. u j, f j.,, 0.

76 66 1 Gauss. A 11 A A 1n b 1 C 1 A 21. b 2 C 2 = (1.86).... A n A nn b n C n, C j b j.. A 11 + A 12 b A 1j b j + + A 1n b n = C 1 A 21 + A 22 b A 2j b j + + A 2n b n = C 2.. (1.87) A j1 + A j2 b A jj b j + + A jn b n = C j.. A n1 + A n2 b A nj b j + + A nn b n = C n j C j, C j b i (i =1 j 1,j+1 n), C j = A j1 b 1 + A j2 b Ajjb j + + A jn b n (1.88)., b i (i =1 j 1,j+1 n). j n 1. A 11 + A 12 b A 1j b j + + A 1n b n = C 1 A 21 + A 22 b A 2j b j + + A 2n b n = C 2.. A j A j 1 2 b A j 1 j b j + + A j 1 n b n = C j 1 A j A j+1 2 b A j+1 j b j + + A j 1 n b n = C j+1.. A n1 + A n2 b A nj b j + + A nn b n = C n (1.89)

77 A 1j b j,a 2j b j,,a nj b j. A 11 + A 12 b A 1 j 1 b j 1 + A 1 j+1 b j A 1n b n = C 1 A 1j b j A 21 + A 22 b A 2 j 1 b j 1 + A 2 j+1 b j A 2n b n = C 2 A 2j b j.. A j A j 1 2 b A j 1 j 1 b j 1 + A j 1 j+1 b j A j 1 n b n = C j 1 A j 1 j b j A j A j+1 2 b A j+1 j 1 b j 1 + A j+1 j+1 b j A j+1 n b n = C j+1 A j+1 j b j. A n1 + A n2 b A nj 1 b j 1 + A nj+1 b j A nn b n = C n A nj b j (1.90),., j j, j,, j b j j.. A A 1 j 1 A 1 j+1... A 1n A A 2 j 1 A 2 j+1... A 2n. A j A j 1 j 1 A j+1 j+1... A j 1 n A j A j+1 j+1 A j+1 j+1... A j+1 n. A n1... A nj 1 A nj+1... A nn b 1 b 2. = b j 1 b j+1. b n C 1 A 1j C 2 A 2j. b j C j 1 C j+1 A j+1 j. C n. A j 1 j. A nj (1.91) b j 0 2., b j. b j(1),b j(2),,b j(m). j(1),j(2),,j(m). b j(1),b j(2),,b j(m)..

78 68 1 Gauss rank, n =2. [P (i, j; C)], [R(i; C)]. [P (i, j; C)] = i j C (1.92) [R(i; C)] = i i C (1.93) (1.94). k 1 k 1 0 [K] = k 1 k 1 + k 2 k 2 0 k 2 k 2 (1.95)

79 k 1 k 1 0 k 1 k 1 0 [P (2, 1; 1)][K] = k 1 k 1 + k 2 k 2 = 0 k 2 k 2 (1.96) k 2 k 2 0 k 2 k k 1 k 1 0 k 1 k 1 0 [P (3, 2; 1)][P (2, 1; 1)][K] = k 2 k 2 = 0 k 2 k 2 (1.97) k 2 k k 1 k k [P (3, 2; 1)][P (2, 1; 1)][K][P (1, 2; 1)] = 0 k 2 k = 0 k 2 k (1.98) k k [P (3, 2; 1)][P (2, 1; 1)][K][P (1, 2; 1)][P (2, 3; 1)] = 0 k 2 k = 0 k (1.99) [R(2; 1 )][R(1; 1 )][P (3, 2; 1)][P (2, 1; 1)][K][P (1, 2; 1)][P (2, 3; 1)] k 2 k k k = 1 0 k k 2 0 = (1.100) [K] rank 2. (n +1) (n +1) [K], [K] rank n.

80 70 1 Gauss [R(n; 1 k n )] [R(1; 1 k 1 )][P (n +1,n; 1)] [P (i +1,i; 1)] [P (2, 1; 1)][K][P (1, 2; 1)] [P (j, j + 1; 1)] [P (n, n + 1; 1)] n = (1.101) {{ n skyline 1 b j(1),,b j(m) b j(1),, b j(m) j(1),,j(m) b j(1) = b j(1),,b j(m) = b j(m) j(1),,j(m) j(1),,j(m) 0 1 j(1),,j(m) b j(1),, b j(m) 6,m=3,j(1) = 1,j(2) = 3,j(3) = 6

81 A 11 A 12 A 13 A 14 A 15 A 16 A 21 A 22 A 23 A 24 A 25 A 26 A 31 A 32 A 33 A 34 A 35 A 36 A 41 A 42 A 43 A 44 A 45 A 46 A 51 A 52 A 53 A 54 A 55 A 56 A 61 A 62 A 63 A 64 A 65 A 66 b 1 b 2 b 3 b 4 b 5 b 6 = (1.102) b 1 b A 22 0 A 24 A 25 0 b 2 2 A 21 A 23 A b 3 b = b 1 b 3 b 6 0 A 42 0 A 44 A 45 0 b 4 4 A 41 A 43 A 46 0 A 52 0 A 54 A 55 0 b 5 5 A 51 A 53 A b b 6 (1.103)

82 72 1 Gauss. for i =1 m for k =1 n end for end for k = k b j(i) A kj(i) for i =1 m end for j(i) = b j(i) for i =1 m for k =1 n A kj(i) =0 A j(i)k =0 end for A j(i)j(i) =1 j(i) =0 end for

83 m j(m) b j(m) n A nn b n n n b given i b given(n b given) v b given(n b given) n a(n,n) b(n) (n) Gauss 4 k 1 = k 2 = = k m = k 1 n =4 k =1 u 1 =0 f 5 =1 2 n =4 k =1 u 1 = u 5 =0 f 3 =1 3 n =4 k =1 u 1 = u 5 =0 u 3 =1 m 1 m 2 m 3 m 4 m 5 1.6: fortran fortran Makefile

84 74 1 Gauss FC = g77 F_OPT = -O2 OBJS = main.o stiff.o ex11-13.o gauss_ver4u.o bound1.o mis2.o TARGET = bound1 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $< main.f bound operation ver.1 with gauss elimination ver. 4u by WATANABE Hiroshi (2000 June) impliit real*8(a-h,o-z) parameter(n = 5) parameter(i_hek = 3) parameter(i_type = 3) dimension a(n,n),b(n),(n) dimension i_b_given(n),v_b_given(n) nk = 4 ak = 1.D0 all stiff(a,n,nk,ak) if (i_hek.ge. 3) all hek_stiff(a,n) if (i_type.eq. 1) all ex11(,n_b_given,i_b_given,v_b_given,n) if (i_type.eq. 2) all ex12(,n_b_given,i_b_given,v_b_given,n) if (i_type.eq. 3) all ex13(,n_b_given,i_b_given,v_b_given,n) all bound1(a,,n,n_b_given,i_b_given,v_b_given) if (i_hek.ge. 2) all hek_matrix2(a,,n) all gauss_ver4u(a,,n) if (i_hek.ge. 1) all hek_solution(,n) stop end

85 stiff.f ####################################################################### subroutine stiff(a,n,nk,ak) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*) do i = 1,n do j = 1,n a(j,i) = 0.D0 do i = 1,nk a(i,i ) = a(i,i ) + ak a(i,i+1) = a(i,i+1) - ak a(i+1,i ) = a(i+1,i ) - ak a(i+1,i+1) = a(i+1,i+1) + ak return end ex11-13.f ####################################################################### subroutine ex11(,n_b_given,i_b_given,v_b_given,n) ####################################################################### impliit real*8(a-h,o-z) dimension (*),i_b_given(*),v_b_given(*) do i = 1,n (i) = 0.D0 (n) = 1.D0 n_b_given = 1 i_b_given(1) = 1 v_b_given(1) = 0.D0 return end

86 76 1 Gauss ####################################################################### subroutine ex12(,n_b_given,i_b_given,v_b_given,n) ####################################################################### impliit real*8(a-h,o-z) dimension (*),i_b_given(*),v_b_given(*) do i = 1,n (i) = 0.D0 (3) = 1.D0 n_b_given = 2 i_b_given(1) = 1 i_b_given(2) = 5 v_b_given(1) = 0.D0 v_b_given(2) = 0.D0 return end ####################################################################### subroutine ex13(,n_b_given,i_b_given,v_b_given,n) ####################################################################### impliit real*8(a-h,o-z) dimension (*),i_b_given(*),v_b_given(*) do i = 1,n (i) = 0.D0 n_b_given = 3 i_b_given(1) = 1 i_b_given(2) = 3 i_b_given(3) = 5 v_b_given(1) = 0.D0 v_b_given(2) = 1.D0 v_b_given(3) = 0.D0 return end gauss ver4u.f gauss ver4

87 bound1.f ####################################################################### subroutine bound1(a,,n,n_b_given,i_b_given,v_b_given) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),(*),i_b_given(*),v_b_given(*) do i = 1,n_b_given do k = 1,n (k) = (k) - v_b_given(i) * a(k,i_b_given(i)) do i = 1,n_b_given (i_b_given(i)) = v_b_given(i) do i = 1,n_b_given do k = 1,n a(k,i_b_given(i)) = 0.D0 a(i_b_given(i),k) = 0.D0 a(i_b_given(i),i_b_given(i)) = 1.D0 return end mis2.f ####################################################################### subroutine hek_stiff(a,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*) write(*,*) matrix A do i = 1,n write(*,1000) (a(i,j),j=1,n) 1000 format(8e10.3)

88 78 1 Gauss return end ####################################################################### subroutine hek_matrix2(a,,n) ####################################################################### impliit real*8(a-h,o-z) dimension a(n,*),(*) write(*,*) matrix A do i = 1,n write(*,1000) (a(i,j),j=1,n) write(*,*) vetor write(*,1000) ((i),i=1,n) 1000 format(8e10.3) return end ####################################################################### subroutine hek_solution(b,n) ####################################################################### impliit real*8(a-h,o-z) dimension b(*) write(*,*) solution vetor b write(*,1000) (b(i),i=1,n) 1000 format(8e10.3) return end C C Makefile CC = g

89 C_OPT = -O2 OBJS = main.o stiff.o ex11-13.o gauss_ver4u.o bound1.o mis2.o TARGET = bound1 $(TARGET):$(OBJS) $(CC) $(C_OPT) -o $(TARGET) $(OBJS)..o: $(CC) - $(C_OPT) $< main. /* bound operation ver.1 with gauss elimination ver. 4u by WATANABE Hiroshi (2000 July) */ #inlude <stdio.h> #define N 5 #define I_CHECK 3 #define I_TYPE 3 void stiff(double *a, int n, int nk, double ak); void hek_stiff(double *a, int n); void ex11(double *, int *n_b_given, int *i_b_given, double *v_b_given, int n); void ex12(double *, int *n_b_given, int *i_b_given, double *v_b_given, int n); void ex13(double *, int *n_b_given, int *i_b_given, double *v_b_given, int n); void bound1(double *a, double *, int n, int n_b_given, int *i_b_given, double *v_b_given); void hek_matrix2(double *a, double *, int n); void gauss_ver4u(double *a, double *, int n); void hek_solution(double *b, int n); main() { double *a,*b,*,*v_b_given; int *i_b_given; double ak; int n,nk,n_b_given; n = N;

90 80 1 Gauss nk = 4; ak = 1.0; a = (double *)mallo(sizeof(double)*n*n); b = (double *)mallo(sizeof(double)*n); = (double *)mallo(sizeof(double)*n); v_b_given = (double *)mallo(sizeof(double)*n); i_b_given = (int *)mallo(sizeof(int)*n); stiff(a,n,nk,ak); if (I_CHECK >= 3) hek_stiff(a,n); if (I_TYPE == 1) ex11(,&n_b_given,i_b_given,v_b_given,n); if (I_TYPE == 2) ex12(,&n_b_given,i_b_given,v_b_given,n); if (I_TYPE == 3) ex13(,&n_b_given,i_b_given,v_b_given,n); bound1(a,,n,n_b_given,i_b_given,v_b_given); if (I_CHECK >= 2) hek_matrix2(a,,n); gauss_ver4u(a,,n); if (I_CHECK >= 1) hek_solution(,n); stiff. void stiff(double *arg_a, int n, int nk, double ak) { double *a; int i,j; a = arg_a -1-n; for (i = 1; i <= n; ++i){ for (j = 1; j <= n; ++j){ a[i+j*n] = 0.0; for (i = 1; i <= nk ; ++i){ a[ i + i *n] = a[ i + i *n] + ak; a[ i +(i+1)*n] = a[ i +(i+1)*n] - ak; a[(i+1)+ i *n] = a[(i+1)+ i *n] - ak; a[(i+1)+(i+1)*n] = a[(i+1)+(i+1)*n] + ak;

91 ex void ex11(double *arg_, int *n_b_given, int *arg_i_b_given, double *arg_v_b_given,int n) { double *, *v_b_given; int *i_b_given; int i; = arg_ -1; v_b_given = arg_v_b_given -1; i_b_given = arg_i_b_given -1; for (i = 1; i <= n; ++i){ [i] = 0.0; [n] = 1.0; *n_b_given = 1; i_b_given[1] = 1; v_b_given[1] = 0.0; void ex12(double *arg_, int *n_b_given, int *arg_i_b_given, double *arg_v_b_given,int n) { double *, *v_b_given; int *i_b_given; int i; = arg_ -1; v_b_given = arg_v_b_given -1; i_b_given = arg_i_b_given -1; for (i = 1; i <= n; ++i){ [i] = 0.0; [3] = 1.0; *n_b_given = 2; i_b_given[1] = 1; i_b_given[2] = 5; v_b_given[1] = 0.0; v_b_given[2] = 0.0;

92 82 1 Gauss void ex13(double *arg_, int *n_b_given, int *arg_i_b_given, double *arg_v_b_given,int n) { double *, *v_b_given; int *i_b_given; int i; = arg_ -1; v_b_given = arg_v_b_given -1; i_b_given = arg_i_b_given -1; for (i = 1; i <= n; ++i){ [i] = 0.0; *n_b_given = 3; i_b_given[1] = 1; i_b_given[2] = 3; i_b_given[3] = 5; v_b_given[1] = 0.0; v_b_given[2] = 1.0; v_b_given[3] = 0.0; gauss ver4u. gauss ver4 bound1. void bound1(double *arg_a, double *arg_, int n, int n_b_given, int *arg_i_b_given, double *arg_v_b_given) { double *a,*,*v_b_given; int *i_b_given,i,k; a = arg_a -1-n; = arg_ -1; v_b_given = arg_v_b_given -1; i_b_given = arg_i_b_given -1; for (i = 1; i <= n_b_given; ++i){ for (k = 1; k <= n; ++k){ [k] = [k] - v_b_given[i] * a[k+i_b_given[i]*n];

93 for (i = 1; i <= n_b_given; ++i){ [i_b_given[i]] = v_b_given[i]; for (i = 1; i <= n_b_given; ++i){ for (k = 1; k <= n; ++k){ a[k+i_b_given[i]*n] = 0.0; a[i_b_given[i]+k*n] = 0.0; a[i_b_given[i]+i_b_given[i]*n]= 1.0; mis2. void hek_stiff(double *arg_a, int n) { double *a; int i,j; a = arg_a -1-n; printf("matrix A\n"); for (i = 1; i <= n; ++i){ for (j = 1; j <= n; ++j) printf("% 10.3E",a[i+j*n]); printf("\n"); void hek_matrix2(double *arg_a, double *arg_, int n) { double *a,*; int i,j; a = arg_a -1-n; = arg_ -1; printf("matrix A\n"); for (i = 1; i <= n; ++i){ for (j = 1; j <= n; ++j) printf("% 10.3E",a[i+j*n]); printf("\n"); printf("vetor \n"); for (i = 1; i <= n; ++i) printf("% 10.3E",[i]); printf("\n");

94 84 1 Gauss void hek_solution(double *arg_b, int n) { double *b; int i; b = arg_b-1; printf("solution vetor b\n"); for (i = 1; i <= n; ++i) printf("% 10.3E",b[i]); printf("\n"); (1) A 11 A 12 A 13 A 14 A 15 A 16 A 21 A 22 A 23 A 24 A 25 A 26 A 31 A 32 A 33 A 34 A 35 A 36 A 41 A 42 A 43 A 44 A 45 A 46 A 51 A 52 A 53 A 54 A 55 A 56 A 61 A 62 A 63 A 64 A 65 A 66 b 1 b 2 b 3 b 4 b 5 b 6 = (1.104) b 1 b A 22 0 A 24 A 25 0 b 2 2 A 21 A 23 A b 3 b = b 1 b 3 b 6 0 A 42 0 A 44 A 45 0 b 4 4 A 41 A 43 A 46 0 A 52 0 A 54 A 55 0 b 5 5 A 51 A 53 A b b 6 (1.105) b 1 = b 6 =0 2,4

95 m z j z (m) b jz(m) n b nonzero i b nonzero(n b nonzero) v b nonzero(n b nonzero) bound fortran fortran Makefile FC = g77 F_OPT = -O2 OBJS = main.o stiff.o ex21-23.o gauss_ver4u.o bound2.o mis2.o TARGET = bound2 $(TARGET):$(OBJS) $(FC) $(F_OPT) -o $(TARGET) $(OBJS).f.o: $(FC) - $(F_OPT) $< main.f bound operation ver.2 with gauss elimination ver.4 by WATANABE Hiroshi (2000 June) impliit real*8(a-h,o-z) parameter(n = 5) parameter(i_hek = 3) parameter(i_type = 3) dimension a(n,n),b(n),(n) dimension i_b_given(n),v_b_given(n)

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 information

Gauss

Gauss 15 1 LU LDL T 6 : 1g00p013-5 1 6 1.1....................................... 7 1.2.................................. 8 1.3.................................. 8 2 Gauss 9 2.1.....................................

More information

LINEAR ALGEBRA I Hiroshi SUZUKI Department of Mathematics International Christian University

LINEAR 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 information

sim98-8.dvi

sim98-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 information

QR

QR 1 7 16 13 1 13.1 QR...................................... 2 13.1.1............................................ 2 13.1.2..................................... 3 13.1.3 QR........................................

More information

エクセルカバー入稿用.indd

エクセルカバー入稿用.indd i 1 1 2 3 5 5 6 7 7 8 9 9 10 11 11 11 12 2 13 13 14 15 15 16 17 17 ii CONTENTS 18 18 21 22 22 24 25 26 27 27 28 29 30 31 32 36 37 40 40 42 43 44 44 46 47 48 iii 48 50 51 52 54 55 59 61 62 64 65 66 67 68

More information

01_.g.r..

01_.g.r.. I II III IV V VI VII VIII IX X XI I II III IV V I I I II II II I I YS-1 I YS-2 I YS-3 I YS-4 I YS-5 I YS-6 I YS-7 II II YS-1 II YS-2 II YS-3 II YS-4 II YS-5 II YS-6 II YS-7 III III YS-1 III YS-2

More information

[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±

[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

SC-85X2取説

SC-85X2取説 I II III IV V VI .................. VII VIII IX X 1-1 1-2 1-3 1-4 ( ) 1-5 1-6 2-1 2-2 3-1 3-2 3-3 8 3-4 3-5 3-6 3-7 ) ) - - 3-8 3-9 4-1 4-2 4-3 4-4 4-5 4-6 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 5-10 5-11

More information

<4D6963726F736F667420506F776572506F696E74202D208376838C835B83938365815B835683878393312E707074205B8CDD8AB78382815B83685D>

<4D6963726F736F667420506F776572506F696E74202D208376838C835B83938365815B835683878393312E707074205B8CDD8AB78382815B83685D> i i vi ii iii iv v vi vii viii ix 2 3 4 5 6 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

More information

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

C による数値計算法入門 ( 第 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

3 5 18 3 5000 1 2 7 8 120 1 9 1954 29 18 12 30 700 4km 1.5 100 50 6 13 5 99 93 34 17 2 2002 04 14 16 6000 12 57 60 1986 55 3 3 3 500 350 4 5 250 18 19 1590 1591 250 100 500 20 800 20 55 3 3 3 18 19 1590

More information

困ったときのQ&A

困ったときのQ&A ii iii iv NEC Corporation 1997 v P A R T 1 vi vii P A R T 2 viii P A R T 3 ix x xi 1P A R T 2 1 3 4 1 5 6 1 7 8 1 9 1 2 3 4 10 1 11 12 1 13 14 1 1 2 15 16 1 2 1 1 2 3 4 5 17 18 1 2 3 1 19 20 1 21 22 1

More information

XMPによる並列化実装2

XMPによる並列化実装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 information

II 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 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 information

i

i i ii iii iv v vi vii viii ix x xi ( ) 854.3 700.9 10 200 3,126.9 162.3 100.6 18.3 26.5 5.6/s ( ) ( ) 1949 8 12 () () ア イ ウ ) ) () () () () BC () () (

More information

行列代数2010A

行列代数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 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 (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

:30 12:00 I. I VI II. III. IV. a d V. VI

: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

C言語による数値計算プログラミング演習

C言語による数値計算プログラミング演習 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 information

これわかWord2010_第1部_100710.indd

これわかWord2010_第1部_100710.indd i 1 1 2 3 6 6 7 8 10 10 11 12 12 12 13 2 15 15 16 17 17 18 19 20 20 21 ii CONTENTS 25 26 26 28 28 29 30 30 31 32 35 35 35 36 37 40 42 44 44 45 46 49 50 50 51 iii 52 52 52 53 55 56 56 57 58 58 60 60 iv

More information

パワポカバー入稿用.indd

パワポカバー入稿用.indd i 1 1 2 2 3 3 4 4 4 5 7 8 8 9 9 10 11 13 14 15 16 17 19 ii CONTENTS 2 21 21 22 25 26 32 37 38 39 39 41 41 43 43 43 44 45 46 47 47 49 52 54 56 56 iii 57 59 62 64 64 66 67 68 71 72 72 73 74 74 77 79 81 84

More information

これでわかるAccess2010

これでわかるAccess2010 i 1 1 1 2 2 2 3 4 4 5 6 7 7 9 10 11 12 13 14 15 17 ii CONTENTS 2 19 19 20 23 24 25 25 26 29 29 31 31 33 35 36 36 39 39 41 44 45 46 48 iii 50 50 52 54 55 57 57 59 61 63 64 66 66 67 70 70 73 74 74 77 77

More information

untitled

untitled i ii iii iv v 43 43 vi 43 vii T+1 T+2 1 viii 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 a) ( ) b) ( ) 51

More information

2

2 1 2 3 4 5 6 7 8 9 10 I II III 11 IV 12 V 13 VI VII 14 VIII. 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 _ 33 _ 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 VII 51 52 53 54 55 56 57 58 59

More information

III

III III 1 1 2 1 2 3 1 3 4 1 3 1 4 1 3 2 4 1 3 3 6 1 4 6 1 4 1 6 1 4 2 8 1 4 3 9 1 5 10 1 5 1 10 1 5 2 12 1 5 3 12 1 5 4 13 1 6 15 2 1 18 2 1 1 18 2 1 2 19 2 2 20 2 3 22 2 3 1 22 2 3 2 24 2 4 25 2 4 1 25 2

More information

iii iv v vi vii viii ix 1 1-1 1-2 1-3 2 2-1 3 3-1 3-2 3-3 3-4 4 4-1 4-2 5 5-1 5-2 5-3 5-4 5-5 5-6 5-7 6 6-1 6-2 6-3 6-4 6-5 6 6-1 6-2 6-3 6-4 6-5 7 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 7-9 7-10 7-11 8 8-1

More information

パソコン機能ガイド

パソコン機能ガイド PART12 ii iii iv v 1 2 3 4 5 vi vii viii ix P A R T 1 x P A R T 2 xi P A R T 3 xii xiii P A R T 1 2 3 1 4 5 1 6 1 1 2 7 1 2 8 1 9 10 1 11 12 1 13 1 2 3 4 14 1 15 1 2 3 16 4 1 1 2 3 17 18 1 19 20 1 1

More information

パソコン機能ガイド

パソコン機能ガイド PART2 iii ii iv v 1 2 3 4 5 vi vii viii ix P A R T 1 x P A R T 2 xi P A R T 3 xii xiii P A R T 1 2 1 3 4 1 5 6 1 2 1 1 2 7 8 9 1 10 1 11 12 1 13 1 2 3 14 4 1 1 2 3 15 16 1 17 1 18 1 1 2 19 20 1 21 1 22

More information

平成18年版 男女共同参画白書

平成18年版 男女共同参画白書 i ii iii iv v vi vii viii ix 3 4 5 6 7 8 9 Column 10 11 12 13 14 15 Column 16 17 18 19 20 21 22 23 24 25 26 Column 27 28 29 30 Column 31 32 33 34 35 36 Column 37 Column 38 39 40 Column 41 42 43 44 45

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 (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 information

1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22 8... 22 3... 22 1... 22 2... 23 3... 23 4... 24 5... 24 6... 25 7... 31 8... 32 9... 3

1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22 8... 22 3... 22 1... 22 2... 23 3... 23 4... 24 5... 24 6... 25 7... 31 8... 32 9... 3 3 2620149 3 6 3 2 198812 21/ 198812 21 1 3 4 5 JISJIS X 0208 : 1997 JIS 4 JIS X 0213:2004 http://www.pref.hiroshima.lg.jp/site/monjokan/ 1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22

More information

Gauss Strassen LU LU LU LU 22 5 Gauss LU

Gauss 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

Taro-再帰関数Ⅲ(公開版).jtd

Taro-再帰関数Ⅲ(公開版).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

行列代数2010A

行列代数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... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12 9... 13 10... 13 11... 13 12... 14 2... 14 1... 14 2... 16 3... 18 4... 19 5... 19 6.

1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12 9... 13 10... 13 11... 13 12... 14 2... 14 1... 14 2... 16 3... 18 4... 19 5... 19 6. 3 2620149 1 3 8 3 2 198809 1/1 198809 1 1 3 4 5 JISJIS X 0208 : 1997 JIS 4 JIS X 0213:2004 http://www.pref.hiroshima.lg.jp/site/monjokan/ 1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12

More information

™…

™… i 1 1 1 2 3 5 5 6 7 9 10 11 13 13 14 15 15 16 17 18 20 20 20 21 22 ii CONTENTS 23 24 26 27 2 31 31 32 32 33 34 37 37 38 39 39 40 42 42 43 44 45 48 50 51 51 iii 54 57 58 60 60 62 64 64 67 69 70 iv 70 71

More information

第7章 有限要素法のプログラミング

第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 information

活用ガイド (ハードウェア編)

活用ガイド (ハードウェア編) (Windows 98) 808-877675-122-A ii iii iv NEC Corporation 1999 v vi PART 1 vii viii PART 2 PART 3 ix x xi xii P A R T 1 2 1 3 4 1 5 6 1 7 8 1 9 10 11 1 12 1 1 2 3 13 1 2 3 14 4 5 1 15 1 1 16 1 17 18 1 19

More information

ii iii iv CON T E N T S iii iv v Chapter1 Chapter2 Chapter 1 002 1.1 004 1.2 004 1.2.1 007 1.2.2 009 1.3 009 1.3.1 010 1.3.2 012 1.4 012 1.4.1 014 1.4.2 015 1.5 Chapter3 Chapter4 Chapter5 Chapter6 Chapter7

More information

i ii iii iv v vi vii ( ー ー ) ( ) ( ) ( ) ( ) ー ( ) ( ) ー ー ( ) ( ) ( ) ( ) ( ) 13 202 24122783 3622316 (1) (2) (3) (4) 2483 (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) 11 11 2483 13

More information

活用ガイド (ソフトウェア編)

活用ガイド (ソフトウェア編) (Windows 95 ) ii iii iv NEC Corporation 1999 v P A R T 1 vi P A R T 2 vii P A R T 3 P A R T 4 viii P A R T 5 ix x P A R T 1 2 3 1 1 2 4 1 2 3 4 5 1 1 2 3 4 6 5 6 7 7 1 1 2 8 1 9 1 1 2 3 4 5 6 1 2 3 4

More information

OHP.dvi

OHP.dvi 0 7 4 0000 5.. 3. 4. 5. 0 0 00 Gauss PC 0 Gauss 3 Gauss Gauss 3 4 4 4 4 3 4 4 4 4 3 4 4 4 4 3 4 4 4 4 u [] u [3] u [4] u [4] P 0 = P 0 (),3,4 (,), (3,), (4,) 0,,,3,4 3 3 3 3 4 4 4 4 0 3 6 6 0 6 3 6 0 6

More information

untitled

untitled 0. =. =. (999). 3(983). (980). (985). (966). 3. := :=. A A. A A. := := 4 5 A B A B A B. A = B A B A B B A. A B A B, A B, B. AP { A, P } = { : A, P } = { A P }. A = {0, }, A, {0, }, {0}, {}, A {0}, {}.

More information

7 i 7 1 2 3 4 5 6 ii 7 8 9 10 11 1 12 13 14 iii.......................................... iv................................................ 21... 1 v 3 6 7 3 vi vii viii ix x xi xii xiii xiv xv 26 27

More information

2 (2016 3Q N) c = o (11) Ax = b A x = c A n I n n n 2n (A I n ) (I n X) A A X A n A A A (1) (2) c 0 c (3) c A A i j n 1 ( 1) i+j A (i, j) A (i, j) ã i

2 (2016 3Q N) c = o (11) Ax = b A x = c A n I n n n 2n (A I n ) (I n X) A A X A n A A A (1) (2) c 0 c (3) c A A i j n 1 ( 1) i+j A (i, j) A (i, j) ã i [ ] (2016 3Q N) a 11 a 1n m n A A = a m1 a mn A a 1 A A = a n (1) A (a i a j, i j ) (2) A (a i ca i, c 0, i ) (3) A (a i a i + ca j, j i, i ) A 1 A 11 0 A 12 0 0 A 1k 0 1 A 22 0 0 A 2k 0 1 0 A 3k 1 A rk

More information

9 i 9 1 2 3 4 5 6 ii 7 8 9 10 11 12 .......................................... iii ... 1... 1........................................ 9 iv... v 3 8 9 3 vi vii viii ix x xi xii xiii xiv 34 35 22 1 2 1

More information

i ii iii iv v vi vii viii ix x xi xii xiii xiv xv xvi 2 3 4 5 6 7 $ 8 9 10 11 12 13 14 15 16 17 $ $ $ 18 19 $ 20 21 22 23 24 25 26 27 $$ 28 29 30 31 $ $ $ 32 33 34 $ 35 $ 36 $ 37 38 39 40 $ 41 42 43 44

More information

I

I I II III IV V VI VII VIII IX X XI XII XIII XIV 1. 2 3 4 5 2. 6 7 8 3. 1 2 3 9 4 5 10 6 11 4. 1 2 3 1 2 12 1 2 3 1 2 3 13 14 1 2 1 15 16 1. 20 1 21 1 22 23 1 2 3 4 24 1 2 ok 25 1 2 26 1 2 3 27 2. 28

More information

untitled

untitled 1998 6 25 ( ) 1 10 1982 10 28 37/7 1990 12 14 45/94 (WHO) 1 1989 12 8 NGO (ECE) 3 1995 10 25 ECE 1991 2 25 1992 3 17 1998 6 4 1 2 1. 2. a b c (a) (b) d 17 3. a b (a) c (b) 4. 5. 3 1. 2. 3. 4. 5. 6. 7.

More information

MultiPASS B-20 MultiPASS Suite 3.10使用説明書

MultiPASS B-20 MultiPASS Suite 3.10使用説明書 TM MultiPASS Suite Ver.3.10 for Windows ii iii Copyright 1999 Canon Inc. ALL RIGHTS RESERVED iv v vi vii viii ix x 1 2 3 4 5 6 7 8 9 xi xii 1 1 1-1 1 2 3 1-2 4 5 1 1-3 6 1-4 1 7 8 1-5 9 10 11 1-6 1 1-7

More information

困ったときのQ&A

困ったときのQ&A ii iii iv NEC Corporation 1998 v C O N T E N T S PART 1 vi vii viii ix x xi xii PART 2 xiii PART 3 xiv P A R T 1 3 1 2 PART 3 4 2 1 1 2 4 3 PART 1 4 5 5 6 PART 1 7 8 PART 1 9 1 2 3 1 2 3 10 PART 1 1 2

More information

活用ガイド (ソフトウェア編)

活用ガイド (ソフトウェア編) (Windows 98 ) ii iii iv v NEC Corporation 1999 vi P A R T 1 P A R T 2 vii P A R T 3 viii P A R T 4 ix P A R T 5 x P A R T 1 2 3 1 1 2 4 1 2 3 4 5 1 1 2 3 4 5 6 6 7 7 1 1 2 8 1 9 1 1 2 3 4 5 6 1 2 3 10

More information

linearal1.dvi

linearal1.dvi 19 4 30 I 1 1 11 1 12 2 13 3 131 3 132 4 133 5 134 6 14 7 2 9 21 9 211 9 212 10 213 13 214 14 22 15 221 15 222 16 223 17 224 20 3 21 31 21 32 21 33 22 34 23 341 23 342 24 343 27 344 29 35 31 351 31 352

More information

困ったときのQ&A

困ったときのQ&A Help i 1 ii iii v iv 2 C Alt Delete v iv vii vi vii vi viii ix x x xi 1 2 3 4 5 xii xiii xiv xv xvi xvii c c c xviii xix P A R T 1 P A R T 2 xx P A R T 3 xxi P A R T 4 xxii xxiii P A R T 1 2 1 1 2 3

More information

スライド 1

スライド 1 数値解析 平成 29 年度前期第 14 週 [7 月 10 日 ] 静岡大学工学研究科機械工学専攻ロボット 計測情報分野創造科学技術大学院情報科学専攻 三浦憲二郎 期末試験 7 月 31 日 ( 月 ) 9 10 時限 A : 佐鳴会議室 B : 佐鳴ホール 講義アウトライン [7 月 10 日 ] 関数近似と補間 最小 2 乗近似による関数近似 ( 復習 ) ラグランジュ補間 形状処理工学の基礎

More information

スライド 1

スライド 1 数値解析 平成 24 年度前期第 13 週 [7 月 11 日 ] 静岡大学創造科学技術大学院情報科学専攻工学部機械工学科計測情報講座 三浦憲二郎 講義アウトライン [7 月 11 日 ] 関数近似と補間 最小 2 乗近似による関数近似 ラグランジュ補間 形状処理工学の基礎 点列からの曲線の生成 T.Kanai, U.Tokyo 関数近似 p.116 複雑な関数を簡単な関数で近似する関数近似 閉区間

More information

II Time-stamp: <05/09/30 17:14:06 waki> ii

II Time-stamp: <05/09/30 17:14:06 waki> ii II waki@cc.hirosaki-u.ac.jp 18 1 30 II Time-stamp: ii 1 1 1.1.................................................. 1 1.2................................................... 3 1.3..................................................

More information

活用ガイド (ソフトウェア編)

活用ガイド (ソフトウェア編) ii iii iv NEC Corporation 1998 v vi PA RT 1 vii PA RT 2 viii PA RT 3 PA RT 4 ix P A R T 1 2 3 1 4 5 1 1 2 1 2 3 4 6 1 2 3 4 5 7 1 6 7 8 1 9 1 10 1 2 3 4 5 6 7 8 9 10 11 11 1 12 12 1 13 1 1 14 2 3 4 5 1

More information

スライド 1

スライド 1 数値解析 2019 年度前期第 13 週 [7 月 11 日 ] 静岡大学創造科学技術大学院情報科学専攻工学部機械工学科計測情報講座 三浦憲二郎 講義アウトライン [7 月 11 日 ] 関数近似と補間 最小 2 乗近似による関数近似 ラグランジュ補間 T.Kanai, U.Tokyo 関数近似 p.116 複雑な関数を簡単な関数で近似する 関数近似 閉区間 [a,b] で定義された関数 f(x)

More information

A11 (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

A11 (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 information

01_OpenMP_osx.indd

01_OpenMP_osx.indd OpenMP* / 1 1... 2 2... 3 3... 5 4... 7 5... 9 5.1... 9 5.2 OpenMP* API... 13 6... 17 7... 19 / 4 1 2 C/C++ OpenMP* 3 Fortran OpenMP* 4 PC 1 1 9.0 Linux* Windows* Xeon Itanium OS 1 2 2 WEB OS OS OS 1 OS

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

: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 information

困ったときのQ&A

困ったときのQ&A Help i 1 ii iii v iv 2 C Alt Delete v iv vii vi vii vi viii ix x http://121ware.com/support/ 0120-977-121 x xi xii xii xii 1 2 3 4 5 xiii xiv xv xvi xvii xviii xix xx P A R T 1 P A R T 2 xxi P A R T 3

More information

(報告書まとめ 2004/03/  )

(報告書まとめ 2004/03/  ) - i - ii iii iv v vi vii viii ix x xi 1 Shock G( Invention) (Property rule) (Liability rule) Impact flow 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 (

More information

21 1 1 1 2 2 5 7 9 11 13 13 14 18 18 20 28 28 29 31 31 34 35 35 36 37 37 38 39 40 56 66 74 89 99 - ------ ------ -------------- ---------------- 1 10 2-2 8 5 26 ( ) 15 3 4 19 62 2,000 26 26 5 3 30 1 13

More information

x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y)

x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y) x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 1 1977 x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y) ( x 2 y + xy 2 x 2 2xy y 2) = 15 (x y) (x + y) (xy

More information

Color MultiWriter 9900C/9800C ユーザーズマニュアル

Color MultiWriter 9900C/9800C ユーザーズマニュアル l l l l l i ii iii iv v vi vii viii ix x xi xii xiii xiv xv xvi xvii xviii xix xx xxi xxii xxiii xxiv xxv xxvi 1.1 1 2 3 1 1 4 5 1 1 6 7-1 1.2 1 8 1.3 1 9 1 1.3.1 10 1 2 11 1 1 1.3.2 12 13 1 1 14 1.4

More information

Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS

Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1 (2 ( BASIC BASIC download TUTORIAL.PDF http://hp.vector.co.jp/authors/va008683/

More information

2 [1] 7 5 C 2.1 (kikuchi-fem-mac ) input.dat (cat input.dat type input.dat ))

2 [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 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:

[ 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 information

1 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 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 information

四校_目次~巻頭言.indd

四校_目次~巻頭言.indd 107 25 1 2016 3 Key Words : A 114 67 58.84 Mann-Whitney 6 1. 2. 3. 4. 5. 6. I. 21 4 B 23 11 1 9 8 7 23456 108 25 1 2016 3 78 9 II. III. IV. 1. 24 4 A 114 2. 24 5 6 3. 4. 5. 3 42 5 16 6 22 5 4 4 4 3 6.

More information

『戦時経済体制の構想と展開』

『戦時経済体制の構想と展開』 1 15 15 17 29 36 45 47 48 53 53 54 58 60 70 88 95 95 98 102 107 116 v 121 121 123 124 129 132 142 160 163 163 168 174 183 193 198 205 205 208 212 218 232 237 237 240 247 251 vi 256 268 273 289 293 311

More information

応用数学III-4.ppt

応用数学III-4.ppt III f x ( ) = 1 f x ( ) = P( X = x) = f ( x) = P( X = x) =! x ( ) b! a, X! U a,b f ( x) =! " e #!x, X! Ex (!) n! ( n! x)!x! " x 1! " x! e"!, X! Po! ( ) n! x, X! B( n;" ) ( ) ! xf ( x) = = n n!! ( n

More information

Fortran90/95 2. (p 74) f g h x y z f x h x = f x + g x h y = f y + g y h z = f z + g z f x f y f y f h = f + g Fortran 1 3 a b c c(1) = a(1) + b(1) c(

Fortran90/95 2. (p 74) f g h x y z f x h x = f x + g x h y = f y + g y h z = f z + g z f x f y f y f h = f + g Fortran 1 3 a b c c(1) = a(1) + b(1) c( Fortran90/95 4.1 1. n n = 5 x1,x2,x3,,x4,x5 5 average = ( x1 + x2 + x3 + x4 + x5 )/5.0 n n x (subscript) x 1 x 2 average = 1 n n x i i=1 Fortran ( ) x(1) x(2) x(n) Fortran ( ) average = sum(x(1:n))/real(n)

More information

(Basic Theory of Information Processing) 1

(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 information

長崎県地域防災計画

長崎県地域防災計画 i ii iii iv v vi vii viii ix - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - 玢 - 10 - - 11 - - 12 - - 13 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - -

More information

i

i 14 i ii iii iv v vi 14 13 86 13 12 28 14 16 14 15 31 (1) 13 12 28 20 (2) (3) 2 (4) (5) 14 14 50 48 3 11 11 22 14 15 10 14 20 21 20 (1) 14 (2) 14 4 (3) (4) (5) 12 12 (6) 14 15 5 6 7 8 9 10 7

More information

11042 計算機言語7回目 サポートページ:

11042 計算機言語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 information

example2_time.eps

example2_time.eps Google (20/08/2 ) ( ) Random Walk & Google Page Rank Agora on Aug. 20 / 67 Introduction ( ) Random Walk & Google Page Rank Agora on Aug. 20 2 / 67 Introduction Google ( ) Random Walk & Google Page Rank

More information

(I) GotoBALS, http://www-is.amp.i.kyoto-u.ac.jp/ kkimur/charpoly.html 2

(I) GotoBALS, http://www-is.amp.i.kyoto-u.ac.jp/ kkimur/charpoly.html 2 sdmp Maple - (Ver.2) ( ) September 27, 2011 1 (I) GotoBALS, http://www-is.amp.i.kyoto-u.ac.jp/ kkimur/charpoly.html 2 (II) Nehalem CPU GotoBLAS Intel CPU Nehalem CPU, GotoBLAS, Hyper-Thread technology

More information