c-all.dvi

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

A


i

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

1 8, : 8.1 1, 2 z = ax + by + c ax by + z c = a b +1 x y z c = 0, (0, 0, c), n = ( a, b, 1). f = n i=1 a ii x 2 i + i<j 2a ij x i x j = ( x, A x), f =

x 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 )

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

1/1 lim f(x, y) (x,y) (a,b) ( ) ( ) lim limf(x, y) lim lim f(x, y) x a y b y b x a ( ) ( ) xy x lim lim lim lim x y x y x + y y x x + y x x lim x x 1

応力とひずみ.ppt

y π π O π x 9 s94.5 y dy dx. y = x + 3 y = x logx + 9 s9.6 z z x, z y. z = xy + y 3 z = sinx y 9 s x dx π x cos xdx 9 s93.8 a, fx = e x ax,. a =

x () g(x) = f(t) dt f(x), F (x) 3x () g(x) g (x) f(x), F (x) (3) h(x) = x 3x tf(t) dt.9 = {(x, y) ; x, y, x + y } f(x, y) = xy( x y). h (x) f(x), F (x

A

#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

7. y fx, z gy z gfx dz dx dz dy dy dx. g f a g bf a b fa 7., chain ule Ω, D R n, R m a Ω, f : Ω R m, g : D R l, fω D, b fa, f a g b g f a g f a g bf a

,. Black-Scholes u t t, x c u 0 t, x x u t t, x c u t, x x u t t, x + σ x u t, x + rx ut, x rux, t 0 x x,,.,. Step 3, 7,,, Step 6., Step 4,. Step 5,,.

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

P02.ppt

(1) (2) (3) (4) HB B ( ) (5) (6) (7) 40 (8) (9) (10)

joho09.ppt

untitled

1. 2 P 2 (x, y) 2 x y (0, 0) R 2 = {(x, y) x, y R} x, y R P = (x, y) O = (0, 0) OP ( ) OP x x, y y ( ) x v = y ( ) x 2 1 v = P = (x, y) y ( x y ) 2 (x

sim0004.dvi

, 1 ( f n (x))dx d dx ( f n (x)) 1 f n (x)dx d dx f n(x) lim f n (x) = [, 1] x f n (x) = n x x 1 f n (x) = x f n (x) = x 1 x n n f n(x) = [, 1] f n (x

<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63>

I, II 1, A = A 4 : 6 = max{ A, } A A 10 10%


6. Euler x

行列代数2010A

さくらの個別指導 ( さくら教育研究所 ) A a 1 a 2 a 3 a n {a n } a 1 a n n n 1 n n 0 a n = 1 n 1 n n O n {a n } n a n α {a n } α {a

1 4 2 EP) (EP) (EP)

18 ( ) I II III A B C(100 ) 1, 2, 3, 5 I II A B (100 ) 1, 2, 3 I II A B (80 ) 6 8 I II III A B C(80 ) 1 n (1 + x) n (1) n C 1 + n C

II A A441 : October 02, 2014 Version : Kawahira, Tomoki TA (Kondo, Hirotaka )

(2000 )

() x + y + y + x dy dx = 0 () dy + xy = x dx y + x y ( 5) ( s55906) 0.7. (). 5 (). ( 6) ( s6590) 0.8 m n. 0.9 n n A. ( 6) ( s6590) f A (λ) = det(a λi)

(1) + b = b +, (2) b = b, (3) + 0 =, (4) 1 =, (5) ( + b) + c = + (b + c), (6) ( b) c = (b c), (7) (b + c) = b + c, (8) ( + b)c = c + bc (9


(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

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

8.1 Fubini 8.2 Fubini 9 (0%) 10 (50%) Carathéodory 10.3 Fubini 1 Introduction 1 (1) (2) {f n (x)} n=1 [a, b] K > 0 n, x f n (x) K < ( ) x [a

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

kiso2-09.key

A A = a 41 a 42 a 43 a 44 A (7) 1 (3) A = M 12 = = a 41 (8) a 41 a 43 a 44 (3) n n A, B a i AB = A B ii aa

73

xy n n n- n n n n n xn n n nn n O n n n n n n n n

1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main

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

(1) (2) (1) (2) 2 3 {a n } a 2 + a 4 + a a n S n S n = n = S n

No2 4 y =sinx (5) y = p sin(2x +3) (6) y = 1 tan(3x 2) (7) y =cos 2 (4x +5) (8) y = cos x 1+sinx 5 (1) y =sinx cos x 6 f(x) = sin(sin x) f 0 (π) (2) y

III No (i) (ii) (iii) (iv) (v) (vi) x 2 3xy + 2 lim. (x,y) (1,0) x 2 + y 2 lim (x,y) (0,0) lim (x,y) (0,0) lim (x,y) (0,0) 5x 2 y x 2 + y 2. xy x2 + y


untitled

Part () () Γ Part ,

) ] [ h m x + y + + V x) φ = Eφ 1) z E = i h t 13) x << 1) N n n= = N N + 1) 14) N n n= = N N + 1)N + 1) 6 15) N n 3 n= = 1 4 N N + 1) 16) N n 4

1 4 1 ( ) ( ) ( ) ( ) () 1 4 2

- II

(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


2009 IA 5 I 22, 23, 24, 25, 26, (1) Arcsin 1 ( 2 (4) Arccos 1 ) 2 3 (2) Arcsin( 1) (3) Arccos 2 (5) Arctan 1 (6) Arctan ( 3 ) 3 2. n (1) ta

main

(3) (2),,. ( 20) ( s200103) 0.7 x C,, x 2 + y 2 + ax = 0 a.. D,. D, y C, C (x, y) (y 0) C m. (2) D y = y(x) (x ± y 0), (x, y) D, m, m = 1., D. (x 2 y

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)

, x R, f (x),, df dx : R R,, f : R R, f(x) ( ).,, f (a) d f dx (a), f (a) d3 f dx 3 (a),, f (n) (a) dn f dx n (a), f d f dx, f d3 f dx 3,, f (n) dn f

r 1 m A r/m i) t ii) m i) t B(t; m) ( B(t; m) = A 1 + r ) mt m ii) B(t; m) ( B(t; m) = A 1 + r ) mt m { ( = A 1 + r ) m } rt r m n = m r m n B

II No.01 [n/2] [1]H n (x) H n (x) = ( 1) r n! r!(n 2r)! (2x)n 2r. r=0 [2]H n (x) n,, H n ( x) = ( 1) n H n (x). [3] H n (x) = ( 1) n dn x2 e dx n e x2

x(t) + t f(t, x) = x(t) + x (t) t x t Tayler x(t + t) = x(t) + x (t) t + 1 2! x (t) t ! x (t) t 3 + (15) Eular x t Teyler 1 Eular 2 Runge-Kutta

i 18 2H 2 + O 2 2H 2 + ( ) 3K

[ ] x f(x) F = f(x) F(x) f(x) f(x) f(x)dx A p.2/29

all.dvi

pdf

Gauss

1 (1) ( i ) 60 (ii) 75 (iii) 315 (2) π ( i ) (ii) π (iii) 7 12 π ( (3) r, AOB = θ 0 < θ < π ) OAB A 2 OB P ( AB ) < ( AP ) (4) 0 < θ < π 2 sin θ

資料

No δs δs = r + δr r = δr (3) δs δs = r r = δr + u(r + δr, t) u(r, t) (4) δr = (δx, δy, δz) u i (r + δr, t) u i (r, t) = u i x j δx j (5) δs 2

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裱£²²ó ¡Ý½ÉÂꣲ¤Î²òÀ⡤±é½¬£²¡Ý

2012 IA 8 I p.3, 2 p.19, 3 p.19, 4 p.22, 5 p.27, 6 p.27, 7 p

ii

‚æ4›ñ

4 4. A p X A 1 X X A 1 A 4.3 X p X p X S(X) = E ((X p) ) X = X E(X) = E(X) p p 4.3p < p < 1 X X p f(i) = P (X = i) = p(1 p) i 1, i = 1,, r + r

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

C言語によるアルゴリズムとデータ構造

II 2 II

40 6 y mx x, y 0, 0 x 0. x,y 0,0 y x + y x 0 mx x + mx m + m m 7 sin y x, x x sin y x x. x sin y x,y 0,0 x 0. 8 x r cos θ y r sin θ x, y 0, 0, r 0. x,

8.1 Fubini 8.2 Fubini 9 (0%) 10 (50%) Carathéodory 10.3 Fubini 1 Introduction [1],, [2],, [3],, [4],, [5],, [6],, [7],, [8],, [1, 2, 3] 1980

2014 S hara/lectures/lectures-j.html r 1 S phone: ,

(iii) 0 V, x V, x + 0 = x. 0. (iv) x V, y V, x + y = 0., y x, y = x. (v) 1x = x. (vii) (α + β)x = αx + βx. (viii) (αβ)x = α(βx)., V, C.,,., (1)

( )/2 hara/lectures/lectures-j.html 2, {H} {T } S = {H, T } {(H, H), (H, T )} {(H, T ), (T, T )} {(H, H), (T, T )} {1

4 4 4 a b c d a b A c d A a da ad bce O E O n A n O ad bc a d n A n O 5 {a n } S n a k n a n + k S n a a n+ S n n S n n log x x {xy } x, y x + y 7 fx


2 P.S.P.T. P.S.P.T. wiki 26

1 Introduction 1 (1) (2) (3) () {f n (x)} n=1 [a, b] K > 0 n, x f n (x) K < ( ) x [a, b] lim f n (x) f(x) (1) f(x)? (2) () f(x)? b lim a f n (x)dx = b



II (10 4 ) 1. p (x, y) (a, b) ε(x, y; a, b) 0 f (x, y) f (a, b) A, B (6.5) y = b f (x, b) f (a, b) x a = A + ε(x, b; a, b) x a 2 x a 0 A = f x (

all.dvi

1 1 [1] ( 2,625 [2] ( 2, ( ) /

超初心者用

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)

III 1 (X, d) d U d X (X, d). 1. (X, d).. (i) d(x, y) d(z, y) d(x, z) (ii) d(x, y) d(z, w) d(x, z) + d(y, w) 2. (X, d). F X.. (1), X F, (2) F 1, F 2 F

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

Transcription:

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 SI a; b #include <stdioh> /* REIDI */ main() int a,b,wa,sa,seki,shou; scanf("%d %d",&a,&b); printf("a=%d, wa=a+b; sa=a-b; seki=a*b; shou=a/b; b=%d\n",a,b); printf("wa=%d, Sa=%d, Seki=%d, Shou=%d\n",wa,sa,seki,shou);

3 main() f g 2 #include <stdioh> 3 int int float char 4 scanf printf 5 = 6 + - * / % 7 8 23 234 234E2 9 abc bc a 2 (b+c)2a x a b c a+b x x 3 x exp #include <stdioh> #include <mathh> /* REIDI 3: Numerical alculation */ main() float x,x2,x3,rx,sx,ex;

4 scanf("%f",&x); x2=x*x; /* square */ x3=x*x*x; /* cube */ rx=sqrt(x); /* square root */ sx=sin(x); /* sine */ ex=exp(x); /* exponential */ printf("%f %f %f %f %f\n",x2, x3, rx, sx, ex); #include <mathh> cos(x) tan(x) log(x)=log e (x) fabs(x) 4 x #include <stdioh> #include <mathh> /* REIDI 4 */ float ube(float x); main() float x,x2,x3,rx,sx,ex; scanf("%f",&x); x2=x*x; x3=ube(x); /* ube */ rx=sqrt(x); sx=sin(x); ex=exp(x); printf("%f %f %f %f %f\n",x2, x3, rx, sx, ex); float ube(float a) /* */ float a3; a3=a*a*a; return(a3);

5 x(y) 2 oat ube(oat x); oat x oat ube 3 x a a3 ube(x) return(a3); 4a: a3 a ube 5 a b max if p24 if ( ) ; ; else ; ; else int max(int x,int y) int max; if (x>y) max = x; else max = y; return(max); g 6 a b 7 a b c

6 p78 8 n! int kaijou(int k) if (k>) return(kaijou(k-)*k); else return(); 9 n n (n 2) (n 4) 2 n n (n 2) (n 4) n nmod2 Euler dy=dx = f(x; y) x = x y = y h y(x + h) y(x)+hf(x; y); (2:) (x n ;y n ) (x n+ x n + h; y n+ )

7 y 6 (x n+ ;y n+ ) # 6 # ## # ## hf(x n ;y n ) # ## - (x n ;y n ) h - x y=y+f(x,y)*h; x=x+h; x=x+h x h x while ( ) ; ; ; 2 /* Rei 2 */ #include <stdioh> main() int i,wa; i=; wa=; while (i<=) wa=wa+i; i=i+;

8 printf("sum of,2,%d=%d\n",i-,wa); while while (i<=) wa+=i; i++; wa+=i wa=wa+i a-=b a=a-b i++ ++i i i=i+ i- - --i i i=i- j=++i j=i++ j=++i j=i++ j=i i n=3 x=n++; x 3 n 4 x=++n; x 4 while while (i<=) wa+=i++; 22 23 dy=dx = x y () Euler x = y = Euler Euler ~y n+ = y n + f(x n ;y n ) h y n+ = y n + f(x n;y n )+f(x n+ ; ~y n+ ) 2 Euler 24 23 h (2:2)

9 Euler y () n = y n + h 2 f () n ; f () n = f(x n ;y n ); y (2) n = y n + h 2 f (2) n ; f (2) n = f(x n + h 2 ;y() n ); y (3) n = y n + hf (3) n ; f (3) n = f(x n + h 2 ;y(2) n ); y n+ = y n + h () (f n +2f (2) n +2f (3) n + f (4) n ); f (4) n = f(x n+ ;y (3) n ) (2:3) 6 dy dx = f y(x; y; z) dz dx = f z(x; y; z) (2:4) Euler while (x<=xmax y=y+fy(x,y,z)*h; z=z+fz(x,y,z)*h; ~y n+ = y n + f y (x n ;y n ;z n ) h ~z n+ = z n + f z (x n ;y n ;z n ) h y n+ = y n + f y(x n ;y n ;z n )+f y (x n+ ; ~y n+ ; ~z n+ ) 2 z n+ = z n + f z(x n ;y n ;z n )+f z (x n+ ; ~y n+ ; ~z n+ ) 2 y2=y+5*(fy(x,y,z)+fy(x+h,y,z))*h; z=z+5*(fz(x,y,z)+fz(x+h,y,z))*h; y=y2; x+=h; h h (2:5) y 2 y y

y d 2 y=dx 2 = f(x; y; y ) = z dz dx = f(x; y; z) dy dx = z (2:6) 25 y = y x = y =;y = x q () (T =x) q = T x (3:) 5 5Js m K E t = q (3:2) x c E = ct c T t = 2 T (3:3) x 2 x = x L u = T T t t = (cl 2 =) u t = 2 u (3:4) x 2 x u t

x x (h) N + u ;u ;u 2 ; ;u N u x = u i+ u i h (3:5) 2 u x 2 = u i+ 2u i + u i h 2 (3:6) u i (t +t) =u i (t)+ t h [u i+(t) 2u 2 i (t)+u i (t)] (3:7) t t x i ; ; 2; ;N t u i = for i =; 2; ;N u = u N = (T = ) u ;u ; ;u N u[] u[i] u[] float u[]; i=; while (i<=n-) u[i]+=r*(u[i+]-2*u[i]+u[i-]); i++; r t=h 2 i= i=n u i while for (i= ; ; i )

2 for (i=; i<=n-; i++) u[i]+=r*(u[i+]-2*u[i]+u[i-]); while i=; (i<=n-) i++; for 3 i 32 t =: :2 :5 r = H 2 x + 2 2 y + 2 =4G (3:8) 2 z2 c T t = 2 T x 2 + H (3:9) u=t 2 u = H (3:) x2 H H T =L 2 x u i+ 2u i + u i = H i h 2 (3:) u = u N = H i - u ;u 2 ; ;u N N - 2 2 2 2 u u 2 u 3 u N = H h 2 u H 2 h 2 H 3 h 2 H N h 2 u N (3:2)

3 r =t=h 2 () t u i (t +t) =u i (t)+ t h [u i+(t) 2u 2 i (t)+u i (t)] (3:7) 2 u=x 2 u(t) u(t+ t) u i (t+t) =u i (t)+ t h f[u i+(t)2u 2 i (t)+u i (t)]+()[u i+ (t+t)2u i (t+t)+u i (t+t)]g (3:8) ( <) ==2 ==2 t +t ru i (t +t)+(2+2r)u i (t +t) ru i+ (t +t) =ru i (t)+(2 2r)u i (t)+ru i+ (t): (3:9) t +t 2+2r r r 2+2r r r 2+2r r r 2+2r r r 2+2r u u u 2 u 3 u N = b b 2 b 3 b N (3:) b i = ru i (t)+(2 2r)u i (t)+ru i+ (t); (3:) u = u N = b =(2 2r)u (t)+ru 2 (t); (3:2a) b N = ru N2 (t)+(22r)u N (t)+2r; (3:2b) t +t u u

4 8>< = x = b (4:) a a 2 a n a 2 a 22 a 2n a n a n2 a nn x = b = a () x + a () 2 x 2 + + a () n x n = b () # a () 2 x + a () 22 x 2 + + a () 2n x n = b () 2 #2 a () 3 x + a () 32 x 2 + + a () 3n x n = b () 3 #3 >: a () n x + a () n2 x 2 + + a () nnx n = b () n #n x # x x 2 x n b b 2 b n (4:2) (4:3) (4:4) (4:5) #2 m 2 = a 2 a (4:6) (a () 22 m 2a () 2 )x 2 + +(a () 2n m 2a () n )x n = b () 2 m 2 b () (4:7) # #3 m 3 = a 3 a (a () 32 m 3a () 2 )x 2 + +(a () 3n m 3a () n )x n = b () 3 m 3 b () 8>< >: a () x + a () 2 x 2 + + a () n x n = b () # a (2) 22 x 2 + + a (2) 2n x n = b (2) 2 #2 a (2) 32 x 2 + + a (2) 3n x n = b (2) 3 #3 2 a (2) n2 x 2 + + a (2) nn x n = b (2) n #n

5 a (2) ij b(2) i ( a (2) ij = a () ij m i a () j i; j =2; 3; ;n b (2) i = b () i m i b () i =2; 3; ;n #3' x 2 x i for (k=; k <= n-; k++) d[k]=a[k][k]; for (i=k+; i<=n; i++) m[i][k]=a[i][k]/d[k]; for (j=k+; j<=n; j++) a[i][j]=a[i][j]-m[i][k]*a[k][j]; b[i]=b[i]-m[i][k]*b[k]; U = (4:9) U x = b (4:) a () a () 2 a () n b = a (2) 22 a (2) 2n b () b (2) 2 b (n) n a (n) nn (4:) (4:) U n n x n =(b (n) n n 2 x n2 =(b (n2) n2 x n = b (n) n =a(n) nn (4:3) a (n) n n x n)=a (n) n n (4:4) a (n2) n2 n x n a (n2) n2 n x n)=a (n2) n2 n2 (4:5) x i

6 x[n]=b[n]/a[n][n]; for (i=n-; i>=; i--) x[i]=b[i]; for (j=i+; j<=n; j++) x[i]=x[i]-a[i][j]*x[j]; x[i]=x[i]/a[i][i]; x H = [a; b] N I = Z b a f(x)dx; (5:) h =(b a)=n (5:2) I " # N X I N = h 2 f(a)+ f(a + nh)+ 2 f(b) n= (5:3) N N N = N =2,N =4, I N I 2N I (57) I N I 2N N = I =[f(a)+f(b)] b a 2 N (h )I 2N J N = h NX n= f a +(n 2 )h (5:4) (5:5)

7 I N h =(b a)=n I 2N = I N + J N 2 I 2N ji N I 2N j < ( 6 ) Z 2 I = dx(= ) (5:7) +x2 (5:6) f(x) Z I = f(x)dx (5:8) I(h) =h X n= f(nh) (5:9) f(nh) sin x exp x2 2 x f(nh) f((n +)h),f((n +)h) I(h) h h ji(h) I(h=2)j Z I =2 exp x2 2 dx(= p 2) (5:) a b c d e f g a ;a 2 ;a 3 ; a[] a[i] a[i] i=3 a[3] int a[]; float b[]; f(nh)

8 a[] a[] a[2] a[99] b[] b[] b[2] b[9] c:testdat 5 88 45 6 9 c:testdat main() FILE *inf; inf inf = fopen("c:testdat", "r"); c:testdat inf r read w a fscanf(inf,&a[i]) a[i] scanf( inf fscanf(inf, fprintf(outf, saidai_chi=; for (i= ;i<= n ; i++) if (a[i]> saidai_chi) end; saidaichi=a[i];

9 () (,) x- 639 y- 399 (2) #include #include <graphicsh> main() gd = DETET; initgraph(&gd, &gm, "b:\\turbo_c\\bgi"); gd gm int (3) (x[];y[]); (x[];y[]); moveto(fx(x[]), Fy(y[])); for (i:=; i<=n; ++i) lineto(fx(x[i]), Fy(y[i])); moveto(int x, int y) (x,y) lineto(int x, int y) (x,y) Fx(x) x 639 Fy(y) y 399 int Fx(x:real) return(639*x); x=( ) Fx=( 639) (4) closegraph; y printf("do you erase this graph?"); scanf("%c",&y); if (y=='y') then closegraph;

2 y char y; DOS :\> g cls :\> hardcopy [copy] [cntl]+[copy] [graph]+[copy]