Microsoft Word - 資料 docx

Similar documents
情報活用資料

Microsoft Word - 資料 (テイラー級数と数値積分).docx

Microsoft Word - 03-数値計算の基礎.docx

情報活用資料

取扱説明書 [N-03A]

情報処理概論(第二日目)

取扱説明書[N906i]

演習2

3. :, c, ν. 4. Burgers : t + c x = ν 2 u x 2, (3), ν. 5. : t + u x = ν 2 u x 2, (4), c. 2 u t 2 = c2 2 u x 2, (5) (1) (4), (1 Navier Stokes,., ν. t +

3. :, c, ν. 4. Burgers : u t + c u x = ν 2 u x 2, (3), ν. 5. : u t + u u x = ν 2 u x 2, (4), c. 2 u t 2 = c2 2 u x 2, (5) (1) (4), (1 Navier Stokes,.,

untitled

Evoltion of onentration by Eler method (Dirihlet) Evoltion of onentration by Eler method (Nemann).2 t n =.4n.2 t n =.4n : t n

Fortran90/95 [9]! (1 ) " " 5 "Hello!"! 3. (line) Fortran Fortran 1 2 * (1 ) 132 ( ) * 2 ( Fortran ) Fortran ,6 (continuation line) 1

曲面のパラメタ表示と接線ベクトル

OpenMP¤òÍѤ¤¤¿ÊÂÎó·×»»¡Ê£±¡Ë

OpenMP¤òÍѤ¤¤¿ÊÂÎó·×»»¡Ê£±¡Ë

untitled

インテル(R) Visual Fortran Composer XE 2013 Windows版 入門ガイド

橡00horse.PDF

<4D F736F F F696E74202D D F95C097F D834F E F93FC96E5284D F96E291E85F8DE391E52E >

文庫●注文一覧表2016c(7月)/岩波文庫

PowerPoint プレゼンテーション

Compiled MODELSでのDFT位相検出装置のモデル化と評価


2 3

スライド 1

untitled

OpenMP¤òÍѤ¤¤¿ÊÂÎó·×»»¡Ê£²¡Ë

2.2 h h l L h L = l cot h (1) (1) L l L l l = L tan h (2) (2) L l 2 l 3 h 2.3 a h a h (a, h)

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


<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63>

Microsoft PowerPoint - 講義10改.pptx

( ) ( )

, 3, 6 = 3, 3,,,, 3,, 9, 3, 9, 3, 3, 4, 43, 4, 3, 9, 6, 6,, 0 p, p, p 3,..., p n N = p p p 3 p n + N p n N p p p, p 3,..., p n p, p,..., p n N, 3,,,,

n 第1章 章立ての部分は、書式(PC入門大見出し)を使います



コンピュータ概論


プラズマ核融合学会誌5月号【81-5】/内外情報_ソフト【注:欧フォント特殊!】


/9/ ) 1) 1 2 2) 4) ) ) 2x + y 42x + y + 1) 4) : 6 = x 5) : x 2) x ) x 2 8x + 10 = 0

EPSON エプソンプリンタ共通 取扱説明書 ネットワーク編

untitled

ありがとうございました

EPSON エプソンプリンタ共通 取扱説明書 ネットワーク編

公務員人件費のシミュレーション分析

198

ネットショップ・オーナー2 ユーザーマニュアル


新婚世帯家賃あらまし

Gmech08.dvi

( ) 2.1. C. (1) x 4 dx = 1 5 x5 + C 1 (2) x dx = x 2 dx = x 1 + C = 1 2 x + C xdx (3) = x dx = 3 x C (4) (x + 1) 3 dx = (x 3 + 3x 2 + 3x +

演習1: 演習準備

1

120802_MPI.ppt

N88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:

Gmech08.dvi

Input image Initialize variables Loop for period of oscillation Update height map Make shade image Change property of image Output image Change time L

2 1 κ c(t) = (x(t), y(t)) ( ) det(c (t), c x (t)) = det (t) x (t) y (t) y = x (t)y (t) x (t)y (t), (t) c (t) = (x (t)) 2 + (y (t)) 2. c (t) =

Part () () Γ Part ,

Since

自由集会時系列part2web.key

Transcription:

y = Asin 2πt T t t = t i i 1 n+1 i i+1 Δt t t i = Δt i 1 ( ) y i = Asin 2πt i T 29

(x, y) t ( ) x = Asin 2πmt y = Asin( 2πnt + δ ) m, n δ (x, y) m, n 30

L A x y A L x 31

plot sine curve program sine implicit none real(4):: Tp,a,pi real(4):: y,t,dt integer:: ns,np,i,n write (6,*) 'I will draw sine curve' write (6,*) 'Input period (s)' read (5,*) Tp write (6,*) 'Input Amplitude' read (5,*) A write (6,*) 'How many sample points for one period' read (5,*) ns write (6,*) 'How many period to be plotted' read (5,*) np n = ns*np+1 pi = 4.0e0 * atan(1.0e0) dt = Tp / float(ns) open ( 10,file='sine.dat' ) t = 0.0e0 do i = 1,n t = dt * float(i-1) y = A * sin( 2.0e0*pi*t/Tp ) write (10,*) t,y 32

stop end program sine read (5,*) Tp Tp read (5,*) A A read (5,*) ns read (5,*) np n = ns*np+1 dt = Tp / float(ns) open ( 10,file='sine.dat' ) do i = 1,n t = dt * float(i-1) y = A * sin( 2.0e0*pi*t/Tp ) write (10,*) t,y 33

2345&789012345678902234567890323456789042345678905234567890623456789072 plot sine curve program sine2 implicit none real(4):: Tp,a,pi,dt integer:: i integer, parameter:: ns = 100, np = 3 integer, parameter:: n = ns * np +1 real(4):: y(n),t(n) write (6,*) 'I will draw sine curve' write (6,*) 'Input period (s)' read (5,*) Tp write (6,*) 'Input Amplitude' read (5,*) A pi = 4.0e0 * atan(1.0e0) dt = Tp / float(ns) open ( 10,file='sine.dat' ) do i = 1,n t(i) = dt * float(i-1) y(i) = A * sin( 2.0e0*pi*t(i)/Tp ) 34

do i = 1,n write (10,*) t(i),y(i) stop end program sine2 integer, parameter:: ns = 100, np = 3 Real(4):: y(n),t(n) real(4):: a(0:n),b(-5:n),c(3:100) real(4):: a(m,0:n),c(k,l:m,50) 35

c2345&789012345678902234567890323456789042345678905234567890623456789072 c c plot sine curve c program sine implicit none real(4):: Tp,a,pi,dt integer:: ns,np,i,n real(4),allocatable:: y(:),t(:) write (6,*) 'I will draw sine curve' write (6,*) 'Input period (s)' read (5,*) Tp write (6,*) 'Input Amplitude' read (5,*) A write (6,*) 'How many sample points for one period' read (5,*) ns write (6,*) 'How many period to be plotted' read (5,*) np n = ns*np+1 allocate ( y(n),t(n) ) pi = 4.0e0 * atan(1.0e0) dt = Tp / float(ns) open ( 10,file='sine.dat' ) do i = 1,n 36

t(i) = dt * float(i-1) y(i) = A * sin( 2.0e0*pi*t(i)/Tp ) do i = 1,n write (10,*) t(i),y(i) stop end real(4),allocatable:: y(:),t(:) real(4),allocatable:: a(:,:),b(:,:) allocate (y(n),t(n)) 37

---------------------------------------------------------------------- ** plot triangle wave ** ---------------------------------------------------------------------- program triangle implicit none integer:: i, j, is integer:: mcyc, msam, mtime real(8):: Tperi, a real(8):: t, t2, dt real(8),allocatable:: g(:) **** Input control parameters **** **** period **** write (6,*) 'Input period' read (5,*) Tperi write (6,*) 'Tperi = ',Tperi **** cycles **** write (6,*) '# of cycles for plot' read (5,*) mcyc write (6,*) 'mcyc = ',mcyc **** sampling freqency for one period **** 38

write (6,*) '# of sampling for one period' read (5,*) msam write (6,*) 'msam = ',msam **** amplitude **** write (6,*) 'amplitude' read (5,*) a write (6,*) 'a = ',a **** time interval and # of time steps **** dt = Tperi / dfloat( msam ) write (6,*) 'dt = ',dt mtime = mcyc * msam write (6,*) 'mtime = ',mtime **** allocate dimension variables **** allocate( g(mtime) ) **** open file **** open ( 11, file='tw.dat' ) **** triangle wave **** do is = 1,mcyc do i = 1,msam/4 j = (is-1)*msam+i t = dt * 0.5d0 + dt * dfloat(j-1) t2 = dt * 0.5d0 + dt * dfloat(i-1) g(j) = a * t2 / ( 0.25d0 * Tperi ) 39

write (6,*) t,t2,g(j) write (11,*) t,g(j) do i = msam/4+1,3*msam/4 j = (is-1)*msam+i t = dt * 0.5d0 + dt * dfloat(j-1) t2 = dt * 0.5d0 + dt * dfloat(i-1) g(j) = a * ( 0.5d0 * Tperi - t2 ) / ( 0.25d0 * Tperi ) write (6,*) t,t2,g(j) write (11,*) t,g(j) do i = 3*msam/4+1,msam j = (is-1)*msam+i t = dt * 0.5d0 + dt * dfloat(j-1) t2 = dt * 0.5d0 + dt * dfloat(i-1) g(j) = a * ( t2 - Tperi ) / ( 0.25d0 * Tperi ) write (6,*) t,t2,g(j) write (11,*) t,g(j) close (11) stop end program triangle 40

do i=1,n do i=0,7,2 real*4 a(100) real*4 a(100,200) real*4 a(0:1000) real*4, allocatable:: b(:) allocate (b(n)) 41