y = x 4 y = x 8 3 y = x 4 y = x 3. 4 f(x) = x y = f(x) 4 x =,, 3, 4, 5 5 f(x) f() = f() = 3 f(3) = 3 4 f(4) = 4 *3 S S = f() + f() + f(3) + f(4) () *4

Similar documents
2 H23 BioS (i) data d1; input group patno t sex censor; cards;

1 1.1 ( ). z = a + bi, a, b R 0 a, b 0 a 2 + b 2 0 z = a + bi = ( ) a 2 + b 2 a a 2 + b + b 2 a 2 + b i 2 r = a 2 + b 2 θ cos θ = a a 2 + b 2, sin θ =

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

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

微分積分 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.

, 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

Chap9.dvi

2010 II / y = e x y = log x = log e x 2. ( e x ) = e x 3. ( ) log x = 1 x 1.2 Warming Up 1 u = log a M a u = M a 0

D xy D (x, y) z = f(x, y) f D (2 ) (x, y, z) f R z = 1 x 2 y 2 {(x, y); x 2 +y 2 1} x 2 +y 2 +z 2 = 1 1 z (x, y) R 2 z = x 2 y

日本内科学会雑誌第97巻第7号

日本内科学会雑誌第98巻第4号

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

ii 3.,. 4. F. (), ,,. 8.,. 1. (75%) (25%) =7 20, =7 21 (. ). 1.,, (). 3.,. 1. ().,.,.,.,.,. () (12 )., (), 0. 2., 1., 0,.

tnbp59-21_Web:P2/ky132379509610002944

³ÎΨÏÀ

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

function2.pdf

本文/目次(裏白)

- II

() Remrk I = [0, ] [x i, x i ]. (x : ) f(x) = 0 (x : ) ξ i, (f) = f(ξ i )(x i x i ) = (x i x i ) = ξ i, (f) = f(ξ i )(x i x i ) = 0 (f) 0.

() 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 1 sin cos P (primary) S (secondly) 2 P S A sin(ω2πt + α) A ω 1 ω α V T m T m 1 100Hz m 2 36km 500Hz. 36km 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

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

( 28 ) ( ) ( ) 0 This note is c 2016, 2017 by Setsuo Taniguchi. It may be used for personal or classroom purposes, but not for commercial purp

H22 BioS t (i) treat1 treat2 data d1; input patno treat1 treat2; cards; ; run; 1 (i) treat = 1 treat =

201711grade1ouyou.pdf

5 Armitage x 1,, x n y i = 10x i + 3 y i = log x i {x i } {y i } 1.2 n i i x ij i j y ij, z ij i j 2 1 y = a x + b ( cm) x ij (i j )

スライド 1

Ł\”ƒ-2005

第90回日本感染症学会学術講演会抄録(I)

(, ) (, ) S = 2 = [, ] ( ) 2 ( ) 2 2 ( ) 3 2 ( ) 4 2 ( ) k 2,,, k =, 2, 3, 4 S 4 S 4 = ( ) 2 + ( ) ( ) (

1 I

Copyright c 2006 Zhenjiang Hu, All Right Reserved.

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

no35.dvi

日本内科学会雑誌第102巻第4号

Chap11.dvi

2

6.1 (P (P (P (P (P (P (, P (, P.

lecture

koji07-01.dvi

1

H22 BioS (i) I treat1 II treat2 data d1; input group patno treat1 treat2; cards; ; run; I

.. ( )T p T = p p = T () T x T N P (X < x T ) N = ( T ) N (2) ) N ( P (X x T ) N = T (3) T N P T N P 0


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

85 4

コンピュータ概論

or a 3-1a (0 b ) : max: a b a > b result a result b ( ) result Python : def max(a, b): if a > b: result = a else: result = b ret

all.dvi

1 No.1 5 C 1 I III F 1 F 2 F 1 F 2 2 Φ 2 (t) = Φ 1 (t) Φ 1 (t t). = Φ 1(t) t = ( 1.5e 0.5t 2.4e 4t 2e 10t ) τ < 0 t > τ Φ 2 (t) < 0 lim t Φ 2 (t) = 0

i

O1-1 O1-2 O1-3 O1-4 O1-5 O1-6

A S- hara/lectures/lectures-j.html r A = A 5 : 5 = max{ A, } A A A A B A, B A A A %

1 (1) () (3) I 0 3 I I d θ = L () dt θ L L θ I d θ = L = κθ (3) dt κ T I T = π κ (4) T I κ κ κ L l a θ L r δr δl L θ ϕ ϕ = rθ (5) l

II ( : )

6.1 (P (P (P (P (P (P (, P (, P.101



joho09.ppt

プログラム

放射線専門医認定試験(2009・20回)/HOHS‐05(基礎二次)

プリント

Microsoft Word - 触ってみよう、Maximaに2.doc

ii 3.,. 4. F. ( ), ,,. 8.,. 1. (75% ) (25% ) =7 24, =7 25, =7 26 (. ). 1.,, ( ). 3.,...,.,.,.,.,. ( ) (1 2 )., ( ), 0., 1., 0,.

, 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

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

A S hara/lectures/lectures-j.html ϵ-n 1 ϵ-n lim n a n = α n a n α 2 lim a n = 0 1 n a k n n k= ϵ

.. F x) = x ft)dt ), fx) : PDF : probbility density function) F x) : CDF : cumultive distribution function F x) x.2 ) T = µ p), T : ) p : x p p = F x

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

基礎数学I

II K116 : January 14, ,. A = (a ij ) ij m n. ( ). B m n, C n l. A = max{ a ij }. ij A + B A + B, AC n A C (1) 1. m n (A k ) k=1,... m n A, A k k

III ϵ-n ϵ-n lim n a n = α n a n α 1 lim a n = 0 1 n a k n n k= ϵ-n 1.1

,, Poisson 3 3. t t y,, y n Nµ, σ 2 y i µ + ɛ i ɛ i N0, σ 2 E[y i ] µ * i y i x i y i α + βx i + ɛ i ɛ i N0, σ 2, α, β *3 y i E[y i ] α + βx i

(ii) (iii) z a = z a =2 z a =6 sin z z a dz. cosh z z a dz. e z dz. (, a b > 6.) (z a)(z b) 52.. (a) dz, ( a = /6.), (b) z =6 az (c) z a =2 53. f n (z

2 G(k) e ikx = (ik) n x n n! n=0 (k ) ( ) X n = ( i) n n k n G(k) k=0 F (k) ln G(k) = ln e ikx n κ n F (k) = F (k) (ik) n n= n! κ n κ n = ( i) n n k n

ohpmain.dvi

17 ( ) II III A B C(100 ) 1, 2, 6, 7 II A B (100 ) 2, 5, 6 II A B (80 ) 8 10 I II III A B C(80 ) 1 a 1 = 1 2 a n+1 = a n + 2n + 1 (n = 1,

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

* n x 11,, x 1n N(µ 1, σ 2 ) x 21,, x 2n N(µ 2, σ 2 ) H 0 µ 1 = µ 2 (= µ ) H 1 µ 1 µ 2 H 0, H 1 *2 σ 2 σ 2 0, σ 2 1 *1 *2 H 0 H

プログラム

all.dvi

I, II 1, 2 ɛ-δ 100 A = A 4 : 6 = max{ A, } A A 10

II ( ) (7/31) II ( [ (3.4)] Navier Stokes [ (6/29)] Navier Stokes 3 [ (6/19)] Re

> > <., vs. > x 2 x y = ax 2 + bx + c y = 0 2 ax 2 + bx + c = 0 y = 0 x ( x ) y = ax 2 + bx + c D = b 2 4ac (1) D > 0 x (2) D = 0 x (3

春期講座 ~ 極限 1 1, 1 2, 1 3, 1 4,, 1 n, n n {a n } n a n α {a n } α {a n } α lim n an = α n a n α α {a n } {a n } {a n } 1. a n = 2 n {a n } 2, 4, 8, 16,

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 =

2009 I 2 II III 14, 15, α β α β l 0 l l l l γ (1) γ = αβ (2) α β n n cos 2k n n π sin 2k n π k=1 k=1 3. a 0, a 1,..., a n α a

2016.

第121回関東連合産科婦人科学会総会・学術集会 プログラム・抄録

f(x) = x (1) f (1) (2) f (2) f(x) x = a y y = f(x) f (a) y = f(x) A(a, f(a)) f(a + h) f(x) = A f(a) A x (3, 3) O a a + h x 1 f(x) x = a

‚åŁÎ“·„´Šš‡ðŠp‡¢‡½‹âfi`fiI…A…‰…S…−…Y…•‡ÌMarkovŸA“½fiI›ð’Í

f(x) = f(x ) + α(x)(x x ) α(x) x = x. x = f (y), x = f (y ) y = f f (y) = f f (y ) + α(f (y))(f (y) f (y )) f (y) = f (y ) + α(f (y)) (y y ) ( (2) ) f

Untitled

) ] [ 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

A

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

2000年度『数学展望 I』講義録

untitled

Transcription:

Simpson H4 BioS. Simpson 3 3 0 x. β α (β α)3 (x α)(x β)dx = () * * x * * ɛ δ

y = x 4 y = x 8 3 y = x 4 y = x 3. 4 f(x) = x y = f(x) 4 x =,, 3, 4, 5 5 f(x) f() = f() = 3 f(3) = 3 4 f(4) = 4 *3 S S = f() + f() + f(3) + f(4) () *4 S = 3 f( + i) i i=0 8 x =, 3,, 5, 3, 7, 4, 9, 5 i f(x) f(i) S S = f() + f ( 3 ) + f() + f ( 5 ) + f(3) + f ( 7 ) + f(4) + f *3 f(x) *4 f() f(4) ( 9 )

8 S = 7 f i=0 ( + i ) [a, b] n a, b h = b a n S n S = f(a + h i) h (3) i=0 n b a f(x)dx = lim n h n f(a + h i) i=0 f(x) *5 f(x) = x (0, ) * Dirac delta (distribution). 0 5 ( ) f(x) 5 y = x 4 y = x 4 *5 f(x) * x lim f(x) = (0, ) R x 0 dx 0 x = 3

S S = n = { } f() + f() { } + f() + f(3) { } f( + i) + f( + (i + )) i=0 { } + f(3) + f(4) { } + f(4) + f(5) S = { } f() + f() { } + f() + f(3) { } + f(3) + f(4) { } + f(4) + f(5) = f() + f() + f(3) + f(4) + f(5) = f() 3 + f( + i) + f(5) [a, b] n h = b a n (n + ) S n { } S = f(a + h i) + f(a + h (i + )) h i=0 n = f(a + h i) h n + f(a + h (i + )) h i=0 i=0 i=0 n = f(a + h i) h n + f(a + h i) h = f(a) h n + f(a + h i) h + f(b) h = f(a) h n + f(a + h i) h + f(b) h (4) 3 Simpson 8 x =,, 3 x = 3, 4, 5 (, f()), (, f()), (3, f(3)) (3, f(3)), (4, f(4)), (5, f(5)) 4

7 y = x 8 y = x Simpson Simpson 3 *7 3. Lagrange Simpson Lagrange Lagrange ( ) y = f(x) 3 (, y ), (x, y ), (x 3, y 3 ), x, x 3 *8 f(x) f(x) = (x x )(x x 3 ) ( x )( x 3 ) y + (x )(x x 3 ) (x )(x x 3 ) y + (x )(x x ) (x 3 )(x 3 x ) y 3 f(x) *9 3 (, y ), (x, y ), (x 3, y 3 ) f( ) = ( x )( x 3 ) ( x )( x 3 ) y + ( )( x 3 ) (x )(x x 3 ) y + ( )( x ) (x 3 )(x 3 x ) y 3 = y f(x ) = (x x )(x x 3 ) ( x )( x 3 ) y + (x )(x x 3 ) (x )(x x 3 ) y + (x )(x x ) (x 3 )(x 3 x ) y 3 = y f(x 3 ) = (x 3 x )(x 3 x 3 ) ( x )( x 3 ) y + (x 3 )(x 3 x 3 ) (x )(x x 3 ) y + (x 3 )(x 3 x ) (x 3 )(x 3 x ) y 3 = y 3 *0 *7 f(x) = ax + bx + c a, b, c 3 3 *8 *9 x *0 3 5

3.. Lagrange y = f(x) 3 (, ), (, 4), (3, 5) f(x) (, y ) = (, ), (x, y ) = (, 4), (x 3, y 3 ) = (3, 5) Lagrange f(x) = {x ( )} (x 3) { ( )} ( 3) + (x )(x 3) (x ){x ( )} 4 + {( ) } {( ) 3} (3 ){3 ( )} (x + )(x 3) 4(x )(x 3) (x )(x + ) = + + 3 5 = 0(x x ) + 8(x 4x + 3) + 5(x + x ) 30 = 0x + 0x + 0 + 8x 3x + 4 + 5x + 5x 30 30 = 3x 7x + 54 30 f() = 3 7 + 54 30 =, f( ) = 5 + 4 + 54 30 = 4, f(3) = 7 + 54 30 y = f(x) (, ), (, 4), (3, 5) = 5 9 3 y = 3x 7x + 54 30 y = f(x) 3 (, 3), (, 5), (4, 9) f(x) (, y ) = (, 3), (x, y ) = (, 5), (x 3, y 3 ) = (4, 9) Lagrange f(x) = (x )(x 4) (x )(x 4) (x )(x ) 3 + 5 + ( )( 4) ( )( 4) (4 )(4 ) 9

3(x )(x 4) 5(x )(x 4) 9(x )(x ) = + + 3 = (x x + 8) + 5(x 5x + 4) + 3(x 3x + ) = x x + + 5x 5x + 0 + 3x 9x + = x + f() = 3, f() = 5, f(4) = 9 (, 3), (, 5), (4, 9) 3 * 0 3 y = x + 3. Simpson Simpson Lagrange Simpson 3 (, y ), (x, y ), (x 3, y 3 ) < x < x 3 x 3 x = x = d * y = f(x) 3 f(x) x 3 S S = d y + 4d y + d y 3 (5), x, x 3 3 (, y ), (x, y ), (x 3, y 3 ) f(x) Lagrange f(x) = (x x )(x x 3 ) ( x )( x 3 ) y + (x )(x x 3 ) (x )(x x 3 ) y + (x )(x x ) (x 3 )(x 3 x ) y 3 * 3 3 * 3 7

x 3 S { (x x )(x x 3 ) S = f(x)dx = ( x )( x 3 ) y + (x )(x x 3 ) (x )(x x 3 ) y + (x x } )(x x ) (x 3 )(x 3 x ) y 3 dx S = y ( x )( x 3 ) y 3 + (x 3 )(x 3 x ) (x x )(x x 3 )dx + y (x )(x x 3 ) (x )(x x 3 )dx (x )(x x )dx () *3 (x x )(x x 3 )dx = { } (x ) + ( x ) (x x 3 )dx = (x )(x x 3 )dx + ( x ) (x x 3 )dx = [ ] x3 (x 3 ) 3 + ( x ) (x x 3) = (x 3 ) 3 + ( x ) {0 } ( x 3 ) ( = d3 + d ) ) ( ( d x 3 x = x = d ), x 3 = d = d3 (7) () (x )(x x 3 )dx = (x 3 ) 3 = d3 (8) 3 (x )(x x )dx = = (x ){(x x 3 ) + (x 3 x )}dx (x )(x x 3 )dx + (x 3 x ) = (x 3 ) 3 = (x 3 ) 3 = d3 + d d [ (x x ) + (x 3 x ) ] x3 + (x 3 x ) (x 3 ) ( x 3 x = x = d ) (x )dx = d3 (9) *3 () Z β α (β α)3 (x α)(x β)dx = Z β Z β n o Z β Z β (x α)(x γ)dx = (x α) (x β) + (β γ) dx = (x α)(x β)dx + (β γ) (x α)dx α α α α 8

(7) (8) (9) () ) y S = ( x )( x 3 ) d3 + y ( (x )(x x 3 ) d3 + = y ( d ) ( d) + y ( d d ) d3 ) ( d3 + y 3 d d d3 y 3 (x 3 )(x 3 x ) d3 ( x = x 3 x = d, x 3 = d ) = d y + 4d y + d y 3 8 y = x 8 x 3 Simpson S (, ), (, ), (3, 3 ) 3 d f(x) = d = S = + 4 + 3 = 0 8 = 0 9 3. dx x = [log x]3 = log(3) log().098 3 3.. Simpson Lagrange Simpson x i y y i = f(x i ) d 3.3 Simpson 3 Simpson 9

f(x) = x x 5 h =, 0., 0.0, 0.00, 0.000 5 h = SAS =, x =, x 3 = 3, x 4 = 4, x 5 = 5 y y = f( ) = =, y = f(x ) =, y 3 = f(x 3 ) = 3, y 4 = f(x 4 ) = 4 y = x 4 3 y = x 4 4 y = x 8 (i) 4 0 f(x)dx h = = 5 4 f(x i ) =.0833 ( + + 3 + ) 4 0

(ii) 4 0 f(x)dx f( ) h 4 + h f(x i ) + f(x 5 ) h i= = ( + + 3 + ) + 4 5 =.83333 (iii) Simpson 3 (, y ), (x, y ), (x 3, y 3 ) S = d y + 4d y + d y 3 3 (x 3, y 3 ), (x 4, y 4 ), (x 5, y 5 ) S = d y 3 + 4d y 4 + d y 5 ( d S = S + S = y + 4d y + d ) ( d y 3 + y 3 + 4d y 4 + d ) y 5 = d y + 4d y + d y 3 + 4d y 4 + d y 5 = + 8 + 4 3 + 8 4 + 5. y 3 S, S 3.4 Simpson y 3 Simpson S : {, x, x 3 }, S : {x 3, x 4, x 5 } SAS

Simpson < x < < x m < x m+ f(x i ) y i x i+ x i = d d (i =, m + ) 4d h i = (i : ) d (i :, m + ) Simpson S S = m+ y i h i (0) S = d y + 4 y + d y 3 S = S 3 = S 4 =.. S n = d y 3 + 4 y 4 + d y 5 d y 5 + 4 y + d y 7 d y 7 + 4 y 8 + d y 9 d y n + 4 y n + d y n+ d y y n+ y, y 4,, y n 4d d y 3, y 5,, y n 4 f(x) Simpson n

x f(x) f(x) f(x) f( ) h h f( ) h f( ) x f(x ) h h f(x ) h i f(x i ) 3 x 3 f(x 3 ) h 3 h 3 f(x 3 )... n x n f(x n ) h n h n f(x n ) n x n f(x n ) h n h n f(x n ).. 3 h i f(x i ) n. h i f(x i ) n h i f(x i ) n h i f(x i ) () *4 (3)(4)(0) 5 < x < x 3 < x 4 < x 5 h S = h f( ) + h f(x ) + h f(x 3 ) + h f(x 4 ) h = h = h 3 = h 4 = h S = 4 h i f(x i ) S = h f() + h f(x ) + h f(x 3 ) + h f(x 4 ) + h f(x 5) h = h 5 = h, h = h 3 = h 4 = h S = 5 h i f(x i ) Simpson S = d f() + 4d f(x ) + d f(x 3) + 4d f(x 4) + d f(x ) d h = h 5 = d, h = h 4 = 4d, h 3 = d S = 5 h i f(x i ) *4 n X f(x i ) h i 3

SAS *5 n, step, start, end no * %macro rect(start, end, step, no) data d no = &no n = (&end - &start) / &step + * step = &step * do to (n-) * x = &start + (i-) * &step * f = %f(x) * h = &step * area + f * h * output end run data out &no length no 8. type $. set d end=final type = rectangular if final then output drop i x f h run %mend rect * %macro trape(start, end, step, no) data d no = &no n = (&end - &start) / &step + * step = &step * do i = to n * x = &start + (i-) * &step * f = %f(x) * if or i=n then h= &step/ * else h = &step * area + f * h * output end run n o *5 + 4 0 (0 4)/ + = 4 4,, 8, 0 4

data out &no length no 8. type $0. set d end=final type = trapezoid if final then output drop i x f h run %mend trape *Simpson %macro simp(start, end, step, no) data d3 no = &no n = (&end - &start) / &step + * d = *&step * step = &step * do i = to n * x = &start + (i-)*d / * f = %f(x) if or i=n then area + f * d / * else if mod(i, ) = 0 then area + f * 4 * d / * else area + f * * d / * output end run data out3 &no length no 8. type $0. set d3 end=final type = Simpson if final then output drop i x f run %mend simp 3 %macro exe0(start, end, step, no) %rect(&start, &end, &step, &no) %trape(&start, &end, &step, &no) %simp(&start, &end, &step, &no) %mend exe0 5 5

%macro exe(start, end, no) %exe0(&start, &end,, &no) %exe0(&start, &end, 0., %eval(&no + )) %exe0(&start, &end, 0.0, %eval(&no + )) %exe0(&start, &end, 0.00, %eval(&no + 3)) %exe0(&start, &end, 0.000, %eval(&no + 4)) * data out rect &no set out &no out %eval(&no + ) out %eval(&no + ) out %eval(&no + 3) out %eval(&no + 4) run * data out trape &no set out &no out %eval(&no + ) out %eval(&no + ) out %eval(&no + 3) out %eval(&no + 4) run *Simpson data out simp &no set out3 &no out3 %eval(&no + ) out3 %eval(&no + ) out3 %eval(&no + 3) out3 %eval(&no + 4) run %mend exe 5 [ ] 5 x dx = log(x) = log(5) data check area = log(5) run f(x) = x 5 x area.0944 f(x) %macro f(x) / &x %mend f

%exe(, 5, ) f(x) = x 5 3 x f(x) = x 5 x no type n step area rectangular 5.0000.08333 rectangular 4 0.000.504 3 rectangular 40 0.000.345 4 rectangular 400 0.000.0984 5 rectangular 4000 0.000.0948 no type n step area trapezoid 5.0000.8333 trapezoid 4 0.000.04 3 trapezoid 40 0.000.0945 4 trapezoid 400 0.000.0944 5 trapezoid 4000 0.000.0944 4 f(x) = x x 5 Simpson no type n d step area Simpson 5.0000.0000. Simpson 4 0.000 0.000.0944 3 Simpson 40 0.000 0.000.0944 4 Simpson 400 0.000 0.000.0944 5 Simpson 4000 0.000 0.000.0944 Simpson Simpson n = 4 * f(x) = exp(x) 0 x 4 4 0 f(x)dx = 4 0 exp(x)dx = [ ] 4 exp(x) = e 4 0 data check area = exp(4) - exp(0) run * 7

5 f(x) = exp(x) 0 x 4 area 53.598 f(x) %macro f(x) exp(&x) %mend f %exe(0, 4, ) f(x) = exp(x) 0 x 4 7 f(x) = x 5 x no type n step area rectangular 5.0000 3.99 rectangular 4 0.000 50.99 3 rectangular 40 0.000 53.330 4 rectangular 400 0.000 53.574 5 rectangular 4000 0.000 53.5955 no type n step area trapezoid 5.0000 57.999 trapezoid 4 0.000 53.48 3 trapezoid 40 0.000 53.598 4 trapezoid 400 0.000 53.598 5 trapezoid 4000 0.000 53.598 8 f(x) = x x 5 Simpson no type n d step area Simpson 5.0000.0000 53.838 Simpson 4 0.000 0.000 53.598 3 Simpson 40 0.000 0.000 53.598 4 Simpson 400 0.000 0.000 53.598 5 Simpson 4000 0.000 0.000 53.598 n = 4 Simpson n = 40 4 8

3 ( f(x) = exp x ) x 3 h =, 0., 0.0, 0.00, 0.000 5 3 exp ) ( x dx = 3 π = ( 3 π π exp π exp = π {Φ(3) Φ( )} ( x ) dx ( x ) dx π exp ) ) ( x dx data check pi = constant( pi ) * pi π area = sqrt( * pi) * (cdf( norm, 3) - cdf( norm, -) run 9 f(x) = exp x x 3 area.0555 f(x) %macro f(x) exp(-/ * (&x**)) %mend f %exe(-, 3, ) 3 9

0 f(x) = exp x x 3 f(x) = exp x x 3 no type n step area rectangular 5.0000.34840 rectangular 4 0.000.3479 3 rectangular 40 0.000.0853 4 rectangular 400 0.000.0585 5 rectangular 4000 0.000.0558 no type n step area trapezoid 5.0000.0509 trapezoid 4 0.000.050 3 trapezoid 40 0.000.0555 4 trapezoid 400 0.000.0555 5 trapezoid 4000 0.000.0555 f(x) = exp x x 3 Simpson no type n d step area Simpson 5.0000.0000.40 Simpson 4 0.000 0.000.055 3 Simpson 40 0.000 0.000.0555 4 Simpson 400 0.000 0.000.0555 5 Simpson 4000 0.000 0.000.0555 n Simpson [] Jennison,C., and Turnbull,B,W. (999) Group Sequential Methods with application to Clinical Trials. Chapman Hall/CRC. [], 0,. [] 0