情報活用資料

Similar documents
Microsoft Word - 資料 docx

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

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

cpall.dvi

情報活用資料

Debian での数学ことはじめ。 - gnuplot, Octave, R 入門

2 A I / 58

x1 GNUPLOT 2 x4 12 x1 Gnuplot Gnuplot,,. gnuplot, PS (Post Script), PS ghostview.,.,,,.,., gnuplot,,, (x2). x1.1 Gnuplot (gnuplot, quit) gnuplot,. % g

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 +

2 I I / 61

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

05 I I / 56

gnuplot gnuplot 1 3 y = x 3 + 3x 2 2 y = sin x sin(x) x*x*x+3*x*x

. (.8.). t + t m ü(t + t) + c u(t + t) + k u(t + t) = f(t + t) () m ü f. () c u k u t + t u Taylor t 3 u(t + t) = u(t) + t! u(t) + ( t)! = u(t) + t u(

gnuplot.dvi

y2=x2(x+1)-001.ps

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

I I / 68

取扱説明書 [N-03A]


Łñ“’‘‚2004

プリント

演習2

1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co

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

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

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

GNUPLOT GNUPLOT GNUPLOT 1 ( ) GNUPLO

gnuplot の使い方 gnuplot は汎用的で しかも手軽に使えるプロッティング プログラムです 計算結果をグラフにするとき に非常に便利なので ぜひ覚えてください 1 gnuplot の始め方 終わり方 gnuplot の始め方は ターミナル上のプロンプトの後ろで gnuplot と打つだけ

取扱説明書[N906i]

( ) 1 Windows HTML ( ) ( ) ( ) WWW 10 ( )


理工学図書館後期 LS 講習会 きれいなグラフを作ろう! gnuplot 入門

untitled

3 4 17:00 Address: ( ) (Subject) ( ) LeapMotion EyeTribe Processing LeapMotion EyeTribe 1. Mac OS X, LeapMotion, EyeTribe, Proces

1

untitled

数値計算:フーリエ変換

1 1 Gnuplot gnuplot Windows gnuplot gp443win32.zip gnuplot binary, contrib, demo, docs, license 5 BUGS, Chang

tebiki00.dvi

I

6 6.1 sound_wav_files flu00.wav.wav 44.1 khz 1/44100 spwave Text with Time spwave t T = N t N 44.1 khz t = 1 sec j t f j {f 0, f 1, f 2,, f N 1

p = 1, 2, cos 2n + p)πj = cos 2nπj 2n + p)πj, sin = sin 2nπj 7.1) f j = a ) 0 + a p + a n+p cos 2nπj p=1 p=0 1 + ) b n+p p=0 sin 2nπj 1 2 a 0 +

Since

p...{..P01-48(TF)

programmingII2019-v01

OHP.dvi

all.dvi

(2-1) x, m, 2 N(m, 2 ) x REAL*8 FUNCTION NRMDST (X, M, V) X,M,V REAL*8 x, m, 2 X X N(0,1) f(x) standard-norm.txt normdist1.f x=0, 0.31, 0.5

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

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

というプロンプトだったのが gnuplot> というプロンプトに変わっていることに注意してください gnuplot を終了させるときには gnuplot> というプロンプトの後ろで quit と打ちこみます すると /home/snaoki> のようなプロンプトに戻るはずです 2 グラフを描いてみよ

web04.dvi

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

橡3章波浪取扱.PDF

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

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

Microsoft Word - gnuplot

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 Windows 10 *1 3 Linux 3.1 Windows Bash on Ubuntu on Windows cygwin MacOS Linux OS Ubuntu OS Linux OS 1 GUI Windows Explorer Mac Finder 1 GUI

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

1 u t = au (finite difference) u t = au Von Neumann

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

シミュレーション物理4

1. ( ) 1.1 t + t [m]{ü(t + t)} + [c]{ u(t + t)} + [k]{u(t + t)} = {f(t + t)} (1) m ü f c u k u 1.2 Newmark β (1) (2) ( [m] + t ) 2 [c] + β( t)2

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2

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(

2007-Kanai-paper.dvi

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

コンピュータ概論

untitled

Microsoft Word - DF-Salford解説09.doc

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

untitled

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

joho09.ppt

Page 1 of 6 B (The World of Mathematics) November 20, 2006 Final Exam 2006 Division: ID#: Name: 1. p, q, r (Let p, q, r are propositions. ) (10pts) (a

ECCS. ECCS,. ( 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file e

08 p Boltzmann I P ( ) principle of equal probability P ( ) g ( )g ( 0 ) (4 89) (4 88) eq II 0 g ( 0 ) 0 eq Taylor eq (4 90) g P ( ) g ( ) g ( 0

グラフ数値読み取りシステム (GSYS2.4) 利用の手引

Kumagai09-hi-2.indd


untitled

Python ( ) Anaconda 2 3 Python Python IDLE Python NumPy 6 5 matpl

橡00horse.PDF

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

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


PowerPoint プレゼンテーション

Python (Anaconda ) Anaconda 2 3 Python Python IDLE Python NumPy 6


(Basic Theory of Information Processing) Fortran Fortan Fortan Fortan 1

Microsoft Word - MetaFluor70取扱説明.doc

2 3


main.dvi

1F90/kouhou_hf90.dvi

PowerPoint プレゼンテーション - 物理学情報処理演習

平成18年○月○日

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 21

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

L A x y A L x 23

ls -l gnuplot gnuplot> plot "sine.dat" set output "graph1.ps" set terminal postscript quit ls -l ps2pdf graph1.ps 24

lpr graph1.ps lpr a2ps a2ps sine.f 25

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 26

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 27

c2345&789012345678902234567890323456789042345678905234567890623456789072 c c plot sine curve c 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 ) 28

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

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 30

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

---------------------------------------------------------------------- ** 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 **** 32

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

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 34

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)) plot "datafile" plot "datafile" with line plot "datafile" using 1:2 plot "datafile" using 1:3 title "example" replot "datafile2" set title "Graph1" xlabel "axis1" set yrange [-1.0:2.0] set xtics 1.0 set mxtics 5 set terminal postscript set output "graph1.ps" save "graph1.plt" 35

http://d.hatena.ne.jp/arakik10/20120214/1329167074 http://tdm-gcc.tdragon.net/download http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.0/ 36

37