Similar documents
MediaWiki for Kisorigaku

cpall.dvi

プレゼン資料 - MathML

1.5,. ( A, 7, * ) Emacs,., <Return>., <Delete>. <Delete>, Delete. <Delete>,. 1.6,.,, Emacs.,. ( ), ( ),,. C-x,., Emacs.,. C-x C-f ( )... C-x C-s. Emac

visit.dvi

1.2 L A TEX 2ε Unicode L A TEX 2ε L A TEX 2ε Windows, Linux, Macintosh L A TEX 2ε 1.3 L A TEX 2ε L A TEX 2ε 1. L A TEX 2ε 2. L A TEX 2ε L A TEX 2ε WYS

L A TEX Copyright c KAKEHI Katsuhiko All Rights Reserved 1 L A TEX \documentstyle[< >]{jarticle} \title{< >} \author{< >} \date{< >} < > \be

web04.dvi

L A TEX ver L A TEX LATEX 1.1 L A TEX L A TEX tex 1.1 1) latex mkdir latex 2) latex sample1 sample2 mkdir latex/sample1 mkdir latex/sampl

2 (2) WinShell 2 (3) WinShell L A TEX ( ) ( ) 2 1 L A TEX.tex L A TEX WinShell (4) WinShell 2 L A TEX L A TEX DVI DeVice Independent (5) WinShell 2 DV

gnuplot.dvi

2. label \ref \figref \fgref graphicx \usepackage{graphicx [tb] [h] here [tb] \begin{figure*~\end{figure* \ref{fig:figure1 1: \begin{figure[

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

L A TEX? Word Word Word Word WYSIWYG T E X by Donald Knuth L A T E X by Leslie Lamport L A T E X 2ε L A T E X 2ε, pt E X, pl A T E X LATEX p.2/27

cpall.dvi

(a) WYSIWYG (What you see is what you get.) (b) (c) Hyper Text Markup Language: SGML (Standard Generalized Markup Language) HTML (d) TEX

入門Java解答.doc

PowerPoint プレゼンテーション

6 Tgif William Chia-Wei Chang tgif 3.0 pixmap URL Tgif 6.1: Tgif

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

1 L A TEX L A TEX L A TEX 2 L A TEX 2 L A TEX L A TEX L A TEX Word L A TEX L A TEX L A TEX L A TEX 2.1 L A TEX 1 L A TEX 2

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


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

GNUPLOT GNUPLOT GNUPLOT 1 ( ) GNUPLO

L \ L annotation / / / ; / ; / ;.../ ;../ ; / ;dash/ ;hyphen/ ; / ; / ; / ; / ; / ; ;degree/ ;minute/ ;second/ ;cent/ ;pond/ ;ss/ ;paragraph/ ;dagger/

eil _4.ppt

X Window System X X &

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

電気通信大学 コンピュータリテラシー 文書整形 --- LaTeX ---

2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B

GNU Emacs GNU Emacs

表示の更新もそういた作業のひとつに当たる スレッドの使用アニメーション アニメーションやシミュレーションなどは画面の更新が一定のタイミングで行われていく この連続した画面の更新をスレッドを利用して行う しかし paint() メソッドを直接呼び出して表示を更新することはできない その理由

2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B

JAVA入門

アプレットの作成

PowerPoint プレゼンテーション

: 1/15( ): HTML web page (2) 1/18( ): (1) 1/25( ): (2) 1

DVIOUT-マスタ-

LeapMotion JINS MEME 2019

S II. AWK. awk awk awk, perl, $ ruby awk awk perl ruby / / perl } WWW CGI awk /9/{print $} <awk.dat awk 9 awk awk awk.dat. awk {print $} <awk.dat xema

Java言語 第1回

r6.dvi

24.15章.微分方程式

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

2008 e-learning T050050

TEX 6.2. EQUATIONS Y=[ Y=] equation y = ax + b y = ax + b (6.1) Y=[ Y=] Y=nonumber eqnarray 3 2 eqnarray equation Y=Y= eqnarray y = ax + b (6.2) y = x

2 A I / 58

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 =

TEX American Mathematical Society PostScript Adobe Systems Incorporated

HTML HTML HTML

tebiki00.dvi

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


r6.dvi

r3.dvi

Microsoft Word - Wordで楽に数式を作る.docx

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

sin log lim Deutsch Hello, TEX World! 1.1 T


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

Java 2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q 2.

2 I I / 61

Contents 1 Scilab

a0postercls? Gerlinde Kettl, Matthias Weiser T E Xmacro wwwctanorg/tex-archive/macros/latex/contrib/a0poster LAT E X

橡ホームページの作り方


基礎数学I

Microsoft PowerPoint prog1_doc2.pptx

help gem gem gem my help

semi10.dvi

0.,,., m Euclid m m. 2.., M., M R 2 ψ. ψ,, R 2 M.,, (x 1 (),, x m ()) R m. 2 M, R f. M (x 1,, x m ), f (x 1,, x m ) f(x 1,, x m ). f ( ). x i : M R.,,

チュートリアル:ノンパラメトリックベイズ

sarutex.dvi

2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B

Microsoft PowerPoint prog1_doc2x.pptx

semi4.dvi

3 MathJax HTML \ Y \ Y mathjax.html <html> <head> <script type="text/javascript" src=" /2.7.0/MathJax.js

Lecture/CompPracR2003/12th

tn_soturon_sjis.dvi

r2.dvi

Microsoft PowerPoint - OOP.pptx

. sinh x sinh x) = e x e x = ex e x = sinh x 3) y = cosh x, y = sinh x y = e x, y = e x 6 sinhx) coshx) 4 y-axis x-axis : y = cosh x, y = s

3.4 con: 3.5 ws: 3.6 newpage: (TeX ) 3.7 clearpage: (TeX ) :QMath XeX XML1.0 XML DTD (Document Type Definition, ) DTD XeX jarticl

HTML web HTML HTML

di-problem.dvi

I. java.awt.rectangle java.lang.math random Java TM API java.awt Rectangle Rectangle (x,y)... public int x Rectangle X public int y Rectangle Y public

第86回日本感染症学会総会学術集会後抄録(II)

Microsoft PowerPoint - InfPro_I9.pptx

I. (i) Foo public (A). javac Foo.java java Foo.class (C). javac Foo java Foo (ii)? (B). javac Foo.java java Foo (D). javac Foo java Foo.class (A). Jav

r4.dvi

L A TEX (2)

tex02.dvi

2 TEX, TEX Donald Knuth 2 3 ( ) TEX ( ) , WWW 4 TEX (.tex,.dvi,.ps,.pdf ) 3 TEX ( ) ( ) 5 (.tex Windows, Mac, Unix, MS-DOS TEX TEX ( ) & METAFON

05 I I / 56

b3e2003.dvi

I I / 68

untitled

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

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

Transcription:

情 報 基 礎 論 テキスト 2011 年 度 版 群 馬 工 業 高 等 専 門 学 校 電 子 情 報 工 学 科 大 豆 生 田 利 章

c 2011 i (1) (2) Alt BS Ctrl Del Esc RET Shift SPC (3) \ (4) foo bar TEX American Mathematical Society PostScript Adobe Systems Inc. Windows XP Microsoft Corporation

ii c 2011 1 1 2 1.1 emacs............................. 2 2 UNIX 7 2.1......................................... 7 2.2....................................... 9 2.3............................................. 10 3 12 3.1 tgif........................................ 12 4 19 4.1 gnuplot................................. 19 5 24 5.1 Java Applet.................................... 24 5.2 Java Applet.................................... 28 5.3 Java Applet.................................... 30 5.4 Java Applet.................................... 34 6 37 6.1 L A TEX................................. 37 6.2 L A TEX................................. 41 6.3 L A TEX................................. 43 6.4 L A TEX................................. 45 7 48 7.1.................................. 48 A 52 B emacs 53 B.1............................................ 53 B.2........................................... 54

c 2011 iii C UNIX 55 C.1 UNIX.................................... 55 C.2......................................... 56 D gnuplot 58 E Java Applet 60 E.1 NullPointerExeption.............................. 60 F Java Applet 62 F.1.............................................. 62 F.2............................................ 62 F.3........................................ 63 F.4............................................ 63 F.5........................................... 63 G L A TEX 64 G.1......................................... 64 G.2......................................... 64 H HTML 68 I MS-Windows 70

c 2011 1 Solaris (1) Windows XP (2) (3) Solaris xs3 (xs4) (4) (1) (2) Windows XP

2 c 2011 1 1.1 emacs 1 UNIX emacs emacs B 1.1.1 2 3 xs3% 4 emacs emacs % emacs % emacs filename 1.1 Ctrl -x Ctrl -c Ctrl -x x 1 2 3 xs3 xs4 4 xs3% > # %

1.1 emacs c 2011 3 1.1 emacs 1.1.2 emacs Ctrl -x Ctrl -w Write file: / 5 (. + - 6 foo.txt Wrote /home/faculty/mame/foo.txt Ctrl -x Ctrl -s 5 6

4 c 2011 1 Wrote /home/faculty/mame/foo.txt 1.1.3 Ctrl -b backward Ctrl -f forward Ctrl -p previous Ctrl -n next Ctrl -d Ctrl -k Ctrl -a 1 Ctrl -k Ctrl -y Ctrl -k Ctrl -y Ctrl -x u 1.1.4 -E:-- Ctrl -\ 1.2 -A E:** 1.2 emacs n Del

1.1 emacs c 2011 5 - -E: 7 Ctrl -i 8 Ctrl -f 9 Ctrl -\ K -AdE:** qq q 2 (1) emacs emacs % a2ps bar.txt /usr/ucb/lpr -Ppr3 % a2ps bar.txt /usr/ucb/lpr -Ppr4 7 8 Ctrl -o 9 Ctrl -b

6 c 2011 2 UNIX 2.1 2.1.1 % ls 1 Sample.class Sample2.java example.tex test.aux Sample.java Sample2.java sample.obj test.dvi Sample.java example.aux sample1 test.log Sample2\$1.class example.dvi sample1 test.tex Sample2.class example.log sample2 test.tex Windows XP Windows XP cat 2 % cat sample1 sample1 3 1 more less % less sample1 RET 1 SPC 1 q less b 1 % ls -l sample1 -rw-r--r-- 1 mame faculty 155 6 21 2006 sample1 1 list 2 concatnate 3 Ctrl -d Ctrl -c

2.1 c 2011 7 -l 155 1 1 1 2 2.1.2 cp 4 % cp foo bar foo bar mv 5 % mv foo bar foo bar rm 6 % rm foo UNIX -i % rm -i foo 7 (1) (2) emacs tmp 8 (3) emacs tmp (4) tmp (5) tmp (6) tmp tmp1 (7) (8) tmp1 tmp2 (9) (10) tmp2 (11) tmp1 (12) 4 copy 5 move 6 remove 7 rm -i 8 tmp temporary

8 c 2011 2 UNIX 2.2 9 2.2.1 / / cd 10 % cd [dir] [dir] % cd.. pwd 11 % pwd (1) (2) 1 (3) (4) (5) (6) /bin (7) (8) (9) /usr/local/bin (10) kisoron (11) kisoron 9 MS-Windows 10 change directory 11 process working directory

2.3 c 2011 9 2.1 * 0? 1 [ ] 1 { 1, 2 1 (12) kisoron (13) 2.3 UNIX ESC 2.1 ls ls e* e ls *txt ls??? txt 3 ls [bc]* b c ls {foo,bar* foo bar % history 5 %!5 12 %!! %!m m 13 % ls > filelist ls filelist 12 (-n) n 13

10 c 2011 2 UNIX (1) /bin a cp b 2 c m 4 d l s e rm mk (2) a b 2 c l

c 2011 11 3 3.1 tgif tgif OBJ.obj 3.1.1 tgif.obj.obj % tgif foo.obj % tgif foo.obj File Save New Alt - Ctrl -s File Save Ctrl -s File Open Ctrl -o File Quit Ctrl -q 3.1 tgif 3.2 tgif 3.3 3.1.2 Mode (1) 3.4 (2) (3) (4) (5) (6) (7)

12 c 2011 3 3.1 tgif 3.2 tgif

3.1 tgif c 2011 13 3.3 (8) (9) (10) (11) (12) 3.4 tgif

14 c 2011 3 Edit Delete Ctrl -x) Edit Duplicate Ctrl -d LineStyle LineWidth LineDash Fill Arrange Flop/Rotate Rotate Clock-Wise Arrange Flop/Rotate Rotate Counter Arrange Flop/Rotate Set Rotation Increment 45 Arrange Group Ctrl -g Arrange Ungroup Ctrl -u Arrange front Arrange back 3.1.3 Layout -Grid Layout +Grid Layout VisibleGrid Layout Snap to Grid Layout Zoom ZoomIn

3.1 tgif c 2011 15 Layout Zoom ZoomOut Properties Text Size TextSize Properties Font Font Properties Text Style File Import 3.1.4 PS (postscript) 1 foo.obj (1) tgif % tgif foo.obj (2) PS OBJ.obj.ps foo.ps a PrintMode PS 3.5 b File Print 2 Ctrl -p 3.6 (3) tgif % /usr/ucb/lpr -Ppr3 foo.ps % /usr/ucb/lpr -Ppr4 foo.ps (4) PS % rm foo.ps 3.5 tgif (1) 1 tgif EmergencySave.obj 2 Save Print

16 c 2011 3 3.6 tgif (2) 3.1.5 PrintMode File Print 3.7 EPS PrintMode PS PS.ps PrintMode JPEG JPEG.jpeg PrintMode LATEX(EPS) EPS.eps PrintMode BM.xpm 3.7 tgif (EPS ) 3.1.2 (1) (2) (3) (4) (5)

3.1 tgif c 2011 17 (6) (7) (8) (1) tgif 3.1.4

18 c 2011 4 4.1 gnuplot 4.1.1 % gnuplot gnuplot gnuplot> gnuplot> exit gnuplot> quit 4.1.2 plot y = 0.5x + 1 gnuplot> plot 0.5*x+1 / gnuplot> plot (1/2)*x+1 gnuplot> plot 0*x+1 gnuplot> plot x/2+1

4.1 gnuplot c 2011 19 gnuplot> plot (1.0/2.0)*x+1 ** y = x 3 x gnuplot> plot x**3-x y = sin x gnuplot> plot sin(x) D y = tan x y = x gnuplot> plot tan(x),x 4.1.3 2π < x < 2π y = cos x x pi π gnuplot> plot [-2*pi:2*pi] cos(x) π < x < π 2 < y < 2 y = cos x x y gnuplot> plot [-pi:pi][-2:2] cos(x) y 2 < y < 2 y = cos y x gnuplot> plot [][-2:2] cos(x) set x 20 < x < 20 gnuplot> set xrange [-20:20] y 10 < y < 20 gnuplot> set yrange [-10:20] autoscale y gnuplot> set autoscale y y x xy, z x xy z replot gnuplot> replot

20 c 2011 4 replot gnuplot> plot 0.2*x gnuplot> replot sin(x) y = 0.2x y = sin x 4.1.4 3 3 splot z = sin x 2 + y 2 5 < x < 5 5 < y < 5 gnuplot> splot [-5:5][-5:5] sin(sqrt(x**2+y**2)) 2 3 gnuplot> set hidden3d gnuplot> set nohidden3d xy gnuplot> set contour base gnuplot> set nocontour 30 10 gnuplot> set isosamples 30 4.1.5 hogehoge gnuplot> set title "hogehoge" x nantoka gnuplot> set xlabel "nantoka" ylabel zlabel) y z x start incr end gnuplot> set xtics start, incr, end xtics ytics ztics y z gnuplot> set xtics xtics ytics ztics y z

4.1 gnuplot c 2011 21 gnuplot> set grid gnuplot> set nogrid 4.1.6 PS UNIX lpr gnuplot foo.ps gnuplot> set terminal postscript gnuplot> set output "foo.ps" gnuplot> replot gnuplot> set terminal X11 set terminal postscript set ouput "foo.ps" replot set terminal X11 gnuplot % /usr/ucb/lpr -Ppr3 foo.ps % /usr/ucb/lpr -Ppr4 foo.ps PS % rm foo.ps 4.1.7 gnuplot # # # x y # 1 1 0.2851 33.067 0.3139 33.487 0.3489 33.941 0.3941 34.492 0.4514 35.107 0.5258 35.833 0.6330 36.730

22 c 2011 4 foo.dat foo1.dat foo2.dat gnuplot> plot "foo.dat" gnuplot> plot "foo.dat" with linespoints gnuplot> plot "foo.dat" with lines 2 gnuplot> plot "foo1.dat" with linespoints, "foo2.dat" with linewspoints gnuplot> plot "foo.dat" smooth csplines gnuplot> plot "foo.dat" smooth unique gnuplot> plot "foo.dat" smooth bezier 4.1.8 set terminal EPS OBJ PBM gnuplot> set terminal postscript eps gnuplot> set terminal tgif gnuplot> set terminal pbm (1) 4.1.6 gnuplot

c 2011 23 5 Java Applet Java Applet Java Java Applet (appletviewer) 5.1 Java Applet 5.1.1 Java Applet Java Applet (1) Java Applet 1 Sample.java import java.applet.*; import java.awt.*; /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void paint(graphics g) { (2) 2 % javac Sample.java (3) 3 (4) % appletviewer Sample.java 1 2 3 Sample.class

24 c 2011 5 E Java Applet <applet code="sample" width=600 height=200> 600 200 <applet code="sample" width=600 height=200> public class Sample extends Applet { Sample Example.java <applet code="example" width=600 height=200> public class Example extends Applet { 5.1.2 g.drawoval(200, 0, 200, 200); (200, 0) 200 200 x y 5.1 g Graphics g drawoval g 2 import java.applet.*; import java.awt.*; // // AP00000 /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void paint(graphics g) { g.drawoval(200, 0, 200, 200); // drawoval filloval

5.1 Java Applet c 2011 25 5.1 Java Apllet import java.applet.*; import java.awt.*; // AP00000 /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void paint(graphics g) { g.filloval(200, 0, 200, 200); F.1 5.1.3 setcolor import java.applet.*; import java.awt.*; // AP00000 /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void paint(graphics g) { g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // F.2 setbackground import java.applet.*;

26 c 2011 5 import java.awt.*; // AP00000 /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void paint(graphics g) { setbackground(color.gray); // g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // import java.applet.*; import java.awt.*; // AP00000 /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void paint(graphics g) { setbackground(color.gray); // g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // g.setcolor(color.red); // g.filloval(400, 0, 200, 200); (1) Java Applet % a2ps bar.java /usr/ucb/lpr -Ppr3 % a2ps bar.java /usr/ucb/lpr -Ppr4

5.2 Java Applet c 2011 27 5.2 Java Applet 5.2.1 init addmouselistener init 1 addmouselistener import java.awt.event.*; F.5 import java.applet.*; import java.awt.*; import java.awt.event.*; // // AP00000 /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { public void init() { // addmouselistener(new MouseAdapter() { // // public void mousepressed(mouseevent me) { // setbackground(color.gray); // repaint(); // public void mousereleased(mouseevent me) { // setbackground(color.green); // repaint(); // ); // addmouselistener // init public void paint(graphics g) { g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // g.setcolor(color.red); // g.filloval(400, 0, 200, 200);

28 c 2011 5 5.2.2 me.getpoint() 4 // AP00000 import java.applet.*; import java.awt.*; import java.awt.event.*; // /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { Point p; // p.x x p.y y public void init() { // setbackground(color.gray); // addmouselistener(new MouseAdapter() { // // public void mousepressed(mouseevent me) { // p = me.getpoint(); // repaint(); ); // addmouselistener // init public void paint(graphics g) { g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // g.setcolor(color.red); // g.filloval(400, 0, 200, 200); g.setcolor(color.white); // g.filloval(p.x, p.y, 10, 10); // 5.2.3 F // AP00000 import java.applet.*; import java.awt.*; 4

5.3 Java Applet c 2011 29 import java.awt.event.*; // /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { Point p; // p.x x p.y y int counter; // public void init() { // counter = 0; // 0 setbackground(color.gray); // addmouselistener(new MouseAdapter() { // // public void mousepressed(mouseevent me) { // counter++; // 1 p = me.getpoint(); // repaint(); ); // addmouselistener // init public void paint(graphics g) { g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // g.setcolor(color.red); // g.filloval(400, 0, 200, 200); g.setcolor(color.white); // g.filloval(p.x, p.y, 10, 10); // g.setfont(new Font("Serif", Font.BOLD, 36)); // g.drawstring(counter + "", 0, 200); // (1) Java Applet 5.3 Java Applet 5.3.1 update 3 // AP00000

30 c 2011 5 import java.applet.*; import java.awt.*; import java.awt.event.*; // /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { Point p; // p.x x p.y y int counter; // public void init() { // counter = 0; // 0 setbackground(color.gray); // addmouselistener(new MouseAdapter() { // // public void mousepressed(mouseevent me) { // counter++; // 1 p = me.getpoint(); // repaint(); ); // addmouselistener // init public void paint(graphics g) { g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // g.setcolor(color.red); // g.filloval(400, 0, 200, 200); g.setcolor(color.white); g.filloval(p.x, p.y, 10, 10); // g.setfont(new Font("Serif", Font.BOLD, 36)); // g.drawstring(counter + "", 0, 200); // // public void update(graphics g) { paint(g); 5.3.2 if if () () { 4

5.3 Java Applet c 2011 31 // AP00000 import java.applet.*; import java.awt.*; import java.awt.event.*; // /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { int counter; // public void init() { // counter = 0; // 0 setbackground(color.gray); // addmouselistener(new MouseAdapter() { // // public void mousepressed(mouseevent me) { // counter++; // 1 repaint(); ); // addmouselistener // init public void paint(graphics g) { if (counter%4 == 0) { // 4 0 g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); if (counter%4 == 1) { // 4 1 g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // if (counter%4 == 2) { // 4 2 g.setcolor(color.red); // g.filloval(400, 0, 200, 200); g.setcolor(color.white); g.setfont(new Font("Serif", Font.BOLD, 36)); g.drawstring(counter + "", 0, 200); // Java (x >= 0)&&(x < 20) x 0 x 20 // AP00000 import java.applet.*;

32 c 2011 5 5.1 Java ==!= > < >= <= && import java.awt.*; import java.awt.event.*; // /* <applet code="sample" width=600 height=200> </applet> */ public class Sample extends Applet { Point p; // p.x x p.y y int counter; // public void init() { // counter = 0; // 0 setbackground(color.gray); // addmouselistener(new MouseAdapter() { // // public void mousepressed(mouseevent me) { // counter++; // 1 repaint(); ); // addmouselistener // init public void paint(graphics g) { if ((counter%10 < 2) (8 <= counter%10)) { g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); if ((2 <= counter%10)&&(counter%10 < 3)) { g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // if ((3 <= counter%10)&&(counter%10 < 8)) { g.setcolor(color.red); // g.filloval(400, 0, 200, 200);

5.4 Java Applet c 2011 33 g.setcolor(color.white); g.setfont(new Font("Serif", Font.BOLD, 36)); g.drawstring(counter + "", 0, 200); // (1) Java Applet 5.4 Java Applet 5.4.1 while(true) Thread.sleep(1000); 1000 counter++; 1 counter // AP00000 import java.applet.*; import java.awt.*; import java.awt.event.*; // /* <applet code="sample" width=600 height=200> </applet> */ // implements Runnable public class Sample extends Applet implements Runnable { Thread t; // int counter; // public void init() { // counter = 0; setbackground(color.gray); // t = new Thread(this); // t.start(); // // run() // init

34 c 2011 5 public void run() { // t.start() try { // while(true) { // Thread.sleep(1000); // 1000 counter++; // repaint(); // // while // try catch (Exception e) { // // // catch // run public void paint(graphics g) { if ((counter%10 < 2) (counter%10 >= 8)) { g.setcolor(color.blue); // g.filloval(0, 0, 200, 200); if ((2 <= counter%10)&&(counter%10 < 3)) { g.setcolor(color.yellow); // g.filloval(200, 0, 200, 200); // if ((3 <= counter%10)&&(counter%10 < 8)) { g.setcolor(color.red); // g.filloval(400, 0, 200, 200); g.setcolor(color.white); g.setfont(new Font("Serif", Font.BOLD, 36)); g.drawstring(counter + "", 0, 200); // // paint Java Applet 5.2 5 (1) Java Applet 5 stop destroy

5.4 Java Applet c 2011 35 5.2 Java Applet

36 c 2011 6 L A TEX 1 2 L A TEX 6.1 L A TEX 6.1.1 (1) L A TEX % cp mame/example.tex /example.tex (2) example.dvi % platex example.tex (3) % xdvi example.dvi (4)? % platex example.tex % xdvi example.dvi 6.1.2 (1) foo.tex 3 % emacs foo.tex (2) foo.tex \begin{document \end{document 1 2 3 LATEX.tex

6.1 L A TEX c 2011 37 \documentclass[a4paper]{jarticle \begin{document % % \end{document (3) L A TEX % platex foo.tex a 2 1 2 b x Ctrl -d c (1) d foo.dvi, foo.aux foo.log (4) dvi % xdvi foo.dvi (1) PS fig 6.1.3 \maketitle \documentclass[a4paper]{jarticle \title{ \LaTeX % \author{ % \date{2007/8/6 % \begin{document \maketitle % % % \LaTeX \end{document \LaTeX L A TEX L A TEX G.1

38 c 2011 6 6.1.4 L A TEX 3 (1) (2) (3) \documentclass[a4paper]{jarticle \title{ \LaTeX % \author{ % \date{2007/8/6 % \begin{document \maketitle % \begin{enumerate \item \item \item \item \item \end{enumerate \begin{itemize \item \item \end{itemize \begin{description \item[1962 ] \item[1966 ] \item[1987 ] \item[1992 ] \item[1995 ] \item[1997 ] \item[2003 ] \end{description \end{document 6.1.5 \section \subsection \documentclass[a4paper]{jarticle \title{ \LaTeX %

6.1 L A TEX c 2011 39 \author{ % \date{2007/8/6 % \begin{document \maketitle % \section{ \subsection{ \begin{enumerate \item \item \item \item \item \end{enumerate \subsection{ \begin{itemize \item \item \end{itemize \subsection{ \begin{description \item[1962 ] \item[1966 ] \item[1987 ] \item[1992 ] \item[1995 ] \item[1997 ] \item[2003 ] \end{description \end{document 6.1.6 dvi dvi foo.dvi % dvips -f foo.dvi /usr/ucb/lpr -Ppr3 % dvips -f foo.dvi /usr/ucb/lpr -Ppr4 (1) 1 L A TEX

40 c 2011 6 6.2 L A TEX 6.2.1 $ \[ \] \ begin{equation \ end{equation \documentclass[a4paper]{jarticle \title{ \LaTeX % \author{ % \date{2007/8/6 % \begin{document \maketitle % $a xˆ{2 + b x + c = 0$ \[ a xˆ{2 + b x + c = 0\] \begin{equation a xˆ{2 + b x + c = 0 \end{equation $a xˆ{2 + b x + c = 0$ \[ x = \frac{-b \pm \sqrt{bˆ{2-4 a c{2 a \] \end{document xˆ{y x y \frac{a{b a b \sqrt{x x \pm ± G.2 1 n \sqrt[n]{ \[ \sqrt[3]{8 = 2\] 3 8 = 2 2 \cdots \[ n! = 1 \times 2 \times \cdots \times n \] n! = 1 2 n 3 \sum ˆ{ _{ 4 4

6.2 L A TEX c 2011 41 4 \[ \sum_{i=1ˆ{n a_{i = a_{1 + a_{2 + \cdots + a_{n \] n a i = a 1 + a 2 + + a n i=1 \left \right 8 \[ \cos \frac{\pi{3 = \cos (-\frac{\pi{3) = \cos \left(-\frac{\pi{3\right) = \frac{1{2 \] cos π ( 3 = cos( π 3 ) = cos π ) = 1 3 2 5 6 \lim \[ \lim_{n \to \infty \left(1 + \frac{1{n\right)ˆ{n = e \] ( lim 1 + 1 n = e n n) \int \, \[ \int_{0ˆ{\infty \exp(-xˆ{2) \,dx = \frac{\sqrt{\pi{2\] 7 8 0 π exp( x 2 ) dx = 2 \begin{array \end{array \\ & {ccc 3 5 \[ \left(\begin{array{ccc a_{11 & a_{12 & a_{13 \\ a_{21 & a_{22 & a_{23 \\ a_{31 & a_{32 & a_{33 \end{array \right) \] a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33. \[ \left\{\begin{array{l x + y = 2 \\ xˆ2 + xy + yˆ2 = 5 \end{array \right. \] 9 { x + y = 2 x 2 + xy + y 2 = 5 \mathrm \[ q = 1.6 \times 10ˆ{-19 \,\mathrm{c \] q = 1.6 10 19 C (1) L A TEX 5 c l r

42 c 2011 6 6.3 L A TEX 6.3.1 L A TEX EPS 6 3.1.5 tgif EPS 4.1.8 gnuplot EPS foo.eps EPS L A TEX \documentclass[a4paper]{jarticle \usepackage{graphicx % \title{ \LaTeX \author{ \date{2007/8/6 \begin{document \maketitle \begin{figure[htbp] \begin{center % \includegraphics{foo.eps % foo.eps \caption{tgif % \label{fig:foo % \end{center \end{figure \end{document \includegraphics{foo.eps % foo.eps \includegraphics[scale=0.9]{foo.eps % 0.9 \includegraphics[width=5cm]{foo.eps % 5cm \includgraphics 7 \includegraphics{benzen.eps 6 7

6.3 L A TEX c 2011 43 6.3.2 \label \ref \documentclass[a4paper]{jarticle \usepackage{graphicx % \title{ \LaTeX \author{ \date{2007/8/6 \begin{document \maketitle \ref{fig:foo tgif \begin{figure[htbp] \begin{center % \includegraphics{foo.eps % foo.eps \caption{tgif % \label{fig:foo \end{center \end{figure \end{document 8 9 \documentclass[a4paper]{jarticle \title{ \LaTeX \author{ \date{2007/8/6 \begin{document \maketitle (\ref{eq:euler) \begin{equation \exp (i \theta) = \cos \theta + i \sin \theta \label{eq:euler \end{equation \end{document (1) tgif gnuplot L A TEX 8? 9?

44 c 2011 6 6.4 L A TEX 6.4.1 \documentclass[a4paper]{jarticle \title{ \LaTeX \author{ \date{2007/8/6 \begin{document \maketitle {\large {\Large {\small {\footnotesize \textgt{ \textbf{boldface \textit{italic \textsf{sans Serif \end{document abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz \mathrm \mathbf \mathsf 6.4.2 \documentclass[a4paper]{jarticle \title{ \LaTeX \author{ \date{2007/8/6 \begin{document \begin{table \caption{ % \label{tab:jikanwari % \begin{center % \begin{tabular{ c c c \hline % & & \\

6.4 L A TEX c 2011 45 6.1 I A I \hline & & \\ \hline & & \\ \hline & I & \\ \hline A & I & \\ \hline \end{tabular \end{center \end{table \end{document \begin{tabular \end{tabular { c c c (1) 1 3 (2) 10 (3) ( ) \\ \hline \ref{tab:jikanwari 6.1 6.4.3 \begin{thebibliography{9 \bibitem{cameron D. Cameron \& B. Rosenblatt \& E. Raymond GNU Emacs 2 1999 \bibitem{takeda UNIX 2003 \end{thebibliography 11 \begin{thebibliography{9 9 9 99 10 c r l 11 71

46 c 2011 6 \bibitem{cameron Cameron \cite{cameron [1] (1) 2 3 L A TEX

c 2011 47 7 7.1 HTML 7.1.1 1 public html public html o+x % cd % mkdir public_html % chmod 755 public_html % chmod o+x public html 7.1.2 HTML HTML <html> <head> <title> </title> </head> <body> <h1> </h1> </body> </html>

48 c 2011 7 < > HTML <html> </html> HTML 1 HTML <head> </head> <body> </body> <title> </title> <hn > </hn > n 1 6 H 7.1.3 HTML 3 <ul> </ul> <li> </li> <ol> </ol> <li> </li> <dl> </dl> <dt> </dt> <dd> </dd> 7.1.4 URI <a href="uri">anchor</a> ANCHOR <a href="http://www.gunma-ct.ac.jp/"> </a> 7.1.5 foo.jpg <img src ="foo.jpg"> 7.1.6 <table border="2"> <caption> </caption> <tbody> <tr><th> </th><th> </th><th> </th></tr> 1 </html>

7.1 c 2011 49 <tr><td> </td><td> </td><td> </td></tr> <tr><td> </td><td> </td><td> I</td></tr> <tr><td> </td><td> I</td><td> </td></tr> <tr><td> A</td><td> I</td><td></td></tr> </tbody> </table> 7.1.7 Java Applet WWW Java Applet Java Applet <applet code="sample" width=200 height=200> </applet> (1) % cd /public_html (2) HTML % emacs mypage.html (3) URI http://home.ipc.gunma-ct.ac.jp/ UID/mypage.html UID ID (4) (5) (1) % a2ps mypage.html /usr/ucb/lpr -Ppr3 % a2ps mypage.html /usr/ucb/lpr -Ppr4

50 c 2011 A UNIX UNIX Windows X H: Windows2000 USB UNIX Windows X UNIX Windows XP Windows XP (1) TeraPad (2) UNIX Windows XP SHIFT-JIS CR+LF Windows XP UNIX EUC LF (3) UNIX nkf nkf (1) foo.txt EUC SHIFT-JIS bar.txt % nkf -s foo.txt > bar.txt (2) foo.txt SHIFT-JIS EUC bar.txt % nkf -e foo.txt > bar.txt

c 2011 51 B emacs B.1 Ctrl -x Ctrl -c Ctrl -g Ctrl -x Ctrl -s Ctrl -x Ctrl -w Ctrl -x f Ctrl -x i 1 Ctrl -b 1 Ctrl -f Ctrl -p Ctrl -n Ctrl -a Ctrl -e 1 Ctrl -v 1 Esc v Esc < Esc > 1 Ctrl -d Ctrl -k Del Ctrl -y Ctrl -u 2 Ctrl -x 2 Ctrl -x o Ctrl -x 0 Ctrl -h T

52 c 2011 B emacs B.2 B.2.1 Ctrl -\ SPC SPC Ctrl -n Ctrl -p RET B.2.2 n Del Ctrl -d Ctrl -b Ctrl -f Ctrl -a Ctrl -e K qq B.2.3 SPC SPC Ctrl -n Ctrl -p RET Ctrl -i Ctrl -o Ctrl -f Ctrl -b H K DEL Ctrl -c

c 2011 53 C UNIX file dir command C.1 UNIX man command ls file ls -l file ls -F file \ * 1 ls -a file ls dir dir cat file cat file1 file2 file1 file2 more file 1 less file 1 wc file od -b file 8 od -c file od -C file cp file1 file2 file1 file2 cp -i file1 file2 file2 2 mv file dir file dir 1 ls 2 cp

54 c 2011 C UNIX mv old file new file old file new file mv old file new file new file 3 rm file rm -i file 4 mkdir dir rmdir dir cd dir dir cd.. cd pwd chmod o-r file (o) file (r) (-) chmod g-r file (g) file (r) (-) chmod u-w file (u) file (w) (-) chmod u+x file (u) file (x) (+) nkf -s file SJIS nkf -e file EUC nkf -c -s file SJIS nkf -d -e file EUC ps kill pid pid ps kill -TERM pid C.2 Esc history!! 3 mv 4 rm

C.2 c 2011 55!n n!c c command > file command file command >> file command file command1 command2 command1 command2 command & command

56 c 2011 D gnuplot abs(x) x acos(x) arccos x acosh(x) cosh 1 x arg(x) arg x asin(x) arcsin x asinh(x) sinh 1 x atanx(x) arctan x atan2(y, x) arctan y x atanh(x) tanh 1 x besj0(x) 0 J 0 (x) besj1(x) 1 J 1 (x) besy0(x) 0 Y 0 (x) besy1(x) 1 Y 1 (x) ceil(x) 1 x cos(x) cos x cosh(x) cosh x erf(x) Erf(x) erfc(x) Erfc(x) exp(x) exp x floor(x) 2 x gamma(x) Γ(x) ibeta(p, q, x) B x (p, q) invertf(x) igamma(a, x) Γ(a, x) imag(x) Ix invnorm(x) int(x) x 1 x 2 x

c 2011 57 lgamma(x) log e Γ(x) log(x) log e x log10(x) log 10 x norm(x) Φ(x) rand(x) real(x) Rx sgn(x) sgn x sin(x) sin x sinh(x) sinh x sqrt(x) x tan(x) tan x tanh(x) tanh x Erf(x) = 2 x e t2 dt π 0 Erfc(x) = 2 e t2 dt = 1 Erf(x) π Γ(x) = B x (p, q) = Γ(a, x) = 0 x 0 x x Φ(x) = 1 π x t x 1 e t dt t p 1 (1 t) q 1 dt t a 1 e t dt e t2 dt (D.1) (D.2) (D.3) (D.4) (D.5) (D.6)

58 c 2011 E Java Applet javac Ex00.java:10: ; g.drawstring("hello World", 10, 100) Ex00.java 10 ; \12288 \65371 { \65373 class interface XXXX public XXXX.java class XXXX <identifier> ˆ E.1 NullPointerExeption NullPointerExeption g.drawoval(p.x, p.y, 10, 10);

E.1 NullPointerExeption c 2011 59 if (p!= null) { g.drawoval(p.x, p.y, 10, 10);

60 c 2011 F Java Applet F.1 g.drawarc(x, y, w, h, d0, d1); (x, y) w h d0 d1 x g.drawline(x0, y0, x1, y1); (x0, y0) (x1, y1) g.drawoval(x, y, w, h); (x, y) w h g.drawrect(x, y, w, h); (x, y) w h g.drawstring(str, x, y); str (x, y) g.fillarc(x, y, w, h, d0, d1); (x, y) w h d0 d1 x g.filloval(x, y, w, h); (x, y) w h g.fillrect(x, y, w, h); (x, y) w h F.2 g.setcolor(color.black); g.setcolor(color.blue); g.setcolor(color.cyan); g.setcolor(color.darkgray); g.setcolor(color.gray); g.setcolor(color.green); g.setcolor(color.lightgray); g.setcolor(color.magenta); g.setcolor(color.orange); g.setcolor(color.pink); g.setcolor(color.red); g.setcolor(color.white);

F.3 c 2011 61 g.setcolor(color.yellow); F.3 g.setfont(new Font(name, style, ps)); name Serif, SansSerif, Monospaced, Dialog, DialogInput, Symbol style Font.BOLD, Font.ITALIC, Font.PLAIN ps F.4 Math.cos(x) cos x Math.exp(x) exp x Math.log(x) log e x Math.pow(x, y) Math.random() x y Math.sin(x) sin x Math.sqrt(x) x Math.tan(x) tan x 0.0 1.0 F.5 { public void mouseclicked(mouseevent me) { public void mouseentered(mouseevent me) { public void mouseexited(mouseevent me) { public void mousepressed(mouseevent me) { public void mousereleased(mouseevent me) {

62 c 2011 G LATEX G.1 G.1 G.3 L A TEX G.1 # \# $ \$ % \% & \& \ { \{ \ \S \P \dag \ddag c \copyright \pounds œ \oe Œ \OE æ \ae Æ \AE å \aa Å \AA ø \o Ø \O ł \l Ł \L ß \ss?! ı \i \j * \, \, - - - - - - - R \textregistered TM \texttrademark \textvisiblespace \ \textbackslash \textasciitilde ˆ \textasciicircum G.2 TEX \TeX L A TEX \LaTeX L A TEX 2ε \LaTeXe G.2 L A TEX G.4 G.12

G.2 c 2011 63 G.3 ò \ {o ó \ {o ô \ˆ{o ö \ {o õ \ {o ō \= {o ȯ \. {o ŏ \u {o ǒ \v {o ő \H {o oo \t {oo o \c {o ọ \d {o ō \b {o å \r {a G.4 α \alpha β \beta γ \gamma δ \delta ɛ \epsilon ζ \zeta η \eta θ \theta ι \iota κ \kappa λ \lambda µ \mu ν \nu ξ \xi π \pi ρ \rho σ \sigma τ \tau υ \upsilon φ \phi χ \chi ψ \psi ω \omega Γ \Gamma \Delta Θ \Theta Λ \Lambda Ξ \Xi Π \Pi Σ \Sigma Υ \Upsilon Φ \Phi Ψ \Psi Ω \Omega G.5 arcsin \arcsin arccos \arccos arctan \arctan arg \arg cos \cos cosh \cosh cot \cot coth \coth csc \csc deg \deg det \det dim \dim exp \exp gcd \gcd hom \hom inf \inf ker \ker lg \lg lim \lim lim inf \liminf lim sup \limsup ln \ln log \log max \max min \min Pr \Pr sec \sec sin \sin sinh \sinh sup \sup tan \tan tanh \tanh G.6 (x) (x) {x \{ x \ x \lceil x \rceil [x] [x] x \lfloor x \rfloor x \langle x \rangle / / \ \backslash \

64 c 2011 G L A TEX G.7 ± \pm \mp \times \div \ast \star \circ \bullet \cdot \cap \cup \uplus \sqcap \sqcup \vee \wedge \ \setminus \wr \bigtriangleup \bigtriangledown \triangleleft \triangleright \oplus \ominus \otimes \oslash \odot \bigcirc \dagger \ddagger \amalg G.8 \leq \prec \perceq \ll \subset \subseteq \sqsubseteq \in \vdash \geq \succ \succeq \gg \supset \supseteq \ni \dashv \equiv \sim \simeq \asymp \approx = \cong \neq. = \doteq \propto = \models \mid \parallel \smile \frown \bowtie G.9 \leftarrow \Leftarrow \rightarrow \Rightarrow \leftrightarrow \Leftrightarrow \mapsto \hookleftarrow \leftharpoonup \leftharpoondown \rightleftharpoons \longleftarrow = \Longleftarrow \longrightarrow = \Longrightarrow \longmapsto \hookrightarrow \rightharpoonsup \rightharpoonsdown \uparrow \Uparrow \downarrow \Downarrow \updownarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow

G.2 c 2011 65 G.10 ℵ \aleph \hbar ı \imath j \jmath l \ell \wp R \Re I \Im \prime \emptyset \nabla \surd \top \bot \ \angle \forall \exists \neg \flat \natural \sharp \ \backslash \partial \infty \diamond \triangle \clubsuit \diamondsuit \heartsuit \spadesuit G.11 á \acute{a à \grave{a â \hat{a ã \tilde{a ā \bar{a a \vec{a ȧ \dot{a ä \ddot{a ǎ \check{a ă \breve{a G.12 { { x + y \overline{ x+y x + y \overbrace{ x+y x + y \underline{ x+y x + y \underbrace{ x+y {{ xyz \widehat{ xyz xyz \widetilde{ xyz OA \overrightarrow{\mathrm{oa OA \overleftarrow{\mathrm{oa

66 c 2011 H HTML HTML <html>,</html> HTML <head>,</head> <title>,</title> <body>,</body> <hn>,</hn> n 1 6 <p>,</p> </p> <hr> <br> <pre>,</pre> <ul>,</ul> <li> <ol>,</ol> <li> <dl>,</dl> <dt> <dd> <li>,</li> </li> <dt>,</dt> </dt> <dd>,</dd> </dd> <a href= URL ANCHOR</a> ANCHOR URL <!-- --> -- <em>,</em> <strong>,</strong> <sub>,</sub> <sup>,</sup> <table>,</table> <table border= n > n <tbody>,</tbody> <tr>,</tr> <th>,</th> <td>,</td> <caption>,</caption> <table>

c 2011 67 <img src= foo.jpg > foo.jpg <img src= foo.jpg width= n > foo.jpg n <img src= foo.jpg alt= hogehoge > foo.jpg hogehoge

68 c 2011 I MS-Windows MS-Windows Emacs Emacs MS-Windows Meadow NTEmacs URI http://www.meadowy.org/meadow/ http://ntemacsjp.sourceforge.jp/ L A TEX [5] CD-ROM gnuplot URI http://www.gnuplot.info/download.html Choose Font MS Upadte... Java URI http://jp.sun.com/download/

c 2011 69 [1] D. Cameron & B. Rosenblatt & E. Raymond GNU Emacs 2 1999 [2] UNIX 2003 [3] UNIX 2002 [4] UNIX 1998 [5] 4 L A TEX 2ε 2007 [6] Java 2 2002 [7] GNUPLOT 2000 [8] C. Musciano & B. Kennedy HTML & XHTML 5 2003