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

Similar documents
Foundation (FSF) GNU 1 gnuplot ( ) gnuplot UNIX Windows Machintosh Excel Excel gnuplot C web

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

gnuplot.dvi

資料

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


LeapMotion JINS MEME 2019

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

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

< 1 > (1) f 0 (a) =6a ; g 0 (a) =6a 2 (2) y = f(x) x = 1 f( 1) = 3 ( 1) 2 =3 ; f 0 ( 1) = 6 ( 1) = 6 ; ( 1; 3) 6 x =1 f(1) = 3 ; f 0 (1) = 6 ; (1; 3)

2 I I / 61

i

Microsoft Word - gnuplot

, 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

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

sin x

( ) a, b c a 2 + b 2 = c : 2 2 = p q, p, q 2q 2 = p 2. p 2 p q 2 p, q (QED)


Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni

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

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

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

programmingII2019-v01

arctan 1 arctan arctan arctan π = = ( ) π = 4 = π = π = π = =

( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x ( ). (, ). def print cos(): print cos()

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

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

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

高等学校学習指導要領

高等学校学習指導要領

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

J1-a.dvi

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 θ


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

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 θ =

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

29

2 1 Mathematica Mathematica Mathematica Mathematica Windows Mac * Mathematica 9-1 Expand[(x + y)^7] (x + y) 7 x y Shift *1 Mathematica 1.12

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

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

GraphicsWithPlotFull.nb Plot[{( 1), ( ),...}, {( ), ( ), ( )}] Plot Plot Cos x Sin x, x, 5 Π, 5 Π, AxesLabel x, y x 1 Plot AxesLabel

1 matplotlib matplotlib Python matplotlib numpy matplotlib Installing A 2 pyplot matplotlib 1 matplotlib.pyplot matplotlib.pyplot plt import import nu

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 +

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


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

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

2 1 Octave Octave Window M m.m Octave Window 1.2 octave:1> a = 1 a = 1 octave:2> b = 1.23 b = octave:3> c = 3; ; % octave:4> x = pi x =

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

情報活用資料

I y = f(x) a I a x I x = a + x 1 f(x) f(a) x a = f(a + x) f(a) x (11.1) x a x 0 f(x) f(a) f(a + x) f(a) lim = lim x a x a x 0 x (11.2) f(x) x

pdf

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,

Ver ceil floor FunctionGenerator (PTZCameraSony)

数学論文の書き方 - 第1回:入門編

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

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

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

untitled

I 1

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

4 4 θ X θ P θ 4. 0, 405 P 0 X 405 X P 4. () 60 () 45 () 40 (4) 765 (5) 40 B 60 0 P = 90, = ( ) = X

Windows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2

di-problem.dvi

Transcription:

gnuplot 8 gnuplot 1 1.1 gnuplot gnuplot 2D 3D gnuplot ( ) gnuplot UNIX Windows Machintosh Excel gnuplot C 1.2 web gnuplot $ gnuplot gnuplot gnuplot> exit 1

1.3 2 gnuplot> set samples 1024 1024 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),cos(x),tan(x) gnuplot> plot x**3+x+1 x 3 + x + 1 gnuplot> plot x**0.5 x 0.5 gnuplot> plot log(x) log e (x) gnuplot> plot log10(x) log 10 (x) gnuplot> plot real(exp({0,1}*x)) R(e ix ) gnuplot> plot sqrt(x) x gnuplot> f(x)=sin(x) gnuplot> g(x)=cos(x) gnuplot> plot f(x)+g(x), f(x)*g(x) [ 1] sin(x) cos(x) sin 2 (x) sin(x) + cos(x) xe x x x3 6 + x5 120 x7 5040 cos(x), sin(x) gnuplot?? gnuplot> {1,0} 1 gnuplot> {0,1} i gnuplot> {5.3,6.8} 5.3 + 6.8i 2

1.4 3 3 3 gnuplot> splot x**2+y**2 gnuplot> splot x*sin(x+y) x 2 + y 2 x sin(x + y) 3 set hidden3d set isosample x y 40 gnuplot> set hidden3d gnuplot> set isosample 40,40 gnuplot> splot 1/(x*x+y*y+5)*cos(0.1*(x*x+y*y)) 1.5 gnuplot> set parametric gnuplot> plot sin(5*t), cos(2*t+pi/2) gnuplot> set noeparametric 1.6 1 θ sin θ cos θ tan θ plot using x y gnuplot> plot "trifunc.txt" using 1:2 gnuplot> plot "trifunc.txt" using 1:2 with line 1 http://www.akita-nct.jp/ yamamoto/lecture/2006/5e/gnuplot/trifunc.txt 3

gnuplot> plot "trifunc.txt" using 1:2 with line, "trifunc.txt" using 1:3 with line, "trifunc.txt" using 1:4 with line (Enter ) tan(x) set xrange[ymin:ymax] replot gnuplot> set yrange[-1.5:1.5] gnuplot> replot 1.7 1.7.1 gnuplot 1 gnuplot> set terminal emf gnuplot> set output "hogehoge.emf" emf hogehoge.emf 1: set terminal x11 windows emf postscript gif png epslatex UNIX Windows Windows UNIX web web L A TEX 4

1.7.2 MS word gnuplot MS Word Windows emf emf gnuplot> set terminal emf gnuplot> set output "hoge.emf" gnuplot> plot sin(x) emf hoge.emf emf hoge.emf MS Word Word emf 1.7.3 Starsuite Linux office Sun microsystems Starsuite Starsuite MS Word 1.7.4 L A TEX L A TEX L A TEX gnuplot> set terminal epslatex gnuplot> set output "hoge.eps" gnuplot> plot sin(x) hoge.eps hoge.tex L A TEX \documentclass[10pt,a4paper]{jarticle} \usepackage{graphicx} \begin{document} \begin{figure}[hbtp] \input{hoge} 5

\caption{} \end{figure} \end{document} 2 gnuplot 2.1 gnuplot gnuplot> help gnuplot> help plot help web 3 C gnuplot 3.1 gnuplot C C gnuplot C gnuplot UNIX UNIX ( ) ( ) ls -l ls -l sort -n -k +5 6

ls -l sort -n -k +5 2 2 UNIX 3.2 gnuplot C gnuplot C gnuplot (1) (2) (3) FILE *hoge; gnuplot hoge = popen("gnuplot -persist","w"); popen() gnuplot persist gnuplot gnuplot popen() gnuplot fprintf() fprintf(hoge, "plot sin(x)\n"); fprintf gnuplot C gnuplot Character-based User Interface(CUI) pclose(hoge); 2 man lsman sort f: b: q: 7

3.3 3.3.1 C gnuplot 1 fprintf() gnuplot 1: C gnuplot 1 # i n c l u d e < s t d i o. h> 2 3 i n t main ( void ) { 4 FILE gp ; 5 6 gp = popen ( g n u p l o t p e r s i s t, w ) ; 7 f p r i n t f ( gp, p l o t s i n ( x ) \ n ) ; 8 9 p c l o s e ( gp ) ; 10 11 return 0 ; 12 } 3.3.2 gnuplot 1. 21 plot - [ ] 2. 24 fprintf(, ) 3. e 27 fprintf(,"e\n") 8

2: 1 # i n c l u d e < s t d i o. h> 2 # i n c l u d e <math. h> 3 # d e f i n e NX 720 4 5 i n t main ( void ) { 6 FILE gp ; 7 i n t i ; 8 double dx, x [NX+1], y [NX+ 1 ] ; 9 10 / ˆ ˆ c7 ˆ ˆ a1 / 11 dx=4 M PI /NX; 12 f o r ( i =0; i <=NX; i ++){ 13 x [ i ]= 2 M PI+ i dx ; 14 y [ i ]= s i n ( x [ i ] ) ; 15 } 16 17 / ˆ ˆ d5 ˆ ˆ ba / 18 gp = popen ( g n u p l o t p e r s i s t, w ) ; 19 f p r i n t f ( gp, s e t xrange [ 6. 5 : 6. 5 ] \ n ) ; 20 f p r i n t f ( gp, s e t yrange [ 1. 5 : 1. 5 ] \ n ) ; 21 f p r i n t f ( gp, p l o t with l i n e s l i n e t y p e 1 t i t l e \ s i n \ \ n ) ; 22 23 f o r ( i =0; i <=NX; i ++){ 24 f p r i n t f ( gp, %f \ t%f \ n, x [ i ], y [ i ] ) ; / / ˆ ˆ c7 ˆ ˆ a1 ˆ ˆ f 1 ˆ ˆ a4 ˆ ˆ ad ˆ ˆ 25 b9 26 } 27 f p r i n t f ( gp, e \ n ) ; 28 29 p c l o s e ( gp ) ; 30 31 return 0 ; 32 } 3.3.3 3 27 plot " " [ ] 1 # i n c l u d e < s t d i o. h> 2 # i n c l u d e <math. h> 3 # d e f i n e NX 720 4 3: 9

5 i n t main ( void ) { 6 FILE data, gp ; 7 char d a t a f i l e ; 8 i n t i ; 9 double dx, x, y ; 10 11 / ˆ ˆ c7 ˆ ˆ a1 ˆ ˆ d5 ˆ ˆ a5 / 12 d a t a f i l e = o u t. d a t ; 13 d a t a = fopen ( d a t a f i l e, w ) ; 14 15 dx=4 M PI /NX; 16 f o r ( i =0; i <=NX; i ++){ 17 x= 2 M PI+ i dx ; 18 y= s i n ( x ) ; 19 f p r i n t f ( data, %f \ t%f \ n, x, y ) ; 20 } 21 f c l o s e ( d a t a ) ; 22 23 / ˆ ˆ d5 ˆ ˆ a4 / 24 gp = popen ( g n u p l o t p e r s i s t, w ) ; 25 f p r i n t f ( gp, s e t xrange [ 6. 5 : 6. 5 ] \ n ) ; 26 f p r i n t f ( gp, s e t yrange [ 1. 5 : 1. 5 ] \ n ) ; 27 f p r i n t f ( gp, p l o t \ % s \ with l i n e s l i n e t y p e 1 t i t l e \ s i n \ \ n, d a t a f i l e ) ; 28 p c l o s e ( gp ) ; 29 30 return 0 ; 31 } 4 set 4 4: gnuplot 1 # i n c l u d e < s t d i o. h> 2 # i n c l u d e <math. h> 3 void m k t r i a n g l e d a t a ( char a, double x1, double x2, i n t n ) ; 4 void mk graph ( char f, char xlb, double x1, double x2, 5 char ylb, double y1, double y2 ) ; 6 7 / ========================================================== / 8 / main f u n c t i o n / 9 / ========================================================== / 10 i n t main ( void ) { 11 12 double p i = 4 a t a n ( 1 ) ; 13 14 m k t r i a n g l e d a t a ( o u t. t x t, 2 pi, 2 pi, 1 0 0 0 ) ; 15 mk graph ( o u t. t x t, x, 2 pi, 2 pi, y, 3, 3 ) ; 16 17 return 0 ; 10

18 } 19 20 / ========================================================== / 21 / make a data f i l e / 22 / ========================================================== / 23 void m k t r i a n g l e d a t a ( char a, double x1, double x2, i n t n ) { 24 double x, dx ; 25 double y1, y2, y3 ; 26 i n t i ; 27 FILE o u t ; 28 29 dx = ( x2 x1 ) / n ; 30 31 o u t = fopen ( a, w ) ; 32 33 f o r ( i =0; i <=n ; i ++){ 34 x = x1+dx i ; 35 y1 = s i n ( x ) ; 36 y2 = cos ( x ) ; 37 y3 = t a n ( x ) ; 38 39 f p r i n t f ( out, %e \ t%e \ t%e \ t%e \ n, x, y1, y2, y3 ) ; 40 } 41 42 f c l o s e ( o u t ) ; 43 } 44 45 / ========================================================== / 46 / make a graph / 47 / ========================================================== / 48 void mk graph ( char f, char xlb, double x1, double x2, 49 char ylb, double y1, double y2 ) 50 { 51 52 FILE gp ; 53 54 gp = popen ( g n u p l o t p e r s i s t, w ) ; 55 56 f p r i n t f ( gp, r e s e t \ n ) ; 57 58 / s e t x g r i d / 59 60 f p r i n t f ( gp, s e t g r i d \ n ) ; 61 62 / s e t x a x i s / 63 64 f p r i n t f ( gp, s e t x t i c s 1\ n ) ; 65 f p r i n t f ( gp, s e t m x t i c s 10\ n ) ; 66 f p r i n t f ( gp, s e t x l a b e l \ % s \ \ n, x l b ) ; 67 f p r i n t f ( gp, s e t n o l o g s c a l e x \ n ) ; 68 f p r i n t f ( gp, s e t xrange[%e:%e ] \ n, x1, x2 ) ; 69 70 / s e t y a x i s / 71 11

72 f p r i n t f ( gp, s e t y t i c s 1\ n ) ; 73 f p r i n t f ( gp, s e t m y t i c s 10\ n ) ; 74 f p r i n t f ( gp, s e t y l a b e l \ % s \ \ n, y l b ) ; 75 f p r i n t f ( gp, s e t n o l o g s c a l e y \ n ) ; 76 f p r i n t f ( gp, s e t yrange[%e:%e ] \ n, y1, y2 ) ; 77 78 / p l a t graphs / 79 80 f p r i n t f ( gp, s e t t e r m i n a l x11 \ n ) ; 81 82 f p r i n t f ( gp, p l o t \ % s \ u s i n g 1 : 2 with l i n e, \ 83 \ % s \ u s i n g 1 : 3 with l i n e, \ 84 \ % s \ u s i n g 1 : 4 with l i n e \ n, f, f, f ) ; 85 86 f p r i n t f ( gp, s e t t e r m i n a l png \ n ) ; 87 / / f p r i n t f ( gp, s e t o u t p u t \ t r i. png \ \ n ) ; 88 89 f p r i n t f ( gp, r e p l o t \ n ) ; 90 91 p c l o s e ( gp ) ; 92 } 5 C gnuplot 12