第1章

Similar documents
02


Gauss

ŠéŒØ‘÷†u…x…C…W…A…fi…l…b…g…‘†[…NfiüŒå†v(fl|ŁŠ−Ù) 4. −mŠ¦fiI’—Ÿ_ 4.1 −mŠ¦ŁªŁz‡Ì„v”Z

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

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU


untitled


FX ) 2

FX自己アフリエイトマニュアル

【知事入れ版】270804_鳥取県人口ビジョン素案

資料5:聖ウルスラ学院英智小・中学校 提出資料(1)

Excel97関数編

スライド 1

新・明解C言語 実践編

1 4 2 EP) (EP) (EP)


sim98-8.dvi

P06.ppt



% 32.3 DI DI




無印良品のスキンケア

新コンフィギュレータのフレームワークについて

double float

‚æ4›ñ

橡Taro9-生徒の活動.PDF

dicutil1_5_2.book

Microsoft Word - C.....u.K...doc

USB ID TA DUET 24:00 DUET XXX -YY.c ( ) XXX -YY.txt() XXX ID 3 YY ID 5 () #define StudentID 231

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

[] x < T f(x), x < T f(x), < x < f(x) f(x) f(x) f(x + nt ) = f(x) x < T, n =, 1,, 1, (1.3) f(x) T x 2 f(x) T 2T x 3 f(x), f() = f(t ), f(x), f() f(t )

joho12.ppt

01_OpenMP_osx.indd

68 A mm 1/10 A. (a) (b) A.: (a) A.3 A.4 1 1

2/ 土 :30 11:20 似通った科目名がありますので注意してください. 受験許可されていない科目を解答した場合は無効 整理番号と科目コードは受験許可証とよく照合し正確に記入

TEX American Mathematical Society PostScript Adobe Systems Incorporated

joho09.ppt

, = = 7 6 = 42, =

福沢論文

1: *2 W, L 2 1 (WWL) 4 5 (WWL) W (WWL) L W (WWL) L L 1 2, 1 4, , 1 4 (cf. [4]) 2: 2 3 * , , = , 1

PowerPoint Presentation

スライド 1



c-all.dvi


1.2 y + P (x)y + Q(x)y = 0 (1) y 1 (x), y 2 (x) y 1 (x), y 2 (x) (1) y(x) c 1, c 2 y(x) = c 1 y 1 (x) + c 2 y 2 (x) 3 y 1 (x) y 1 (x) e R P (x)dx y 2

2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

スライド 1

XMPによる並列化実装2

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

コンバートスター15シリーズ 製品パンフレット

- 2 -

untitled

プリント

O(N) ( ) log 2 N

ax 2 + bx + c = n 8 (n ) a n x n + a n 1 x n a 1 x + a 0 = 0 ( a n, a n 1,, a 1, a 0 a n 0) n n ( ) ( ) ax 3 + bx 2 + cx + d = 0 4

本文(B5×40)0614三校責了.indd

920P-1




広報しもつけp01ol

ONPRESS190


Informatics 2010.key

Smalltalk_


untitled

untitled

untitled

1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() 2 double *a[ ]; double 1 malloc() dou

C 2 2.1? 3x 2 + 2x + 5 = 0 (1) 1

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

新・明解C言語 ポインタ完全攻略

QR

comment.dvi

RHEA key

n Y 1 (x),..., Y n (x) 1 W (Y 1 (x),..., Y n (x)) 0 W (Y 1 (x),..., Y n (x)) = Y 1 (x)... Y n (x) Y 1(x)... Y n(x) (x)... Y n (n 1) (x) Y (n 1)

#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

2012 A, N, Z, Q, R, C

超初心者用

Java (5) 1 Lesson 3: x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java , 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flow

untitled

2017 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,

he T N/ N/

Taro-最大値探索法の開発(公開版

1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit)

body.dvi

Transcription:

...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 ( i ( x x1)( x x2 ) ( x xn ) f (x) y0 ( x x )( x x ) ( x x ) 0 1 0 ( x x0 )( x x1 ) ( x xn 1) ( x x )( x x ) ( x x ) n 2 0 n 0 1 n ( x x )( x x ) ( x x 0 2 n 1 ( x1 x0 )( x1 x2 ) ( x1 xn ) n n1 y n ) y n n x x j yi i j xi x 0 0 j i j x, y x y 9

x x, f x ), f ( x ),, f ( ) f ( x 1 ) f ( x 1) 0, 1, x n 1 n ( 0 1 x n 1 2 3 s(x) f x ) c1 ( x x ) c2 ( x x ) c3 ( x x ) ( i i i i i i i xi x xi i 0, 1,, ni 2 c, c2 c3 ck 1i i i i h i 0,, n i 2 h x i i 1 x i,, d i 1,, n 2 i i i 10

i i i i i h h h, 1 1 i d i, 1 1 1 1 6 i i i i i i i i h y y h y y h h 0 1 1 1, n 0 d d 1 n 0 d 1 0 0 0 1 0, ) ( 6 d n x f h y y h 1 2 1 1 1 ) ( 6 n n n n n h y y x f h 1 2 1 0 1 2 2 2 1 0 2 2 2 2 n n n n n M M M M 1 2 1 0 n n d d d d M i i M ck i 0 i 2, 1,, i n i c2 i i c M 3, 2 i i i i c h M M 1, 6 1 2 1 3 2 i i i i i i i h c h c h y y y x, 11

( x, y0 ), ( x1, y1),, ( x n 1, yn 1) y ax b 0 y ax b n 2 S ( yi axi b) ( i 0, 1,, n i 1) i0 a, b S a b S S 2 2 axi bxi xi yi a S 2a x i b yi b 12

a b i n x y a n i i i i x y i i 2 x 2 x i i i i y a x i i i b n i x, y x, y y 0. 85x 12.48 x y 13

x y 5 y (1 2 x 5 x 5 ) 14

n 1 15

16

17

18

19

20

double lagrange (double nx[][50], double ny[][50], int n[], double x, int a)------------ { } int i, j; double fx = 0, sum = 0; for (i = 0; i < n[a]; i++) { fx = ny[a][i]; for (j = 0; j < n[a]; j++) { if (i!= j) fx = fx (x - nx[a][j]) / } } sum += fx; (nx[a][i] - nx[a][j]); return (sum); ---------------------------------------------------------------- j i y 21

double spline (double nx[][50], double ny[][50], int n[], double x, int a) ------------- { int i; double p, s; double h[1000], d[1000], f[1000], e[1000], u[1000], m[1000], end[2], c1[1000], c2[1000], c3[1000]; for (i = 0; i < n[a] - 1; i++) h[i] = nx[a][i + 1] - nx[a][i]; f[0] = 1; e[n[a] - 1] = 1; for (i = 1; i < n[a] - 1; i++) { f[i] = h[i] / (h[i - 1] + h[i]); e[i] = 1 - f[i]; u[i] = 6 / (h[i - 1] + h[i]) ((ny[a][i + 1] - ny[a][i]) / h[i] - (ny[a][i] - ny[a][i - 1]) / h[i - 1]); } for (i = 0; i < n[a]; i++) d[i] = 2; end[0] = 0; end[1] = 0; u[0] = 6 / h[0] ((ny[i][1] - ny[i][0]) / h[0] - end[0]); u[n[a] - 1] = 6 / h[n[a] - 2] (end[1] - (ny[a][n[a] - 1] - ny[a][n[a] - 2]) / h[n[a] - 2]); for (i = 0; i < n[a] - 1; i++) { } p = e[i + 1] / d[i]; d[i + 1] -= p f[i]; u[i + 1] -= p u[i]; 22

} u[n[a] - 1] /= d[n[a] -1]; for (i = n[a] - 2; i >= 0; i--) { u[i] = (u[i] - f[i] u[i + 1]) / d[i]; } for (i = 0; i < n[a]; i++) { } m[i] = u[i]; for (i = 0; i < n[a] - 1; i++) { c2[i] = m[i] / 2; c3[i] = (m[i+1] - m[i]) / (6 h[i]); c1[i] = (ny[a][i+1] - ny[a][i]) / h[i] - c2[i] h[i] - c3[i] h[i] h[i]; if ((x >= nx[a][i]) && (x <= nx[a][i + 1])) { s = ny[a][i] + c1[i] (x - nx[a][i]) + c2[i] (x - nx[a][i]) (x - nx[a][i]) + } } c3[i] (x - nx[a][i]) (x - nx[a][i]) (x - nx[a][i]); return (s); ------------------------------------------------------------------------ c1, c2 c3 i i i y 23

double lsq1(double nx[][50], double ny[][50], int n[], int c)---------- { double a, b, A=0, B=0, C=0, D=0; int i; or (i = 0; i < n[c]; i++) { A += nx[c][i] ny[c][i]; B += nx[c][i]; C += ny[c][i]; D += nx[c][i] nx[c][i]; a = (n[c] A - B C) / (n[c] D - B B); b = (C - a B) / n[c]; return (a);//lsq2 b ----------------------------------------------- } b a a b 24

1. 7 2. 8-1 1. 7 2. 8-1 1. 7 2. 8-1 1. 7 2. 8-1 1. 7 2. 8-1 1. 7 2. 8-1 1. 7 2. 8-1 25

1. 7 2. 8-17 26

1. 2. 3. 4. 5. 1. 7 2. 8-3 1. 7 2. 8-2 1. 7 2. 8-2 27

28

29

30

31

32

33

34

//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by riso.rc // #define IDC_COMBO1 1000 #define IDC_COMBO14 1013 35

#define IDC_EDIT1 1021 #define IDC_EDIT11 1031 #define IDC_xa1 1100 #define IDC_xa50 1149 #define IDC_ya1 1200 #define IDC_ya50 1249 #define IDC_xb1 1300 #define IDC_xb50 1349 #define IDC_yb1 1400 #define IDC_yb50 1449 #define IDC_xc1 1500 #define IDC_xc50 1549 #define IDC_yc1 1600 #define IDC_yc50 1649 #define IDC_xd1 1700 #define IDC_xd50 1749 #define IDC_yd1 1800 #define IDC_yd50 1849 #define IDC_xe1 1900 #define IDC_xe1 1949 #define IDC_ye1 2000 #define IDC_ye50 2049 #define GRAPH 40001 #define DEL 40002 #define VERSION 40003 36

#define SAVEBMP 40004 #define NEWFILE 40006 #define FILEOPEN 40007 #define SAVENAMEFILE 40009 #define SAVEFILE 40010 #define SETPRINTER 40011 #define PRINT 40012 #define EXIT 40013 #define SETGRAPH1 40016 #define SETGRAPH2 40017 #define SETGRAPH3 40018 #define SETGRAPH4 40019 #define SETGRAPH5 40020 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 125 #define _APS_NEXT_COMMAND_VALUE 40021 #define _APS_NEXT_CONTROL_VALUE 1269 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif 37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80