caim03

Size: px
Start display at page:

Download "caim03"

Transcription

1

2

3

4 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 // // 2 let min_x:int = min(x1, x2) let min_y:int = min(y1, y2) let max_x:int = max(x1, x2) let max_y:int = max(y1, y2) // min_x~max_x, min_y~max_y for y in min_y... max_y { for x in min_x... max_x { // x,y continue if(x < 0 y < 0 x >= wid y >= hgt) { continue mat[y][x].r = color.r mat[y][x].g = color.g mat[y][x].b = color.b mat[y][x].a = color.a

5 DrawingViewController.swift setup fillrect (view_all) (img_all) img_all class DrawingViewController: CAIMViewController { // view_all (screenpixelrect) var view_all:caimview = CAIMView(pixelFrame: CAIM.screenPixelRect) // img_all (screenpixelsize) var img_all:caimimage = CAIMImage(size: CAIM.screenPixelSize) override func setup() { // img_all img_all.fillcolor( CAIMColor.white ) // view_all img_all view_all.image = img_all // view_all self.view.addsubview( view_all ) // ImageToolBox.fillRect(img_all, x1: 30, y1: 20, x2: 110, y2: 100, color: CAIMColor(R: 1.0, G: 0.0, B: 0.0, A: 1.0) ) ImageToolBox.fillRect(img_all, x1: 130, y1: 20, x2: 210, y2: 100, color: CAIMColor(R: 0.8, G: 0.0, B: 0.2, A: 1.0) ) ImageToolBox.fillRect(img_all, x1: 230, y1: 20, x2: 310, y2: 100, color: CAIMColor(R: 0.6, G: 0.0, B: 0.4, A: 1.0) ) ImageToolBox.fillRect(img_all, x1: 330, y1: 20, x2: 410, y2: 100, color: CAIMColor(R: 0.4, G: 0.0, B: 0.6, A: 1.0) ) ImageToolBox.fillRect(img_all, x1: 430, y1: 20, x2: 510, y2: 100, color: CAIMColor(R: 0.2, G: 0.0, B: 0.8, A: 1.0) ) ImageToolBox.fillRect(img_all, x1: 530, y1: 20, x2: 610, y2: 100, color: CAIMColor(R: 0.0, G: 0.0, B: 1.0, A: 1.0) )

6 ImageToolBox.swift fillrect min_x, min_y, max_x, max_y x1,x2 y1,y2 (min_x,min_y) (max_x,max_y) {0~wid-1, 0~hgt-1 = // 2 let min_x:int = min(x1, x2) let min_y:int = min(y1, y2) let max_x:int = max(x1, x2) let max_y:int = max(y1, y2) // for y in min_y... max_y { for x in min_x... max_x { ( )

7 fillrect x1,y1,x2,y2 (mat[y][x] ) continue // min_x~max_x, min_y~max_y for y in min_y... max_y { for x in min_x... max_x { // x,y continue if(x < 0 y < 0 x >= wid y >= hgt) { continue mat[y][x].r = color.r mat[y][x].g = color.g mat[y][x].b = color.b mat[y][x].a = color.a

8 ImageToolBox.swift fillrect opacity opacity =1.0 opacity = 0.0( ) 1.0( ) opacity mat[y][x] color mat[y][x].r = color.r * opacity + mat[y][x].r * (1.0-opacity) static func fillrect(_ img:caimimage, x1:int, y1:int, x2:int, y2:int, color:caimcolor, opacity:float=1.0) { ( ) // min_x~max_x, min_y~max_y for y in min_y... max_y { for x in min_x... max_x { // x,y continue if(x < 0 y < 0 x >= wid y >= hgt) { continue mat[y][x].r = color.r * opacity + mat[y][x].r * (1.0-opacity) mat[y][x].g = color.g * opacity + mat[y][x].g * (1.0-opacity) mat[y][x].b = color.b * opacity + mat[y][x].b * (1.0-opacity) mat[y][x].a = color.a * opacity + mat[y][x].a * (1.0-opacity)

9 DrawingViewController.swift setup fillrect opacity for img_all class DrawingViewController: CAIMViewController { ( ) override func setup() { ( 1 ) // for i in 0..< 6 { ImageToolBox.fillRect(img_all, x1: *i, y1: 120, x2: *i, y2: 200, color: CAIMColor(R: Float(i) * 0.2, G: 0.0, B: Float(i) * 0.2, A: 1.0), opacity:0.8 - Float(i) * 0.1 )

10 ImageToolBox.swift fillcircle (cx,cy) (radius), (color), (opacity) static func fillcircle(_ img:caimimage, cx:int, cy:int, radius:int, color:caimcolor, opacity:float=1.0) { // let mat = img.matrix // let wid = img.width // let hgt = img.height // // let min_x:int = cx - radius let min_y:int = cy - radius let max_x:int = cx + radius let max_y:int = cy + radius // min_x~max_x, min_y~max_y for y in min_y... max_y { for x in min_x... max_x { // x,y continue if(x < 0 y < 0 x >= wid y >= hgt) { continue // let dist:float = sqrt(float((x-cx)*(x-cx)) + Float((y-cy)*(y-cy))) // (cx, cy) radius if( dist <= Float(radius) ) { mat[y][x].r = color.r * opacity + mat[y][x].r * (1.0-opacity) mat[y][x].g = color.g * opacity + mat[y][x].g * (1.0-opacity) mat[y][x].b = color.b * opacity + mat[y][x].b * (1.0-opacity) mat[y][x].a = color.a * opacity + mat[y][x].a * (1.0-opacity)

11 DrawingViewController.swift setup fillcircle opacity class DrawingViewController: CAIMViewController { ( ) override func setup() { ( 1,2 ) // for i in 0..< 6 { ImageToolBox.fillCircle(img_all, cx: *i, cy: 260, radius: 40, color: CAIMColor(R: 1.0, G: Float(i) * 0.1, B:Float(i) * 0.1, A: 1.0)) // for i in 0..< 6 { ImageToolBox.fillCircle(img_all, cx: *i, cy: 360, radius: 40, color: CAIMColor(R: 1.0, G: 0.5, B: 0.0, A: 1.0), opacity:1.0 - Float(i) * 0.15 )

12 fillcircle if (x,y) (cx,cy) dist dist radius = // let dist:float = sqrt(float((x-cx)*(x-cx)) + Float((y-cy)*(y-cy))) // (cx, cy) radius if( dist <= Float(radius) ) { mat[y][x].r = color.r * opacity + mat[y][x].r * (1.0-opacity) ( :opacity )

13 DrawingViewController.swift setup fillcircle img_all (opacity ) class DrawingViewController: CAIMViewController { ( ) override func setup() { ( 1,2 3-2 ) // for i in 0..< 12 { ImageToolBox.fillCircle(img_all, cx: 70+45*i, cy: 460, radius: 40, color: CAIMColor(R: 1.0, G: 0.2, B: 0.2, A: 1.0), opacity:0.3 - Float(i) * 0.02 )

14

15 ImageToolBox.swift filldome fillcircle Copy&Paste static func filldome(_ img:caimimage, cx:int, cy:int, radius:int, color:caimcolor, opacity:float=1.0) { ( :fillcircle ) for y in min_y... max_y { for x in min_x... max_x { if(x < 0 y < 0 x >= wid y >= hgt) { continue let dist:float = sqrt(float((x-cx)*(x-cx)) + Float((y-cy)*(y-cy))) if( dist <= Float(radius) ) { // cos α var alpha = Float(cos(Double(dist) / Double(radius) * Double.pi / 2.0)) // α opacity alpha *= opacity mat[y][x].r = color.r * alpha + mat[y][x].r * (1.0-alpha) mat[y][x].g = color.g * alpha + mat[y][x].g * (1.0-alpha) mat[y][x].b = color.b * alpha + mat[y][x].b * (1.0-alpha) mat[y][x].a = color.a * alpha + mat[y][x].a * (1.0-alpha)

16 DrawingViewController.swift setup filldome img_all class DrawingViewController: CAIMViewController { ( ) override func setup() { ( 1,2,3 ) // ( ) for i in 0..< 6 { ImageToolBox.fillDome(img_all, cx: *i, cy: 560, radius: 40, color: CAIMColor(R: 0.0, G: 0.5, B: 0.0, A: 1.0), opacity: Float(i)*0.15 ) // ( ) for i in 0..< 12 { ImageToolBox.fillDome(img_all, cx: 70+45*i, cy: 660, radius: 40, color: CAIMColor(R: 0.0, G: 0.5, B: 0.0, A: 1.0), opacity:0.5 - Float(i)*0.025 )

17 0 π/2 cos cos(0) = 1.0, cos(π/2) = 0.0 d r cos π/2 d = (x-cx)(x-cx) + (y-cy)(y-cy) α = cos(d / r * π/2) Swift var alpha = Float(cos(Double(dist) / Double(radius) * Double.pi / 2.0))

18 ImageToolBox.swift drawline drawline Wiki Bresenham

19

20 for x in min_x... max_x { if(x < 0 x >= wid) { break mat[0][x].r = color.r mat[0][x].g = color.g mat[0][x].b = color.b mat[0][x].a = color.a

21 for x in min_x... max_x { if(x < 0 x >= wid) { continue mat[0][x].r = color.r mat[0][x].g = color.g mat[0][x].b = color.b mat[0][x].a = color.a

22 static func fillcircle(_ img:caimimage, cx:int, cy:int, radius:int, color:caimcolor, opacity:float=1.0) { ( ) ImageToolBox.fillCircle(img_all, cx: 70, cy: 460, radius: 40, color: CAIMColor(R: 1.0, G: 0.2, B: 0.2, A: 1.0)) // opacity opacity=1.0 ImageToolBox.fillCircle(img_all, cx: 70, cy: 460, radius: 40, color: CAIMColor(R: 1.0, G: 0.2, B: 0.2, A: 1.0), opacity:0.3) // opacity=0.3

23 var x = Int(3) // x Int var x:int = Int(3) // x Int

caim03

caim03 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 information

caim04

caim04 CAIM03ImageToolBox.swiftCAIM04_1ImageToolBox.swift Command+A() Command+C() CAIM04_1ImageToolBox.swift Command+V( ImageToolBox.fillCircle import Foundation // class ImageToolBox { ) // () static func fillcircle(_

More information

caimmetal03.key

caimmetal03.key import UIKit import simd // ID let ID_VERTEX:Int = 0 let ID_PROJECTION:Int = 1 // 1 struct Vertex { var pos:float2 = Float2() var uv:float2 = Float2() var rgba:float4 = Float4() // struct Particle { var

More information

P-12 P-13 3 4 28 16 00 17 30 P-14 P-15 P-16 4 14 29 17 00 18 30 P-17 P-18 P-19 P-20 P-21 P-22

P-12 P-13 3 4 28 16 00 17 30 P-14 P-15 P-16 4 14 29 17 00 18 30 P-17 P-18 P-19 P-20 P-21 P-22 1 14 28 16 00 17 30 P-1 P-2 P-3 P-4 P-5 2 24 29 17 00 18 30 P-6 P-7 P-8 P-9 P-10 P-11 P-12 P-13 3 4 28 16 00 17 30 P-14 P-15 P-16 4 14 29 17 00 18 30 P-17 P-18 P-19 P-20 P-21 P-22 5 24 28 16 00 17 30 P-23

More information

1. (8) (1) (x + y) + (x + y) = 0 () (x + y ) 5xy = 0 (3) (x y + 3y 3 ) (x 3 + xy ) = 0 (4) x tan y x y + x = 0 (5) x = y + x + y (6) = x + y 1 x y 3 (

1. (8) (1) (x + y) + (x + y) = 0 () (x + y ) 5xy = 0 (3) (x y + 3y 3 ) (x 3 + xy ) = 0 (4) x tan y x y + x = 0 (5) x = y + x + y (6) = x + y 1 x y 3 ( 1 1.1 (1) (1 + x) + (1 + y) = 0 () x + y = 0 (3) xy = x (4) x(y + 3) + y(y + 3) = 0 (5) (a + y ) = x ax a (6) x y 1 + y x 1 = 0 (7) cos x + sin x cos y = 0 (8) = tan y tan x (9) = (y 1) tan x (10) (1 +

More information

untitled

untitled 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 information

untitled

untitled 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 information

caimmetal03.key

caimmetal03.key import UIKit // ID let ID_VERTEX:Int = 0 let ID_PROJECTION:Int = 1 // 1 struct VertexInfo : Initializable { var pos:vec4 = Vec4() var uv:vec2 = Vec2() var rgba:caimcolor = CAIMColor() // struct Particle

More information

yy yy ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ;;; ; ; ; ;; ;; ;; ;;; ;;; ;;; ;; ;; ;; ;; ;; ; ; ; ; ; ; ;

More information

データ構造とアルゴリズム論

データ構造とアルゴリズム論 15 12 2 (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 15 12 2 6-8 void jbuttonkeisan actionperformed(actionevent e) { int Ans,n; n=integer.parseint(jtextfieldn.gettext())

More information

fx-370ES_912ES_UsersGuide_J02

fx-370ES_912ES_UsersGuide_J02 Eng Eng 3 A Eng 1 1,234 Eng a 1234= W W 2 123 Eng a 123= 1W( ) S-D S-D π 72 A S-D π π nπ n d π c a b π c π ' f ' A S-D 1 A '5c6= f f f 73 2 π A 15(π)*'2c5= f 3 ' A!2e*!3= f 74 (CMPLX) 15 CMPLX N2 A u u

More information

) Binary Cubic Forms / 25

) Binary Cubic Forms / 25 2016 5 2 ) Binary Cubic Forms 2016 5 2 1 / 25 1 2 2 2 3 2 3 ) Binary Cubic Forms 2016 5 2 2 / 25 1.1 ( ) 4 2 12 = 5+7, 16 = 5+11, 36 = 7+29, 1.2 ( ) p p+2 3 5 5 7 11 13 17 19, 29 31 41 43 ) Binary Cubic

More information

sekibun.dvi

sekibun.dvi a d = a + a+ (a ), e d = e, sin d = cos, (af() + bg())d = a d = log, cosd = sin, f()d + b g()d d 3 d d d d d d d ( + 3 + )d ( + )d ( 3 )d (e )d ( sin 3 cos)d g ()f (g())d = f(g()) e d e d ( )e d cos d

More information

1 1 2 Unix 1 3 4 4 SVG 6 4.1 SVG................................... 6 4.2 SVG......................... 6 4.3 SVG.............................. 7 4.4..

1 1 2 Unix 1 3 4 4 SVG 6 4.1 SVG................................... 6 4.2 SVG......................... 6 4.3 SVG.............................. 7 4.4.. WWW 17 2 10 1 1 2 Unix 1 3 4 4 SVG 6 4.1 SVG................................... 6 4.2 SVG......................... 6 4.3 SVG.............................. 7 4.4................................. 8 4.5...........................

More information

3/4/8:9 { } { } β β β α β α β β

3/4/8:9 { } { } β β β α β α β β α β : α β β α β α, [ ] [ ] V, [ ] α α β [ ] β 3/4/8:9 3/4/8:9 { } { } β β β α β α β β [] β [] β β β β α ( ( ( ( ( ( [ ] [ ] [ β ] [ α β β ] [ α ( β β ] [ α] [ ( β β ] [] α [ β β ] ( / α α [ β β ] [ ] 3

More information

x = a 1 f (a r, a + r) f(a) r a f f(a) 2 2. (a, b) 2 f (a, b) r f(a, b) r (a, b) f f(a, b)

x = a 1 f (a r, a + r) f(a) r a f f(a) 2 2. (a, b) 2 f (a, b) r f(a, b) r (a, b) f f(a, b) 2011 I 2 II III 17, 18, 19 7 7 1 2 2 2 1 2 1 1 1.1.............................. 2 1.2 : 1.................... 4 1.2.1 2............................... 5 1.3 : 2.................... 5 1.3.1 2.....................................

More information

untitled

untitled 1 2 3 WRITE (*,*) ------------------------------------------- WRITE (*,*) depth(x,y) = + + WRITE (*,*) ------------------------------------------- WRITE (*,*) ( ) d1 WRITE (*,*) d1 = u * x ^r(x) WRITE

More information

春期講座 ~ 極限 1 1, 1 2, 1 3, 1 4,, 1 n, n n {a n } n a n α {a n } α {a n } α lim n an = α n a n α α {a n } {a n } {a n } 1. a n = 2 n {a n } 2, 4, 8, 16,

春期講座 ~ 極限 1 1, 1 2, 1 3, 1 4,, 1 n, n n {a n } n a n α {a n } α {a n } α lim n an = α n a n α α {a n } {a n } {a n } 1. a n = 2 n {a n } 2, 4, 8, 16, 春期講座 ~ 極限 1 1, 1 2, 1 3, 1 4,, 1 n, n n {a n } n a n α {a n } α {a n } α lim an = α n a n α α {a n } {a n } {a n } 1. a n = 2 n {a n } 2, 4, 8, 16, 32, n a n {a n } {a n } 2. a n = 10n + 1 {a n } lim an

More information

dx dt = f x,t ( ) t

dx dt = f x,t ( ) t MATLAB 1. 2. Runge-Kutta 3. 1. 2. 3. dx dt = f x,t ( ) t dx( t) dt = lim Δt x( t + Δt) x( t) Δt t = nδt n = 0,1,2,3,4,5, x = x( nδt) n Δt dx ( ) dt = f x,t x n +1 x n Δt = f ( x,nδt) n 1 x n = x 0 n =

More information

Part y mx + n mt + n m 1 mt n + n t m 2 t + mn 0 t m 0 n 18 y n n a 7 3 ; x α α 1 7α +t t 3 4α + 3t t x α x α y mx + n

Part y mx + n mt + n m 1 mt n + n t m 2 t + mn 0 t m 0 n 18 y n n a 7 3 ; x α α 1 7α +t t 3 4α + 3t t x α x α y mx + n Part2 47 Example 161 93 1 T a a 2 M 1 a 1 T a 2 a Point 1 T L L L T T L L T L L L T T L L T detm a 1 aa 2 a 1 2 + 1 > 0 11 T T x x M λ 12 y y x y λ 2 a + 1λ + a 2 2a + 2 0 13 D D a + 1 2 4a 2 2a + 2 a

More information

8 if switch for while do while 2

8 if switch for while do while 2 (Basic Theory of Information Processing) ( ) if for while break continue 1 8 if switch for while do while 2 8.1 if (p.52) 8.1.1 if 1 if ( ) 2; 3 1 true 2 3 false 2 3 3 8.1.2 if-else (p.54) if ( ) 1; else

More information

ax 2 + bx + c = n 8 (n ) a n x n + a n 1 x n a 1 x + a 0 = 0 ( a n, a n 1,, a 1, a 0 a n 0) n n ( ) ( ) ax 3 + bx 2 + cx + d = 0 4

ax 2 + bx + c = n 8 (n ) a n x n + a n 1 x n a 1 x + a 0 = 0 ( a n, a n 1,, a 1, a 0 a n 0) n n ( ) ( ) ax 3 + bx 2 + cx + d = 0 4 20 20.0 ( ) 8 y = ax 2 + bx + c 443 ax 2 + bx + c = 0 20.1 20.1.1 n 8 (n ) a n x n + a n 1 x n 1 + + a 1 x + a 0 = 0 ( a n, a n 1,, a 1, a 0 a n 0) n n ( ) ( ) ax 3 + bx 2 + cx + d = 0 444 ( a, b, c, d

More information

Swift1.key

Swift1.key Swift Swift 対象読者としては すでにC 言語および Objective-C( あるいは少なくともJava など ) によるプログラミングの経験がある人を想定しています すでに出版されている入門書や雑誌記事ではSwiftの全体像が把握できないと感じている人には特にお勧めです ジェネリクスの機能や標準ライブラリに関する解説なども含んでおり 現時点では最も 濃い Swift 本になっていると思います

More information

r6.dvi

r6.dvi I 2005 6 2005.11.18 1 1.1 2 Hello, World public class r5ex2 extends JApplet { Font fn = new Font("Helvetica", Font.BOLD, 24); g2.setfont(fn); for(int i = 0; i < 10; ++i) { g2.setpaint(new Color(100+i*5,

More information

Chap9.dvi

Chap9.dvi .,. f(),, f(),,.,. () lim 2 +3 2 9 (2) lim 3 3 2 9 (4) lim ( ) 2 3 +3 (5) lim 2 9 (6) lim + (7) lim (8) lim (9) lim (0) lim 2 3 + 3 9 2 2 +3 () lim sin 2 sin 2 (2) lim +3 () lim 2 2 9 = 5 5 = 3 (2) lim

More information

untitled

untitled yoshi@image.med.osaka-u.ac.jp http://www.image.med.osaka-u.ac.jp/member/yoshi/ II Excel, Mathematica Mathematica Osaka Electro-Communication University (2007 Apr) 09849-31503-64015-30704-18799-390 http://www.image.med.osaka-u.ac.jp/member/yoshi/

More information

(1) 3 A B E e AE = e AB OE = OA + e AB = (1 35 e ) e OE z 1 1 e E xy e = 0 e = 5 OE = ( 2 0 0) E ( 2 0 0) (2) 3 E P Q k EQ = k EP E y 0

(1) 3 A B E e AE = e AB OE = OA + e AB = (1 35 e ) e OE z 1 1 e E xy e = 0 e = 5 OE = ( 2 0 0) E ( 2 0 0) (2) 3 E P Q k EQ = k EP E y 0 (1) 3 A B E e AE = e AB OE = OA + e AB = (1 35 e 0 1 15 ) e OE z 1 1 e E xy 5 1 1 5 e = 0 e = 5 OE = ( 2 0 0) E ( 2 0 0) (2) 3 E P Q k EQ = k EP E y 0 Q y P y k 2 M N M( 1 0 0) N(1 0 0) 4 P Q M N C EP

More information

plotwsx PLOT-WSX X11 X spp[2]./a.out PLOT-WSX PLOT IPENS -13 IPENS 0 IPENS 0 2 s p PLOT MRI 3.2 PLOT-WSX PLOT IPE- NS -13 IPENS 0 1 Continue PLO

plotwsx PLOT-WSX X11 X spp[2]./a.out PLOT-WSX PLOT IPENS -13 IPENS 0 IPENS 0 2 s p PLOT MRI 3.2 PLOT-WSX PLOT IPE- NS -13 IPENS 0 1 Continue PLO PLOT-WSX 3 1 EWS FORTRAN PLOT-WSX FORTRAN spp 2 2.1 1 1 1 1 Y (Xmax,Ymax) (0,Ymax) 2.2 PLOT-WSX NEWPEN 1 1. NEWPEN 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2.3 PLOT-WSX PLOTS 4.1.1 PLOT-WSX outle.ps 3 X (0,0)

More information

n Y 1 (x),..., Y n (x) 1 W (Y 1 (x),..., Y n (x)) 0 W (Y 1 (x),..., Y n (x)) = Y 1 (x)... Y n (x) Y 1(x)... Y n(x) (x)... Y n (n 1) (x) Y (n 1)

n Y 1 (x),..., Y n (x) 1 W (Y 1 (x),..., Y n (x)) 0 W (Y 1 (x),..., Y n (x)) = Y 1 (x)... Y n (x) Y 1(x)... Y n(x) (x)... Y n (n 1) (x) Y (n 1) D d dx 1 1.1 n d n y a 0 dx n + a d n 1 y 1 dx n 1 +... + a dy n 1 dx + a ny = f(x)...(1) dk y dx k = y (k) a 0 y (n) + a 1 y (n 1) +... + a n 1 y + a n y = f(x)...(2) (2) (2) f(x) 0 a 0 y (n) + a 1 y

More information

r3.dvi

r3.dvi 00 3 2000.6.10 0 Java ( 7 1 7 1 GSSM 1? 1 1.1 4 4a 4b / / 0 255 HTML X 0 255 16 (0,32,255 #0020FF Java xclock -bg #0020FF xclock ^C (Control C xclock 4c 1 import java.applet.applet; import java.awt.*;

More information

Appendix 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 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 information

CG38.PDF

CG38.PDF ............3...3...6....6....8.....8.....4...9 3....9 3.... 3.3...4 3.4...36...39 4....39 4.....39 4.....4 4....49 4.....5 4.....57...64 5....64 5....66 5.3...68 5.4...7 5.5...77...8 6....8 6.....8 6.....83

More information

6 29 ( )1 6 15 1 mousepressed mouseclicked mousemoved mousedragged mousereleased mousewheel keypressed keyreleased keytyped Shift OK Shift mousewheel void mousewheel(mouseevent event) { void keytyped()

More information

#A A A F, F d F P + F P = d P F, F y P F F x A.1 ( α, 0), (α, 0) α > 0) (x, y) (x + α) 2 + y 2, (x α) 2 + y 2 d (x + α)2 + y 2 + (x α) 2 + y 2 =

#A A A F, F d F P + F P = d P F, F y P F F x A.1 ( α, 0), (α, 0) α > 0) (x, y) (x + α) 2 + y 2, (x α) 2 + y 2 d (x + α)2 + y 2 + (x α) 2 + y 2 = #A A A. F, F d F P + F P = d P F, F P F F A. α, 0, α, 0 α > 0, + α +, α + d + α + + α + = d d F, F 0 < α < d + α + = d α + + α + = d d α + + α + d α + = d 4 4d α + = d 4 8d + 6 http://mth.cs.kitmi-it.c.jp/

More information

II (10 4 ) 1. p (x, y) (a, b) ε(x, y; a, b) 0 f (x, y) f (a, b) A, B (6.5) y = b f (x, b) f (a, b) x a = A + ε(x, b; a, b) x a 2 x a 0 A = f x (

II (10 4 ) 1. p (x, y) (a, b) ε(x, y; a, b) 0 f (x, y) f (a, b) A, B (6.5) y = b f (x, b) f (a, b) x a = A + ε(x, b; a, b) x a 2 x a 0 A = f x ( II (1 4 ) 1. p.13 1 (x, y) (a, b) ε(x, y; a, b) f (x, y) f (a, b) A, B (6.5) y = b f (x, b) f (a, b) x a = A + ε(x, b; a, b) x a x a A = f x (a, b) y x 3 3y 3 (x, y) (, ) f (x, y) = x + y (x, y) = (, )

More information

mugensho.dvi

mugensho.dvi 1 1 f (t) lim t a f (t) = 0 f (t) t a 1.1 (1) lim(t 1) 2 = 0 t 1 (t 1) 2 t 1 (2) lim(t 1) 3 = 0 t 1 (t 1) 3 t 1 2 f (t), g(t) t a lim t a f (t) g(t) g(t) f (t) = o(g(t)) (t a) = 0 f (t) (t 1) 3 1.2 lim

More information

課題

課題 float xball;// 円の中心の X 座標 float yball; // 円の中心の Y 座標 float rball; // 円の半径 color cball; // 円の色 // 円を移動させる void updateball(){ yball -= 1; if(yball+rball< 0){ yball = height+rball; // 円を描く void drawball(){

More information

D 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

D 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

2012 IA 8 I p.3, 2 p.19, 3 p.19, 4 p.22, 5 p.27, 6 p.27, 7 p

2012 IA 8 I p.3, 2 p.19, 3 p.19, 4 p.22, 5 p.27, 6 p.27, 7 p 2012 IA 8 I 1 10 10 29 1. [0, 1] n x = 1 (n = 1, 2, 3,...) 2 f(x) = n 0 [0, 1] 2. 1 x = 1 (n = 1, 2, 3,...) 2 f(x) = n 0 [0, 1] 1 0 f(x)dx 3. < b < c [, c] b [, c] 4. [, b] f(x) 1 f(x) 1 f(x) [, b] 5.

More information

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225 Java Java Java Java Java 4 p35 4-2 * *** ***** *** * Unix p36 4-3 a,b,c,d 100,200,250,500 a*b = 20000 a*b+c = 20250 a*b+c*d = 145000 (a+b)*(c+d) = 225000 a+b*c+d = 50600 b/a+d/c = 4 p38 4-4 (1) mul = 1

More information

知能科学:ニューラルネットワーク

知能科学:ニューラルネットワーク 2 3 4 (Neural Network) (Deep Learning) (Deep Learning) ( x x = ax + b x x x ? x x x w σ b = σ(wx + b) x w b w b .2.8.6 σ(x) = + e x.4.2 -.2 - -5 5 x w x2 w2 σ x3 w3 b = σ(w x + w 2 x 2 + w 3 x 3 + b) x,

More information

知能科学:ニューラルネットワーク

知能科学:ニューラルネットワーク 2 3 4 (Neural Network) (Deep Learning) (Deep Learning) ( x x = ax + b x x x ? x x x w σ b = σ(wx + b) x w b w b .2.8.6 σ(x) = + e x.4.2 -.2 - -5 5 x w x2 w2 σ x3 w3 b = σ(w x + w 2 x 2 + w 3 x 3 + b) x,

More information

1 3 1.1.......................... 3 1............................... 3 1.3....................... 5 1.4.......................... 6 1.5........................ 7 8.1......................... 8..............................

More information

16 5 14 12 1 15 3 6 16 5 2 3 16 3 1 11 1.1 11 1.2 12 2 21 2.1 21 2.2 26 2.3 211 2.4 226 3 31 3.1 31 3.1.1 33 3.1.2 39 3.2 311 3.3 313 3.4 315 4 41 4.1 41 4.2 42 4.3 43 4.3.1 44 4.3.2 434 4.3.3 440 4.3.4

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 information

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,

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

( )$("canvas").drawarc({strokestyle:"red", x:100, y:100, radius:20, start:0, end:360); drawline(x1:, y1:,... xn:, yn:) drawline n 2 n 3 x1: y1: xn: yn

( )$(canvas).drawarc({strokestyle:red, x:100, y:100, radius:20, start:0, end:360); drawline(x1:, y1:,... xn:, yn:) drawline n 2 n 3 x1: y1: xn: yn 0.1. jquaery jcanvas jquery John Resig OSS JavaScript Web JavaScript jquery jquery 1 0.2. jcanvas jcanvas 0.3. jcanvas HTML5 Canvas Canvas jcanvas jcanvas jquery Canvas API jcanvas Grouping Layer jcanvas

More information

.3. (x, x = (, u = = 4 (, x x = 4 x, x 0 x = 0 x = 4 x.4. ( z + z = 8 z, z 0 (z, z = (0, 8, (,, (8, 0 3 (0, 8, (,, (8, 0 z = z 4 z (g f(x = g(

.3. (x, x = (, u = = 4 (, x x = 4 x, x 0 x = 0 x = 4 x.4. ( z + z = 8 z, z 0 (z, z = (0, 8, (,, (8, 0 3 (0, 8, (,, (8, 0 z = z 4 z (g f(x = g( 06 5.. ( y = x x y 5 y 5 = (x y = x + ( y = x + y = x y.. ( Y = C + I = 50 + 0.5Y + 50 r r = 00 0.5Y ( L = M Y r = 00 r = 0.5Y 50 (3 00 0.5Y = 0.5Y 50 Y = 50, r = 5 .3. (x, x = (, u = = 4 (, x x = 4 x,

More information

II

II II 16 16.0 2 1 15 x α 16 x n 1 17 (x α) 2 16.1 16.1.1 2 x P (x) P (x) = 3x 3 4x + 4 369 Q(x) = x 4 ax + b ( ) 1 P (x) x Q(x) x P (x) x P (x) x = a P (a) P (x) = x 3 7x + 4 P (2) = 2 3 7 2 + 4 = 8 14 +

More information

f (x) f (x) f (x) f (x) f (x) 2 f (x) f (x) f (x) f (x) 2 n f (x) n f (n) (x) dn f f (x) dx n dn dx n D n f (x) n C n C f (x) x = a 1 f (x) x = a x >

f (x) f (x) f (x) f (x) f (x) 2 f (x) f (x) f (x) f (x) 2 n f (x) n f (n) (x) dn f f (x) dx n dn dx n D n f (x) n C n C f (x) x = a 1 f (x) x = a x > 5.1 1. x = a f (x) a x h f (a + h) f (a) h (5.1) h 0 f (x) x = a f +(a) f (a + h) f (a) = lim h +0 h (5.2) x h h 0 f (a) f (a + h) f (a) f (a h) f (a) = lim = lim h 0 h h 0 h (5.3) f (x) x = a f (a) =

More information

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

C による数値計算法入門 ( 第 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 information

untitled

untitled .. 3. 3 3. 3 4 3. 5 6 3 7 3.3 9 4. 9 0 6 3 7 0705 φ c d φ d., φ cd, φd. ) O x s + b l cos s s c l / q taφ / q taφ / c l / X + X E + C l w q B s E q q ul q q ul w w q q E E + E E + ul X X + (a) (b) (c)

More information

コンテンツメディアプログラミング実習2

コンテンツメディアプログラミング実習2 CMP 実習 2 JavaScript + 地図を使ってみよう 中村, 宮下, 斉藤, 菊池 1 必要な知識 JavaScript の基本 HTMLのどの部品なのかを指定する方法 その部品にイベントを埋め込む方法 それを JavaScript で記述する方法 2 要素をどうやって取得する? DOM とは Document Object Model HTML や XML の各要素についてアプリケーションから利用するための

More information

Java学習教材

Java学習教材 Java 2016/4/17 Java 1 Java1 : 280 : (2010/1/29) ISBN-10: 4798120987 ISBN-13: 978-4798120980 2010/1/29 1 Java 1 Java Java Java class FirstExample { public static void main(string[] args) { System.out.println("

More information

(4) P θ P 3 P O O = θ OP = a n P n OP n = a n {a n } a = θ, a n = a n (n ) {a n } θ a n = ( ) n θ P n O = a a + a 3 + ( ) n a n a a + a 3 + ( ) n a n

(4) P θ P 3 P O O = θ OP = a n P n OP n = a n {a n } a = θ, a n = a n (n ) {a n } θ a n = ( ) n θ P n O = a a + a 3 + ( ) n a n a a + a 3 + ( ) n a n 3 () 3,,C = a, C = a, C = b, C = θ(0 < θ < π) cos θ = a + (a) b (a) = 5a b 4a b = 5a 4a cos θ b = a 5 4 cos θ a ( b > 0) C C l = a + a + a 5 4 cos θ = a(3 + 5 4 cos θ) C a l = 3 + 5 4 cos θ < cos θ < 4

More information

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)

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) 1 16 10 5 1 2 2.1 a a a 1 1 1 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) 4 2 3 4 2 5 2.4 x y (x,y) l a x = l cot h cos a, (3) y = l cot h sin a (4) h a

More information

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

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 III No (i) (ii) (iii) (iv) (v) (vi) x 2 3xy + 2. (x,y) (1,0) x 2 + y 2 5x 2 y x 2 + y 2. xy x2 + y 2. 2x + y 3 x 2 + y 2 + 5. sin(x 2 + y 2 ). x 2 + y 2 sin(x 2 y + xy 2 ). xy (i) (ii) (iii) 2xy x 2 +

More information

201908計算

201908計算 立命館大学大学院 2018 年度実施入学試験 博士課程前期課程 情報理工学研究科情報理工学専攻 入試方式コース実施月 ページ 専門科目 備考 一般入学試験 8 月 P.1~ 2 月 P.16~ 社会人入学試験 8 月 2 月 外国人留学生入学試験 ( 日本語基準 ) 計算機科学 7 月 (2018 年 9 月入学 ) 8 月 2 月 学内進学入学試験 7 月 (2018 年 9 月入学 ) 7 月

More information

(u(x)v(x)) = u (x)v(x) + u(x)v (x) ( ) u(x) = u (x)v(x) u(x)v (x) v(x) v(x) 2 y = g(t), t = f(x) y = g(f(x)) dy dx dy dx = dy dt dt dx., y, f, g y = f (g(x))g (x). ( (f(g(x)). ). [ ] y = e ax+b (a, b )

More information

untitled

untitled 2420356585600 YY 3470336523101425240338047071 1481103367002314 8 40336700237 Y 1340091311 03587831510358783152 103001322513 0356435751 0356435759 1320022212103655644836560959 1320033 3 1 1 0336566111

More information

02

02 54 163116831 02 1 168 54 158 53 162 53 148 52 152 52 10,000 0 40,000 30,000 20,000 50,000 70,000 60,000 1,000 500 1,500 2,000 0 2,500 3,000 4,000 3,500 4,500 168 54 158 53 162 53 148 52 152 52 03 52148

More information