データ構造とアルゴリズム論
|
|
- ゆめじ かつま
- 5 years ago
- Views:
Transcription
1 (n-1)(n-2) n Fact(n) factorial Fact Fact(n) X XX*i X1 i:1,1,n Fact(n) AnsFact(n) Ans 123
2 void jbuttonkeisan actionperformed(actionevent e) { int Ans,n; n=integer.parseint(jtextfieldn.gettext()) ; Ans=Fact(n); // Fact(n) jtextfieldans.settext(string.valueof(ans)); Fact(n) int Fact(int n) { int X; X=1; for (int i=1;i<=n;i++) { X=X*i; return X; 124
3 Fact(n) Fact(n) Fact(n) nfact(n-1) Fact 1 Fact(n-1) Fact(n-2) Fact(n-3) Fact(1) p.123 Fact(n) Fact(n) No n2 Yes AnsFact(n) Ans Xn*Fact(n-1) X X 1 3! 125
4 Fact(3) ~ Fact(1) 3! ~ Fact(3) Fact(3)= AnsFact(3) Fact(3) 32 Yes No Ans X3*Fact(2) X 1 X Fact(3)32 Fact(2) 22 No Yes X2*Fact(1) X 1 X Fact(2)21 Fact(1) 12 No Yes X1*Fact(0) X 1 Fact(1) 126 X
5 Fact(n) p.125 int Fact(int n) { int X; if (n>=2) { X= n*fact(n-1) ; else { X=1; return X; Fact(n) 8-2 collatz
6 jtextfieldn jbuttonstart jtextarea1 3 Collatz(n) Collatz Collatz(n) Collatz n Collatz(n) (n % 2)=0 Yes n n/2 n No n3*n+1 % Collatz Yes Collatz(n) n1 No 128
7 void jbuttonstart actionperformed(actionevent e) { int n=integer.parseint(jtextfieldn.gettext()); String Disp=n+" n"; jtextarea1.settext(disp); //jtextarea Collatz(n); // Collatz void Collatz(int n) { if( (n % 2)==0 ) { n=n/2; else { n=3*n+1; String Disp=jTextArea1.getText(); jtextarea1.settext(disp+n+" n"); if (n!=1) { Collatz(n); 129
8 Koch 2 P1(x1,y1)P2(x2,y2) P1(x1,y1) P2(x2,y2) 3 P3(x3,y3) P4(x4,y4) P1(x1,y1) P2(x2,y2) P3(x3,y3) P4(x4,y4) P3-P4 P5(x5,y5) P1-P2 P1-P3P3-P5P5-P4P4-P2 P5(x5,y5) P1(x1,y1) P2(x2,y2) P3(x1,y1) P4(x4,y4) 130
9 P3P5 P3P4 x3=x1+ (x2-x1)/3 y3=y1+ (y2-y1)/3 =(2x1+x2)/3 =(2y1+y2)/3 x4=x1+ 2(x2-x1)/3 =(x1+2x2)/3 y4=y1+ 2(y2-y1)/3 =(y1+2y2)/3 P5 P5(x5,y5) P3(x3,y3) P4(x4,y4)60 60 P5 x5=x3+(x4-x3)cos(60)+(y4-y3)sin(60) y5=y3-(x4-x3)sin(60)+(y4-y3)cos(60) O(x0,y0) X(x,y) X'(x',y') X'(x',y') x'=x0+(x-x0)cos+(y-y0)sin y'=y0-(x-x0)sin+(y-y0)cos O(x0,y0) X(x,y) 131
10 (x1,y1)(x2,y2) Koch(n,x1,y1,x2,y2) Koch Koch(n,x1,y1,x2,y2) Koch n0 Yes No x3(2x1+x2)/3 y3(2y1+y2)/3 x4(x1+2x2)/3 y4(y1+2y2)/3 x5x3+(x4-x3)cos(60)+(y4-y3)sin(60) y5y3-(x4-x3)sin(60)+(y4-y3)cos(60) (x1,y1)-(x2,y2) Koch(n-1,x1,y1,x3,y3) Koch(n-1,x3,y3,x5,y5) Koch(n-1,x5,y5,x4,y4) Koch(n-1,x4,y4,x2,y2) Koch n=1,2,3 Koch 132
11 A jpanel1 n=1 jbuttonclear jtextfieldn jbuttondraw n=2 n=6 133
12 HP Koch.exe Swing Containers background void jbuttondraw actionperformed(actionevent e) { int n=integer.parseint(jtextfieldn.gettext()); //n int XMax=jPanel1.getWidth(); // int YMax=jPanel1.getHeight(); // int x1=10,x2=xmax-10; int y1=ymax-10, y2=ymax-10; Koch(n,x1,y1,x2,y2); //Koch getwidth() getheight() p.130 P1(x1,y1)P2(x2,y2) Koch p
13 ,0 x1,y1x2,y2 (0,0) XMax (0,0) 10 (x1,y1) 10 jpanel1 (x2,y2) (XMax,YMax) YMax void jbuttonclear actionperformed(actionevent e) { Graphics g=jpanel1.getgraphics(); //Graphics int Width=jPanel1.getWidth(); // int Height=jPanel1.getHeight(); // g.setcolor(color.white); // g.fillrect(0,0,width,height); // Java Graphics Graphics getgraphics() Graphics g Graphics setcolor() Color.white fillrect(x,y,w,h) x,y (x,y) 135
14 Koch p.132 Koch void Koch(int n,int x1,int y1,int x2,int y2) { Graphics g=jpanel1.getgraphics(); //Graphics g.setcolor(color.blue); // int x3,y3,x4,y4,x5,y5; if(n==0) { g.drawline(x1,y1,x2,y2); //(x1,x2)-(x2,y2) else { x3=(2*x1+x2)/3; y3=(2*y1+y2)/3; x4=(x1+2*x2)/3; y4=(y1+2*y2)/3; x5=x3+(int) ( (x4-x3)*math.cos(60*math.pi/180) +(y4-y3)*math.sin(60*math.pi/180) ); y5=y3+(int) (-(x4-x3)*math.sin(60*math.pi/180) +(y4-y3)*math.cos(60*math.pi/180) ); Koch(n-1,x1,y1, x3, y3 ); Koch(n-1,x3,y3, x5, y5 ); Koch(n-1,x5,y5, x4, y4 ); Koch(n-1,x4,y4, x2, y2 ); drawline(x1,y1,x2,y2) x1,y1 x2,y2 Java sin cos Math 6-1 p.148 sin(x)math.sin(x) cos sin /180 Math Math.PI Java (int) p.72 Koch 136
15 B P2(x2,y2) P1P2 P5(x5,y5) P4(x4,y4) P1-P2 2:1 P3 P3 P2 P4 P5 P1-P2 P1-P3P3-P4P3-P5 P3-P2 P3(x3,y3) P1(x1,y1) 8-A n=1 n=7 HP Leaf.exe 137
16 x3,y3 (x4,y4)(x5,y5) x3=(x1+2*x2)/3 y3=(y1+2*y2)/3 x4=x3+(x2-x3)*cos(*/180)+(y2-y3)*sin(*/180) y4=y3-(x2-x3)*sin(*/180)+(y2-y3)*cos(*/180) x5=x3+(x2-x3)*cos(-*/180)+(y2-y3)*sin(-* y5=y3-(x2-x3)*sin(-*/180)+(y2-y3)*cos(-* 138
任意の加算プログラム
HP Java CG Java Graphics CG CG CG paint CG CG paint CG paint Windows paint paint 17 // public Frame1() { enableevents(awtevent.window_event_mask); try { jbinit(); catch(exception e) { e.printstacktrace();
More informationデータ構造とアルゴリズム論
15 10 7 A[1]A[2] 5 5 A1A2 A5 9 A4 A1 A2 A3 A4 A5 9 A[4] [1] [2] [3] [4] [5] 5 A1A2 A5 A(1)A(5) A1 i 1 A2 A3 i5 Yes No A4 A[i] A5 i+1 13 15 10 7 100 100 Java Java 10 A int A[]; A= new int[10]; int A[] =
More information離散数理工学 第 2回 数え上げの基礎:漸化式の立て方
2 okamotoy@uec.ac.jp 2014 10 21 2014 10 29 10:48 ( ) (2) 2014 10 21 1 / 44 ( ) 1 (10/7) ( ) (10/14) 2 (10/21) 3 ( ) (10/28) 4 ( ) (11/4) 5 (11/11) 6 (11/18) 7 (11/25) ( ) (2) 2014 10 21 2 / 44 ( ) 8 (12/2)
More informationLMNtal LMNtal LMNtal JAVA JAVA JAVA LMNtal LMNtal LMNtal
2003 LMNtal GUI GUI : 2004 2 5 : : 1G00P024-3 LMNtal LMNtal LMNtal JAVA JAVA JAVA LMNtal LMNtal LMNtal 1 1 2 LMNtal 3 2.1 LMNtal.............................. 3 2.1.1 Atom........................ 3 2.1.2...............................
More information/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v
1 http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp /* do-while */ #include #include int main(void) double val1, val2, arith_mean, geo_mean; printf( \n );
More information関数 C 言語は関数の言語 関数とは 関数の定義 : f(x) = x * x ; 使うときは : y = f(x) 戻り値 引数
関数 C 言語は関数の言語 関数とは 関数の定義 : f(x) = x * x ; 使うときは : y = f(x) 戻り値 引数 関数の定義 戻り値の型 関数名 引数の型 引数の名前 int funcname ( int a, char b) { int c ; c = a * b ; return c ; 引数の型 引数の名前 戻り値 戻り値の型は int 変数 c の型も int return
More information40 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,
9.. x + y + 0. x,y, x,y, x r cos θ y r sin θ xy x y x,y 0,0 4. x, y 0, 0, r 0. xy x + y r 0 r cos θ sin θ r cos θ sin θ θ 4 y mx x, y 0, 0 x 0. x,y 0,0 x x + y x 0 x x + mx + m m x r cos θ 5 x, y 0, 0,
More informationAppendix( ) {x(t), y(t) } の値を計算し そのグラフを描く ( for t=a to t=b ) この Program ( a.c ) は t をパラメーターとして X 軸に x = x(t) として Y 軸を y = y(t) として 最大 9 個の Graph
********************************************************************* 補足資料 ********************************************************************* 人工知能パートナーシステム (AIPS) を支える デジタル回路の世界 ( ISBN978-4-88359-339-2
More informationêUìÆã§ñ¬ÅEÉtÉFÉãÉ~ã§ñ¬.pdf
SFG SFG SFG Y. R. Shen.17 (p. 17) SFG g ω β αβγ = ( e3 h ) (r γ ) ng n ω ω ng + iγ (r α ) gn ' (r β ) n 'n (r ) (r ) α n 'n β gn ' ng n ' ω ω n 'g iγ n'g ω + ω n 'n iγ nn ' (1-1) Harris (Chem. Phys. Lett.,
More information課題
2018 6 22 2. float[] y = new float[5]; void setup() { size(400, 200); for (int i=0;i< (a) ;i++) { y[i] = random(0.3*width, width); void draw() { y[ (b) ] = mousex; int minpos = findminpos( (c) ); for (int
More informationJava 3 p.2 3 Java : boolean Graphics draw3drect fill3drect C int C OK while (1) int boolean switch case C Calendar java.util.calendar A
Java 3 p.1 3 Java Java if for while C 3.1 if Java if C if if ( ) 1 if ( ) 1 else 2 1 1 2 2 1, 2 { Q 3.1.1 1. int n = 2; if (n
More informationyy yy ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ; ; ; ;; ;; ;; ;;; ;;; ;;; ;; ;; ;; ;; ;; ; ; ; ; ; ; ;
More information2
D 1 2 3 XX XY ( ) 4 5 GID ( ) ( ) ( ) ( ) WHO( ) ( ) ( ) WHO ( ) WHO ( ) 6 7 8 9 X Y XX XY XO XXY XXXY Y Y SRY Y SRY X XX XY SRY XY XX Y Y X Y Y DNA DNA 10 XY XY 11 12 13 F M T 14 U H R 15 K N F 16 M T
More informationuntitled
20 7 1 22 7 1 1 2 3 7 8 9 10 11 13 14 15 17 18 19 21 22 - 1 - - 2 - - 3 - - 4 - 50 200 50 200-5 - 50 200 50 200 50 200 - 6 - - 7 - () - 8 - (XY) - 9 - 112-10 - - 11 - - 12 - - 13 - - 14 - - 15 - - 16 -
More informationuntitled
19 1 19 19 3 8 1 19 1 61 2 479 1965 64 1237 148 1272 58 183 X 1 X 2 12 2 15 A B 5 18 B 29 X 1 12 10 31 A 1 58 Y B 14 1 25 3 31 1 5 5 15 Y B 1 232 Y B 1 4235 14 11 8 5350 2409 X 1 15 10 10 B Y Y 2 X 1 X
More informationMicrosoft PowerPoint - 10.ppt [互換モード]
第 10 回関数と再帰 1 今回の目標 再帰的な考え方に慣れる C 言語における再帰関数を理解する 階乗を求める再帰的な関数を作成し その関数を利用するプログラムを作成する 2 階乗 n! の 2 つの数学的表現 (1) 繰り返しによる表現 n! = 1 2 i n n = ii i= 1 ( n 1 のとき ) ( なお 0!=1) (2) 漸化式による表現 n! = 1 n = 0のとき n (
More informationtext_13.dvi
C 13 2000 7 9 13 Java(8) { Swing(2)(, ) 1 13.1 13 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 13.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
More information<4D F736F F F696E74202D AC C8899E D834F E >
Java 簡単な応用プログラム ( その 2) Java は すでにある部品群を上手く使ってプログラムを組み立てます 前回と同様に Frame を使って ウインドウを表示するプログラムを作りましょう. Frameは ウインドウを作るための部品で フレーム ( 枠 ) とタイトルおよび, 決められた仕組みが入っています. java.awt パッケージは, ウインドウ関連の部品が多くあります. javax.swing
More informationtext_08.dvi
C 8 12 6 6 8 Java (3) 1 8.1 8 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 8.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
More information2
2007 8 12 1 Q&A Q1 A 2007 6 29 2008 1 1 14 1 12 1 2 3 1 1 13 1 2 15 1 1 2 Q2 A 627 1 20 1 1 3 15 2003 18 2 3 4 5 3 406 44 2 1997 7 16 5 1 1 15 4 52 1 31 268 17 5 60 55 50 1999 3 9 1999 3 39 40 44 100 1
More informationuntitled
II 4 Yacc Lex 2005 : 0 1 Yacc 20 Lex 1 20 traverse 1 %% 2 [0-9]+ { yylval.val = atoi((char*)yytext); return NUM; 3 "+" { return + ; 4 "*" { return * ; 5 "-" { return - ; 6 "/" { return / ; 7 [ \t] { /*
More information離散数理工学 第 2回 数え上げの基礎:漸化式の立て方
2 okamotoy@uec.ac.jp 2015 10 20 2015 10 18 15:29 ( ) (2) 2015 10 20 1 / 45 ( ) 1 (10/6) ( ) (10/13) 2 (10/20) 3 ( ) (10/27) (11/3) 4 ( ) (11/10) 5 (11/17) 6 (11/24) 7 (12/1) 8 (12/8) ( ) (2) 2015 10 20
More information: : : TSTank 2
Java (8) 2008-05-20 Lesson6 Lesson5 Java 1 Lesson 6: TSTank1, TSTank2, TSTank3 java 2 car1 car2 Car car1 = new Car(); Car car2 = new Car(); car1.setcolor(red); car2.setcolor(blue); car2.changeengine(jet);
More informationデータ構造とアルゴリズム論
15 11 18 A[0]A[4] 0 1 2 3 5 2 12 9 10 4 12 10 9 5 2 4 3 2 1 0 A 1,2,3,4,5 5,4,3,2,1 87 15 11 18 0 1 2 3 4 A 10 9 12 2 5 10 9 12 2 5 A[0]A[1] 9 10 12 2 5 A[1]A[2] 9 10 12 2 5 A[2]A[3] 9 10 2 12 5 A[3]A[4]
More informationN N 1,, N 2 N N N N N 1,, N 2 N N N N N 1,, N 2 N N N 8 1 6 3 5 7 4 9 2 1 12 13 8 15 6 3 10 4 9 16 5 14 7 2 11 7 11 23 5 19 3 20 9 12 21 14 22 1 18 10 16 8 15 24 2 25 4 17 6 13 8 1 6 3 5 7 4 9 2 1 12 13
More information第1章 ビジュアルプログラミング入門
第 8 章 CG 入門 学習内容とねらい 本章では Java 言語を用いた CG( コンピュータグラフィックス ) の描き方を学習します Java 言語では Graphics クラスに CG 作成に必要なメソッドが用意されており それらを利用するだけで簡単に CG を作成することができます その 簡単に CG を描ける という体験を ( 課題プログラムの作成を通じて ) してもらう ということが本章のねらいです
More information上達Java解答.doc
//[1] (1) package kihonproj; import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.*; public class Sikakumenseki extends JApplet { // public void paint(graphics g){ int tate
More information5.. z = f(x, y) y y = b f x x g(x) f(x, b) g x ( ) A = lim h 0 g(a + h) g(a) h g(x) a A = g (a) = f x (a, b)
5 partial differentiation (total) differentiation 5. z = f(x, y) (a, b) A = lim h 0 f(a + h, b) f(a, b) h............................................................... ( ) f(x, y) (a, b) x A (a, b) x
More information構造化プログラミングと データ抽象
計算の理論 後半第 3 回 λ 計算と型システム 本日の内容 λ 計算の表現力 ( 前回のつづき ) 前回の復習 不動点演算子と再帰 λ 計算の重要な性質 チャーチ ロッサー性 簡約戦略 型付き λ 計算 ブール値 組 ブール値と組の表現 ( 復習 ) true, false を受け取り 対応する要素を返す関数 として表現 T = λt.λf.t F = λt.λf.f if e 1 then e
More informationのようにする 上の例では GeneralPath を new するときに コンストラクタに何も指定していないが 直線を表す Line, 四角形を表す Rectangle などを引数に与えてもよい 矢印を作成するメソッドの引数矢印を表す GeneralPath を生成するために getarrowpat
手書認識 グラフ描画 Step3 認識した数式をもとに関数グラフを描画する < 数式の構造解析 > 一般に 1+3 などと文字列で数式をうけとっても コンピュータはそれをそのままで式とは認識しない あくまで 文字列は文字の並びであり そこに数学的な意味は含まれない 数式として計算するためには プログラムによって数式の構造を解析し コンピュータが計算できる形式に変換する必要がある 今回のプログラムでは
More informationuntitled
http://www.mofa.go.jp/mofaj/toko/visa/index.html http://www.cn.emb-japan.go.jp/jp/01top.htm http://www.shanghai.cn.emb-japan.go.jp/ http://www.guangzhou.cn.emb-japan.go.jp/ http://www.shengyang.cn.emb-japan.go.jp/jp/index.htm
More information構造化プログラミングと データ抽象
計算の理論 後半第 3 回 λ 計算と型システム 本日の内容 λ 計算の表現力 ( 前回の復習 ) データの表現 不動点演算子と再帰 λ 計算の重要な性質 チャーチ ロッサー性 簡約戦略 型付き λ 計算 ブール値 組 ブール値と組の表現 true, false を受け取り 対応する要素を返す関数 として表現 T = λt.λf.t F = λt.λf.f if e 1 then e 2 else
More information5.. z = f(x, y) y y = b f x x g(x) f(x, b) g x ( ) A = lim h g(a + h) g(a) h g(x) a A = g (a) = f x (a, b)............................................
5 partial differentiation (total) differentiation 5. z = f(x, y) (a, b) A = lim h f(a + h, b) f(a, b) h........................................................... ( ) f(x, y) (a, b) x A (a, b) x (a, b)
More informationD 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
5 5. 2 D xy D (x, y z = f(x, y f D (2 (x, y, z f R 2 5.. z = x 2 y 2 {(x, y; x 2 +y 2 } x 2 +y 2 +z 2 = z 5.2. (x, y R 2 z = x 2 y + 3 (2,,, (, 3,, 3 (,, 5.3 (. (3 ( (a, b, c A : (x, y, z P : (x, y, x
More information入門Java解答.doc
//2 1Mon2_1.java package moji; import java.awt.*; import java.awt.event.*; import java.applet.*; public class Mon2_1 extends Applet { public void paint(graphics g){ } g.drawstring("java ", 100, 100); g.drawstring("",
More informationWindows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2
Windows C++ Microsoft Visual Studio 2010 C++ Microsoft C++ Microsoft Visual Studio 2010 Microsoft Visual Studio 2010 C++ C C++ Microsoft Visual Studio 2010 Professional Professional 1 Professional Professional
More informationmain
14 1. 12 5 main 1.23 3 1.230000 3 1.860867 1 2. 1988 1925 1911 1867 void JPcalendar(int x) 1987 1 64 1 1 1 while(1) Ctrl C void JPcalendar(int x){ if (x > 1988) printf(" %d %d \n", x, x-1988); else if(x
More information. p.1/15
. p./5 [ ] x y y x x y fx) y fx) x y. p.2/5 [ ] x y y x x y fx) y fx) x y y x y x y fx) f y) x f y) f f f f. p.2/5 [ ] x y y x x y fx) y fx) x y y x y x y fx) f y) x f y) f f f f [ ] a > y a x R ). p.2/5
More informationA A p.1/16
A A p./6 A p.2/6 [ ] x y y x x y fx) y fx) x y A p.3/6 [ ] x y y x x y fx) y fx) x y y x y x y fx) f y) x f y) f f f f A p.3/6 [ ] x y y x x y fx) y fx) x y y x y x y fx) f y) x f y) f f f f [ ] a > y
More informationA_chapter3.dvi
: a b c d 2: x x y y 3: x y w 3.. 3.2 2. 3.3 3. 3.4 (x, y,, w) = (,,, )xy w (,,, )xȳ w (,,, ) xy w (,,, )xy w (,,, )xȳ w (,,, ) xy w (,,, )xy w (,,, ) xȳw (,,, )xȳw (,,, ) xyw, F F = xy w x w xy w xy w
More informationcaim03
ImageToolBox.swift fillrect fillcolor x1,y1,x2,y2 static func fillrect(_ img:caimimage, x1:int, y1:int, x2:int, y2:int, color:caimcolor) { // let mat = img.matrix // let wid = img.width // let hgt = img.height
More informationI. 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
2018 08 03 10:30 12:00 I. IV III II. III. IV. ( a d) V. VI. 70 III 30 100 60 : A ActionListener aa addactionlistener AE ActionEvent K KeyListener ak addkeylistener KE KeyEvent M MouseListener am addmouselistener
More informationAppendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1) (2) ( ) BASIC BAS
Appendix A BASIC BASIC Beginner s All-purpose Symbolic Instruction Code FORTRAN COBOL C JAVA PASCAL (NEC N88-BASIC Windows BASIC (1 (2 ( BASIC BASIC download TUTORIAL.PDF http://hp.vector.co.jp/authors/va008683/
More informationcaim03
ImageToolBox.swift fillrect fillcolor x1,y1,x2,y2 static func fillrect(_ img:caimimage, x1:int, y1:int, x2:int, y2:int, color:caimcolor) { // let mat = img.matrix // let wid = img.width // let hgt = img.height
More information73 p.1 22 16 2004p.152
1987 p.80 72 73 p.1 22 16 2004p.152 281895 1930 1931 12 28 1930 10 27 12 134 74 75 10 27 47.6 1910 1925 10 10 76 10 11 12 139 p.287 p.10 11 pp.3-4 1917 p.284 77 78 10 13 10 p.6 1936 79 15 15 30 80 pp.499-501
More information122011pp.139174 18501933
122011pp.139174 18501933 122011 1850 3 187912 3 1850 8 1933 84 4 1871 12 1879 5 2 1 9 15 1 1 5 3 3 3 6 19 9 9 6 28 7 7 4 1140 9 4 3 5750 58 4 3 1 57 2 122011 3 4 134,500,000 4,020,000 11,600,000 5 2 678.00m
More informationMicrosoft Word - 映画『東京裁判』を観て.doc
1 2 3 4 5 6 7 1 2008. 2 2010, 3 2010. p.1 4 2008 p.202 5 2008. p.228 6 2011. 7 / 2008. pp.3-4 1 8 1 9 10 11 8 2008, p.7 9 2011. p.41 10.51 11 2009. p. 2 12 13 14 12 2008. p.4 13 2008, p.7-8 14 2008. p.126
More information() L () 20 1
() 25 1 10 1 0 0 0 1 2 3 4 5 6 2 3 4 9308510 4432193 L () 20 1 PP 200,000 P13P14 3 0123456 12345 1234561 2 4 5 6 25 1 10 7 1 8 10 / L 10 9 10 11 () ( ) TEL 23 12 7 38 13 14 15 16 17 18 L 19 20 1000123456
More information308 ( ) p.121
307 1944 1 1920 1995 2 3 4 5 308 ( ) p.121 309 10 12 310 6 7 ( ) ( ) ( ) 50 311 p.120 p.142 ( ) ( ) p.117 p.124 p.118 312 8 p.125 313 p.121 p.122 p.126 p.128 p.156 p.119 p.122 314 p.153 9 315 p.142 p.153
More information日経テレコン料金表(2016年4月)
1 2 3 4 8,000 15,000 22,000 29,000 5 6 7 8 36,000 42,000 48,000 54,000 9 10 20 30 60,000 66,000 126,000 166,000 50 100 246,000 396,000 1 25 8,000 7,000 620 2150 6,000 4,000 51100 101200 3,000 1,000 201
More information2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226. 1893 B pp. 1 2. p. 3.
1 73 72 1 1844 11 9 1844 12 18 5 1916 1 11 72 1 73 2 1862 3 1870 2 1862 6 1873 1 3 4 3 4 7 2 3 4 5 3 5 4 2007 p. 117. 2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226.
More information29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23
29 2011 3 pp.55 86 19 1886 2 13 1 1 21 1888 1 13 2 3,500 3 5 5 50 4 1959 6 p.241 21 1 13 2 p.14 1988 p.2 21 1 15 29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23 1
More information戦後の補欠選挙
1 2 11 3 4, 1968, p.429., pp.140-141. 76 2005.12 20 14 5 2110 25 6 22 7 25 8 4919 9 22 10 11 12 13 58154 14 15 1447 79 2042 21 79 2243 25100 113 2211 71 113 113 29 p.85 2005.12 77 16 29 12 10 10 17 18
More informationCir
ブロック崩し Step2-1 ボールを描画し アニメーションで動かす ( 壁やパドルで反射するようにする ) < アニメーションの復習 > アニメーションは アプリケーションが指定する間 一定間隔でどんどん画像をおきかえていくもの Swing では Timer によって一定間隔でイベントを発生させ イベント処理をするメソッド ( 関数 ) に画像を描画しなおす処理を記述すると アニメーションになる
More informationMicrosoft Word - 03
平成 24 年度講義 アルゴリズムとデータ構造 第 3 回変数のスコープルール 関数 担当 : 富井尚志 (tommy@ynu.ac.jp) 選択計算 ( 条件判断 ) 第 2 回 基本的制御構造 の復習 if 文 : ある条件に応じて別々の計算を行う. 式が真 (0 以外 ) であれば文 1 が実行され, 偽であれば文 2 が実行される. なお,else 以下は省略可能である. if ( 式 )
More information( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1
() 2006 2 27 1 10 23 () 30 () 27 [1] p.97252 7 2 2.1 2.1.1 1 LIFO(last in first out, ) (push) (pup) 1 1: 2.1.2 1 List 4-1(p.100) stack[] stack top 1 2 (push) (pop) 1 2 void stack push(double val) val stack
More informationプログラミング入門1
プログラミング入門 1 第 9 回 メソッド (3) 授業の前に自己点検 以下の質問に答えられますか? メソッドの宣言とは 起動とは何ですか メソッドの宣言はどのように書きますか メソッドの宣言はどこに置きますか メソッドの起動はどのようにしますか メソッドの仮引数 実引数 戻り値とは何ですか メソッドの起動にあたって実引数はどのようにして仮引数に渡されますか 戻り値はどのように利用しますか 変数のスコープとは何ですか
More informationr14.dvi
2007 14 2008.1.29 1 1.1 (Ruby Java ) 1 (thread) 1 ( 1 ) main main 1: 1 ( 1 ) CPU CPU 1 while(true) { 0.1 0.1 GUI CPU 1 OS 1.2 Java Java Thread new start()? Thread 0 run() Thread run() run() start() Java
More information3 1 1 BCA ACD HP A AB BC ABC ONP x AM, CN x 30 DM DM! CN CN AM AMD 10 1 AB AC
3 BCA ACD HP A AB BC ABC ONP x AM, CN x 30 DM DM!CN CN AM AMD 0 AB AC AMD3AMB3030 x x x 0,60,50,30,30 ABCD AC, BD ABD, DBC, BCA, ACD BDA x BDC 80 AB AD ABD sin x sin AD AC ACD sin sin x AC ABC sin AB sin
More information2
( ) 1 1 2 3000 2500 2000 1500 1000 500 0-500 -1000-1500 18 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 3 3 1980 ( ) 1980 43 87 33 10 10 2001 80 07 58.6
More information94.7 H22 H22 140,000 120,000 3.31 3.24 3.02 2.85 116,435 122,529 126,317 3.5 3 100,000 80,000 77,498 93,159 105,099 112,878 2.73 2.62 2.51 2.5 2 60,000 40,000 20,000 23,412 28,790 34,786 39,571
More informationuntitled
P125(2) ()()()() ()()() ()()()()()()() 1 - - - - - - - - - - - - - - -1 - - - 105 105 105120 105120 105120 105120 105120 90 90 90 90 90 105 105 105 105 105120 105120 105120 105120 90 90 90 90 85 85 85
More information平成16年度外務省事後評価実施計画策定について
2005 1 HP http://www.mofa.go.jp/mofaj/area/n_korea/index.html http://www.mofa.go.jp/mofaj/area/n_korea/abd/rachi_mondai.html HP http://www.mofa.go.jp/mofaj/area/n_korea/abd/6kaigo3_gh.html http://www.mofa.go.jp/mofaj/press/danwa/17/dga_0414b.html
More information2 4 5 6 7 8 9 HP 10 11 12 14 15 , 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 34 35 36 37 38 39, 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 1 70 71 72
More informationa,, f. a e c a M V N W W c V R MN W e sin V e cos f a b a ba e b W c V e c e F af af F a a c a e be a f a F a b e f F f a b e F e ff a e F a b e e f b e f F F a R b e c e f F M N DD s n s n D s s nd s
More information5 p Point int Java p Point Point p; p = new Point(); Point instance, p Point int 2 Point Point p = new Point(); p.x = 1; p.y = 2;
5 p.1 5 JPanel (toy example) 5.1 2 extends : Object java.lang.object extends... extends Object Point.java 1 public class Point { // public int x; public int y; Point x y 5.1.1, 5 p.2 5 5.2 Point int Java
More informationCONTENTS 0 1 2 3 4 5 6 7 8 9 10 0 Java10 BaseFrame.java 1 import javax.swing.*; import java.awt.*; import java.awt.event.*; public class BaseFrame extends JFrame { public BaseFrame(String title) { super(title);
More information1 (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 θ
1 (1) ( i ) 60 (ii) 75 (iii) 15 () ( i ) (ii) 4 (iii) 7 1 ( () r, AOB = θ 0 < θ < ) OAB A OB P ( AB ) < ( AP ) (4) 0 < θ < sin θ < θ < tan θ 0 x, 0 y (1) sin x = sin y (x, y) () cos x cos y (x, y) 1 c
More informationQ.5-1 Ans.
5 Q.5-1 Q.5-2 Q.5-3 Q.5-4 Q.5-5 Q.5-6 Q.5-7 Q.5-8 Q.5-9 Q.5-10 Q.5-11 Q.5-12 Q.5-13 Q.5-14 Q.5-15 Q.5-1 Ans. Q.4-5 1 Q.5-3 Check Q.5-2 200 203 197 199 Q.5-2 Ans. Check Q.5-3 Ans. Q.5-2 12 Q.6-4 69 56
More informationC による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.
C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009383 このサンプルページの内容は, 新装版 1 刷発行時のものです. i 2 22 2 13 ( ) 2 (1) ANSI (2) 2 (3) Web http://www.morikita.co.jp/books/mid/009383
More information6 p.1 6 Java GUI GUI paintcomponent GUI mouseclicked, keypressed, actionperformed mouseclicked paintcomponent thread, 1 GUI 6.0.2, mutlithread C
6 p.1 6 Java GUI GUI paintcomponent GUI mouseclicked, keypressed, actionperformed mouseclicked paintcomponent 6.0.1 thread, 1 GUI 6.0.2, mutlithread CPU 1 CPU CPU +----+ +----+ +----+ Java 1 CPU 6 p.2
More information