Windows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2
|
|
- えつま しまむね
- 5 years ago
- Views:
Transcription
1 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 Microsoft Visual Studio 2010 Express 1
2 Windows (L): D:\jyugyou\ D:\jyugyou\ D:\jyugyou\ (N): en2 OK 2
3 Microsoft Visual Studio 2010 Window Microsoft Visual Studio 2013 Window Windows Window Microsoft Visual Studio 2010 Microsoft Visual Studio 2013 VC Windows Visual C++ CTR CLR OK 3
4 WinFormApp Visual C++ UI Windows MyForm.h Form1.h 4
5 MyForm.h Windows main() MyForm.cpp MyForm.cpp WinFormApp.cpp WinFormApp. WinFormApp 5
6 WinFormApp V Windows(/SUBSYSTEM:WINDOW) 6
7 main OK 7
8 WinFormApp.cpp WinFormApp. #include "MyForm.h" using namespace WinFormApp; [STAThreadAttribute] int main() { 8
9 Application::Run(gcnew MyForm()); return 0; VC VC Form1 9
10 10
11 PictureBox Form1 Form1 Picture Box 11
12 12
13 paint 13
14 Form1.h Form1.h 14
15 private: System::Void picturebox1_paint(system::object^ System::Windows::Forms::PaintEventArgs^ e) { sender, { picturebox1 paint private: System::Void picturebox1_paint(system::object^ System::Windows::Forms::PaintEventArgs^ e) { Graphics^ g = e->graphics; Pen^ pen = gcnew Pen(Color::Blue); double pi = Math::PI; g->drawellipse(pen, 50, 50, 260, 260); for (double t=0; t<2*pi; t += pi/80) { sender, 15
16 g->drawline(pen, (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(2*t)), (int)( *sin(2*t))); Form1.h #include <math.h> Debug 16
17 Form1.h[ ] Form PictureBox Debug. private: System::Void picturebox1_paint(system::object^ sender, System::Windows::Forms::PaintEventArgs^ e) { Graphics^ g = e->graphics; Pen^ pen = gcnew Pen(Color::Blue); double pi = Math::PI; g->drawellipse(pen, 50, 50, 260, 260); for (double t=0; t<2*pi; t += pi/80) { g->drawline(pen, (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(2*t)), (int)( *sin(2*t))); picturebox1_paint PictureBox1 Graphics^ g = e->graphics; g PictureBox Pen^ pen = gcnew Pen(Color::Blue); Blue Pen^ pen = gcnew Pen(Color::Red, 2); Red Black, Yellow, Green, White,... 17
18 double pi = Math::PI; pi Math::PI Math::PI VC++ Math::PI pi g->drawellipse(pen, 50, 50, 260, 260); g->drawellipse() g g->kannsuu() g->drawellipse() pen Blue 50, , 50, 260, 260 (50, 50) g->drawellipse(pen, 50, 50, 260, 260); (180, 180) 130 for (double t=0; t<2*pi; t += pi/80) { g->drawline(pen, (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(2*t)), (int)( *sin(2*t))); (180, 180) 130 t 2t t 0 2*pi pi/80 for (double t=0; t<2*pi; t += pi/80) { for (double t=0; t 0 t<2*pi; t<2*pi (true) t += pi/80) t += pi/80 t pi/80 t += pi/80 t = t + pi/80 t<2*pi (true) t += pi/80) (true) t<2*pi (false) for for for ( ; ; ) { 18
19 g->drawline(pen, (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(2*t)), (int)( *sin(2*t))); g->drawline( pen (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(2*t)), (int)( *sin(2*t)) (int)(...) (...) *cos(t) double g->drawline() int float Error *cos(t) int (int)( *cos(t)) (int)( *cos(t)), (int)( *sin(t)) 180 (180,180) (int)( *sin(t)) - PictureBox1 cos() sin() cos() sin() VC++ Form1.h #include <math.h> cos() sin() math.h include math.h g->drawline(pen, (int)( *math::cos(t)), (int)( *math::sin(t)), (int)( *math::cos(2*t)), (int)( *math::sin(2*t))); namespace Math VC++ Math::PI Math::Sin() Math::Cos() #include <math.h> include 19
20 g->drawline(pen, (int)( *math::cos(t)), (int)( *math::sin(t)), (int)( *math::cos(3*t)), (int)( *math::sin(3*t))); 20
21 g->drawline(pen, (int)( *math::cos(2*t)), (int)( *math::sin(2*t)), (int)( *math::cos(5*t)), (int)( *math::sin(5*t))); 21
22 Python Pygame import pygame from math import * pygame.init() black = (0,0,0) white = (255, 255, 255) green = (0, 255, 0) red= (255, 0, 0) size = (700, 500) screen = pygame.display.set_mode(size) pi = atan(1.0)*4 done = False clock = pygame.time.clock() t = pi while done == False: for event in pygame.event.get(): if event.type == pygame.quit: done = True screen.fill(white) x = 0 22
23 while x <= 2*pi-2*t: pygame.draw.line(screen, green, [ *cos(x), *sin(x)],\ [ *cos(2*x), *sin(2*x)], 1) x += pi/40 t -= pi/40 pygame.display.flip() if t < 0: t = pi clock.tick(1) pygame.quit() Python Python youtube 15 on-line Simpson College Dr. Paul Vincent Craven Linux Pygame Python youtube Timer Visual C++ C++ Builder Visual C++ C++ Builder Raspberry Pi Python Python y=exp(x) 23
24 Windows (N): exp 24
25 OK Size 700,450 Enter 25
26 PictureBox 26
27 PictureBox size 500,400 Button 27
28 Text Next PictureBox1 Form1 Form1 Size 700,500 28
29 private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); Pen^ pen = gcnew Pen(Color::Blue, 2); g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); 29
30 int ox = (int)( * -5); int oy = (int)( * Math::Exp(-5)); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); Next y = exp(x) -5 <= x <= 5 private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); 30
31 Pen^ pen = gcnew Pen(Color::Blue, 2); g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); int ox = (int)( * -5); int oy = (int)( * Math::Exp(-5)); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); button1_click Button1 Graphics^ g = picturebox1->creategraphics(); PictureBox1 PictureBox1 g Pen^ pen = gcnew Pen(Color::Blue, 2); Blue g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); g->drawline() x y for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); g->drawline() 50 for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); x x=0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500 g->drawline(pen, x, 185, x, 215); 31
32 int ox = (int)( * -5); int oy = (int)( * Math::Exp(-5)); ox oy (250, 200) ox * -5 + oy * Math::Exp(-5) - + Math::Exp() double exp(double x) Form1.h #include <math.h> for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); y=exp(x) (ox, oy) g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); (ox, oy) int ox = (int)( * -5); int oy = (int)( * Math::Exp(-5)); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+0.1)), (int)(200-50*math::exp(x+0.1))); (int)(...) int float ox oy int (int)(...) VC
33 double dx = 0.1; for (double x=-5; x<=5; x += dx) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+dx)), (int)(200-50*math::exp(x+dx))); double dx = 0.1; 0.1 Next exp(x) double fact(double n) n+1 double expn(int n, double x) double fact(double n) { double r = 1; for (int i=1; i<= n; i++) r *= i; return r; double expn(int n, double x) { double s = 0; for (int i=0; i<=n; i++) s += Math::Pow(x, i)/fact(i); return s; private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { 33
34 Next n 0 1, 2, 3, 4, double expn(int n, double x) private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); Pen^ pen = gcnew Pen(Color::Blue, 2); g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); int ox = (int)( * -5); int oy = (int)( * Math::Exp(-5)); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); static int N = 0; Pen^ pen2 = gcnew Pen(Color::Red, 2); ox = * -5; oy = * expn(n,-5); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen2, ox, oy, *x, *expN(N, x)); ox = *x; 34
35 oy = *expN(N, x); N++; private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); Pen^ pen = gcnew Pen(Color::Blue, 2); g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); int ox = (int)( * -5); int oy = (int)( * Math::Exp(-5)); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen, ox, oy, *x, *Math::Exp(x)); ox = *x; oy = *Math::Exp(x); static int N = 0; Pen^ pen2 = gcnew Pen(Color::Red, 2); ox = * -5; oy = * expn(n,-5); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen2, ox, oy, *x, *expN(N, x)); ox = *x; oy = *expN(N, x); N++; 35
36 Next 36
37 Next Next 37
38 Next static int N = 0; Pen^ pen2 = gcnew Pen(Color::Red, 2); ox = * -5; oy = * expn(n,-5); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen2, ox, oy, *x, *expN(N, x)); ox = *x; oy = *expN(N, x); N++; 38
39 static int N = 0; N 0 static N N++; N N = 0 N N N = 0, 1, 2, 3, 4, 5,... Pen^ pen2 = gcnew Pen(Color::Red, 2); pen2 expn() pen2 ox = * -5; oy = * expn(n,-5); for (double x=-5; x<=5; x += 0.1) { g->drawline(pen2, ox, oy, *x, *expN(N, x)); ox = *x; oy = *expN(N, x); expn(n, x) double dx = 0.1; for (double x=-5; x<=5; x += dx) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+dx)), (int)(200-50*math::exp(x+dx))); for (double x=-5; x<=5; x += dx) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+dx)), (int)(200-50*math::exp(x+dx))); double dx = 0.1; double dx = 0.1; for (double x=-5; x<=5; x += dx) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+dx)), (int)(200-50*math::exp(x+dx))); 39
40 N++; N g->drawline() private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); Pen^ pen = gcnew Pen(Color::Blue, 2); g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); double dx = 0.1; for (double x=-5; x<=5; x += dx) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+dx)), (int)(200-50*math::exp(x+dx))); static int N = 0; Pen^ pen2 = gcnew Pen(Color::Red, 2); for (double x=-5; x<=5; x += dx) { g->drawline(pen2, (int)(250+50*x), (int)(200-50*expn(n, x)), (int)(250+50*(x+dx)), (int)(200-50*expn(n, x+dx))); N++; double fact(double n) double fact(double n) { double r = 1; for (int i=1; i<= n; i++) r *= i; return r; 4 ( ) { double fact double n n 40
41 double r = 1; for (int i=1; i<= n; i++) r *= i; return r; r (r 1 ) for i 0 int i=0 n i<=n i++ i i += 1 i = i + 1 i 1 n r for r n r return n! = 1 * 2 * 3 *... * n C++ Prolog Scheme double fact(double n) { if (n == 0) return 1; else return n * fact(n-1); if Scheme if ( ) { (true) if ( ) { else { (true) if ( ) { 41
42 if ( ) { else { if (n == 0) return 1; else return n * fact(n-1); { if (n == 0) return 1; else return n * fact(n-1); n == 0 n 0 (true) (false) n+1 double expn(int n, double x) double expn(int n, double x) { double s = 0; for (int i=0; i<=n; i++) s += Math::Pow(x, i)/fact(i); return s; double expn int n, double x n x, double s = 0; for (int i=0; i<=n; i++) s += Math::Pow(x, i)/fact(i); return s; s s 0 for i 0 int i=0 n i<=n i++ i i += 1 i = i + 1 s x i i s return Prolog Scheme double expn(int n, double x) { if (n == 0) 42
43 else return 0; return Math::Pow(x, n)/fact(n) + expn(n-1, x); Next Brush^ brush = gcnew SolidBrush(Color::White); g->fillrectangle(brush, 0, 0, 500, 400); 43
44 Brush^ brush = gcnew SolidBrush(Color::White); g->fillrectangle(brush, 0, 0, 500, 400); Brush^ brush = gcnew SolidBrush(Color::White); White g->fillrectangle(brush, 0, 0, 500, 400); g->fillrectangle() 0, 0, 500, 400 (0, 0) private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); Brush^ brush = gcnew SolidBrush(Color::White); g->fillrectangle(brush, 0, 0, 500, 400); Pen^ pen = gcnew Pen(Color::Blue, 2); g->drawline(pen, 0, 200, 500, 200); g->drawline(pen, 250,0, 250, 400); for (int x=0; x<=500; x += 50) g->drawline(pen, x, 185, x, 215); for (int y=0; y<=400; y += 50) g->drawline(pen, 235, y, 265, y); double dx = 0.1; for (double x=-5; x<=5; x += dx) { g->drawline(pen, (int)(250+50*x), (int)(200-50*math::exp(x)), (int)(250+50*(x+dx)), (int)(200-50*math::exp(x+dx))); static int N = 0; Pen^ pen2 = gcnew Pen(Color::Red, 2); for (double x=-5; x<=5; x += dx) { g->drawline(pen2, (int)(250+50*x), (int)(200-50*expn(n, x)), (int)(250+50*(x+dx)), (int)(200-50*expn(n, x+dx))); N++; sin(x) cos(x) r = 3sin(3 Microsoft Visual Studio
45 Windows (N): sanyousen 45
46 OK Size 600,450 PictureBox PictureBox size 350,350 46
47 paint r = 3sin(3 x( )=3sin(3 )cos( ), y( )=3sin(3 )sin( ) private: System::Void picturebox1_paint(system::object^ System::Windows::Forms::PaintEventArgs^ e) { sender, { double X(double t) { return 3*Math::Sin(3*t)*Math::Cos(t); double Y(double t) { return 3*Math::Sin(3*t)*Math::Sin(t); 47
48 private: System::Void picturebox1_paint(system::object^ System::Windows::Forms::PaintEventArgs^ e) { sender, { Graphics^ g = e->graphics; Pen^ pen = gcnew Pen(Color::Black, 1); g->drawline(pen, 0, 175, 350, 175); g->drawline(pen, 175,0, 175, 350); for (int x=25; x<=350; x += 50) g->drawline(pen, x, 170, x, 180); for (int y=25; y<=350; y += 50) g->drawline(pen, 170, y, 180, y); double dt = Math::PI/80; Pen^ pen2 = gcnew Pen(Color::Red, 2); for (double t=0; t<2*math::pi; t += dt) { g->drawline(pen2, (int)(175+50*x(t)), (int)(175-50*y(t)), (int)(175+50*x(t+dt)), (int)(175-50*y(t+dt))); 48
49 double X(double t) { return 3*Math::Sin(3*t)*Math::Cos(t); double Y(double t) { return 3*Math::Sin(3*t)*Math::Sin(t); private: System::Void picturebox1_paint(system::object^ sender, System::Windows::Forms::PaintEventArgs^ e) { Graphics^ g = e->graphics; Pen^ pen = gcnew Pen(Color::Black, 1); g->drawline(pen, 0, 175, 350, 175); g->drawline(pen, 175,0, 175, 350); for (int x=25; x<=350; x += 50) g->drawline(pen, x, 170, x, 180); for (int y=25; y<=350; y += 50) g->drawline(pen, 170, y, 180, y); double dt = Math::PI/80; Pen^ pen2 = gcnew Pen(Color::Red, 2); for (double t=0; t<2*math::pi; t += dt) { g->drawline(pen2, (int)(175+50*x(t)), (int)(175-50*y(t)), (int)(175+50*x(t+dt)), (int)(175-50*y(t+dt))); double X(double t) { return 3*Math::Sin(3*t)*Math::Cos(t); double Y(double t) { 49
50 return 3*Math::Sin(3*t)*Math::Sin(t); x( )=3sin(3 )cos( ), y( )=3sin(3 )sin( ) t Graphics^ g = e->graphics; Pen^ pen = gcnew Pen(Color::Black, 1); g->drawline(pen, 0, 175, 350, 175); g->drawline(pen, 175,0, 175, 350); for (int x=25; x<=350; x += 50) g->drawline(pen, x, 170, x, 180); for (int y=25; y<=350; y += 50) g->drawline(pen, 170, y, 180, y); double dt = Math::PI/80; Pen^ pen2 = gcnew Pen(Color::Red, 2); for (double t=0; t<2*math::pi; t += dt) { g->drawline(pen2, (int)(175+50*x(t)), (int)(175-50*y(t)), (int)(175+50*x(t+dt)), (int)(175-50*y(t+dt))); (175, 175) 50 x(t)=3sin(3t)cos(t), y(t)=3sin(3t)sin(t) t=0 2 /80 Microsoft Visual Studio 2010 Form PictureBox Button button1 private: System::Void button1_click(system::object^ System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); sender, 50
51 Brush^ brush = gcnew SolidBrush(Color::White); g->fillrectangle(brush, 0, 0, 360, 360); Pen^ pen = gcnew Pen(Color::Blue, 1); g->drawellipse(pen, 50, 50, 260, 260); double pi = Math::PI; for (double t=0; t<2*pi; t += pi/80) { g->drawline(pen, (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(2*t)), (int)( *sin(2*t))); button2 private: System::Void button2_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); Brush^ brush = gcnew SolidBrush(Color::Yellow); g->fillrectangle(brush, 0, 0, 360, 360); Pen^ pen = gcnew Pen(Color::Red, 1); g->drawellipse(pen, 50, 50, 260, 260); double pi = Math::PI; for (double t=0; t<2*pi; t += pi/80) { g->drawline(pen, (int)( *cos(t)), (int)( *sin(t)), (int)( *cos(3*t)), (int)( *sin(3*t))); Form1.h #include <math.h> 51
52 button1 button2 y = x sin x ( 5π x 5π) Form PictureBox 52
53 picturebox1 paint private: System::Void picturebox1_paint(system::object^ sender, System::Windows::Forms::PaintEventArgs^ e) { Graphics^ g = e->graphics; Pen^ pen = gcnew Pen(Color::Blue); double pi = Math::PI; g->drawline(pen, 0, 180, 360, 180); g->drawline(pen, 180, 0, 180, 360); int ox = (int)( *5*pi/ ); int oy = (int)(180-10*(-5*pi)*sin(-5*pi)); for (double t=-5*pi; t<=5*pi; t += pi/80) { g->drawline(pen, ox, oy, (int)( *t/ ), (int)(180-10*t*sin(t))); ox = (int)( *t/ ); oy = (int)(180-10*t*sin(t)); Form1.h #include <math.h> (1/2, 0) OP Form PictureBox 53
54 picturebox1 paint private: System::Void picturebox1_paint(system::object^ sender, System::Windows::Forms::PaintEventArgs^ e) { Graphics^ g = e->graphics; Pen^ pen1 = gcnew Pen(Color::Black); g->drawline(pen1, 0, 180, 360, 180); g->drawline(pen1, 180, 0, 180, 360); double pi = Math::PI; int K = 150; for (double t = 0; t<=2*pi; t += pi/20) { double x = 0.25+cos(t)/4.0; double y = sin(t)/4.0; int x1 = (int)(k*(x-sqrt(0.5+cos(t)/2.0)/2.0)+180); int y1 = (int)(k*(-y-sqrt(0.5+cos(t)/2.0)/2.0)+180); int x2 = (int)(k*sqrt(0.5+cos(t)/2.0)); int y2 = (int)(k*sqrt(0.5+cos(t)/2.0)); g->drawellipse(pen1, x1, y1, x2, y2); Form1.h #include <math.h> 54
55 Python and Pygame import pygame from math import * pygame.init() black = (0,0,0) white = (255, 255, 255) green = (0, 255, 0) red= (255, 0, 0) pi = size = (700, 500) screen = pygame.display.set_mode(size) pi = atan(1.0)*4 done = False clock = pygame.time.clock() theta = pi K = 200 while done == False: for event in pygame.event.get(): if event.type == pygame.quit: done = True screen.fill(white) t = 0 55
56 while t <= 2*pi - 2*theta: x = cos(t)/4.0 y = sin(t)/4.0 x1 = (int)(k * ( x - sqrt(0.5+cos(t)/2.0)/2.0) + 350) y1 = (int)(k * (-y - sqrt(0.5+cos(t)/2.0)/2.0) + 250) x2 = (int)(k * sqrt(0.5+cos(t)/2.0)) y2 = (int)(k * sqrt(0.5+cos(t)/2.0)) if x2 == 0 or y2 == 0: t += pi/20 continue pygame.draw.ellipse(screen, green, [x1, y1, x2, y2],2) t += pi/20 theta -= pi/20 pygame.display.flip() if theta < 0: theta = pi clock.tick(5) pygame.quit() a O b C O C P P O x A C OC θ Q P (x,y) P θ x = (a + b) cos θ b cos a + b b θ, y = (a + b) sin θ b sin a + b θ b Form PictureBox Button Label textbox 56
57 button1 private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); double a = System::Convert::ToDouble(textBox1->Text); double b; Double::TryParse(textBox2->Text, b); double K = 170/(a+2*b); Brush^ brush = gcnew SolidBrush(Color::White); g->fillrectangle(brush, 0, 0, 360, 360); Pen^ pen2 = gcnew Pen(Color::Red, 2); g->drawellipse(pen2, 180-(int)(K*a), 180-(int)(K*a), (int)(2*k*a), (int)(2*k*a)); Pen^ pen = gcnew Pen(Color::Blue, 2); double pi = Math::PI; int ox = (int)(180+k*((a+b)*cos(0.0)-b*cos(0.0))); int oy = (int)(180-k*((a+b)*sin(0.0)-b*sin(0.0))); for (double t=0; t<=2*pi*b; t += pi/80) { int nx = (int)(180+k*((a+b)*cos(t)-b*cos((a+b)*t/b))); int ny = (int)(180-k*((a+b)*sin(t)-b*sin((a+b)*t/b))); g->drawline(pen, ox, oy, nx, ny); ox = nx; oy = ny; Form1.h #include <math.h> 57
58 button1 private: System::Void button1_click(system::object^ sender, System::EventArgs^ e) { Graphics^ g = picturebox1->creategraphics(); double a = System::Convert::ToDouble(textBox1->Text); double b; Double::TryParse(textBox2->Text, b); double K = 170/(a+2*b); Brush^ brush = gcnew SolidBrush(Color::White); g->fillrectangle(brush, 0, 0, 360, 360); Pen^ pen2 = gcnew Pen(Color::Red, 2); g->drawellipse(pen2, 180-(int)(K*a), 180-(int)(K*a), (int)(2*k*a), (int)(2*k*a)); Pen^ pen = gcnew Pen(Color::Blue, 2); double pi = Math::PI; int ox = (int)(180+k*((a+b)*cos(0.0)-b*cos(0.0))); 58
59 int oy = (int)(180-k*((a+b)*sin(0.0)-b*sin(0.0))); for (double t=0; t<=2*pi*b; t += pi/80) { int nx = (int)(180+k*((a+b)*cos(t)-b*cos((a+b)*t/b))); int ny = (int)(180-k*((a+b)*sin(t)-b*sin((a+b)*t/b))); g->drawline(pen, ox, oy, nx, ny); ox = nx; oy = ny; double a = System::Convert::ToDouble(textBox1->Text); textbox1 double a double b; Double::TryParse(textBox2->Text, b); textbox2 double b import pygame from math import * pygame.init() black = (0,0,0) white = (255, 255, 255) green = (0, 255, 0) red= (255, 0, 0) blue = (0, 0, 255) pi = size = (700, 500) screen = pygame.display.set_mode(size) pi = atan(1.0)*4 done = False clock = pygame.time.clock() theta = 0 K = 20 a = 5 b = 2 59
60 while done == False: for event in pygame.event.get(): if event.type == pygame.quit: done = True screen.fill(white) pygame.draw.ellipse(screen, green, [350-K*a, 250-K*a, 2*K*a, 2*K*a]) x = (int)(k*((a+b)*cos(theta)-b)) y = (int)(k*((a+b)*sin(theta)+b)) pygame.draw.ellipse(screen, blue,[350+x,250-y, 2*K*b, 2*K*b]) x1 = (int)(350+k*((a+b)*cos(theta)-b*cos((a+b)*theta/b))) y1 = (int)(250-k*((a+b)*sin(theta)-b*sin((a+b)*theta/b))) x2 = (int)(350+k*((a+b)*cos(theta)+b*cos((a+b)*theta/b))) y2 = (int)(250-k*((a+b)*sin(theta)+b*sin((a+b)*theta/b))) pygame.draw.line(screen, black, [x1, y1], [x2, y2], 2) x1 = (int)(350+k*((a+b)*cos(theta)-b*cos((a+b)*theta/b+pi/2))) y1 = (int)(250-k*((a+b)*sin(theta)-b*sin((a+b)*theta/b+pi/2))) x2 = (int)(350+k*((a+b)*cos(theta)+b*cos((a+b)*theta/b+pi/2))) y2 = (int)(250-k*((a+b)*sin(theta)+b*sin((a+b)*theta/b+pi/2))) pygame.draw.line(screen, black, [x1, y1], [x2, y2], 2) t = 0 ox = (int)(350+k*((a+b)*cos(t)-b*cos((a+b)*t/b))) oy = (int)(250-k*((a+b)*sin(t)-b*sin((a+b)*t/b))) while t <= theta: nx = (int)(350+k*((a+b)*cos(t)-b*cos((a+b)*t/b))) ny = (int)(250-k*((a+b)*sin(t)-b*sin((a+b)*t/b))) pygame.draw.line(screen, red, [ox, oy], [nx, ny], 2) ox = nx oy = ny t += pi/100 theta += pi/25 if theta >= 2*pi*b: theta = 0 pygame.display.flip() clock.tick(5) pygame.quit() 60
61 a O b a > b > 0) C O C P P O x A C OC θ Q P (x,y) P θ x = (a b) cos θ + b cos a b b θ, y = (a b) sin θ b sin a b θ b r = a + b cos θ a = b r = a(1 + cos θ) 61
62 x = (a + b) cos θ c cos a + b b θ, y = (a + b) sin θ c sin a + b θ b x = (a b) cos θ + c cos a b b θ, y = (a b) sin θ c sin a b θ b 62
63 Windows8 63
Python3 Next 2
Python Python Tkinter Tkinter Python Python Anaconda Python Anaconda Python https://www.continuum.io/downloads Python 3.6 version Python2 Python3 Python 2.7 Python 3.6 Python2 1 Python3 Next 2 I Agree
More informationA, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3,
40 2 1. 2 2. 52 3. A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2 4. 13 5. 6. 7. 8. 9. 13 10. 11. 12. 1 VC++ VC++ Visual C++ Professional 2010 Visual C++ 2010 express Windows whist 2 OK] 3 Form1 size 800, 500
More information0, OK 2
1 1936 1 TURING.EXE TURING.EXE set table set table 1 0, 001101011 OK 2 0 1 0 1 1 0 0 1 0 R 0 1 1 0 R Start 0 1 0 0 1 0 R 0 1 0 0 R 3 SAMPLE DATA : XXXXX XXXXXX X 0 X X 0 R 0 B X 1 R 0 X X 0 R 0 B X 0 R
More informationN88 BASIC 0.3 C: My Documents 0.6: 0.3: (R) (G) : enterreturn : (F) BA- SIC.bas 0.8: (V) 0.9: 0.5:
BASIC 20 4 10 0 N88 Basic 1 0.0 N88 Basic..................................... 1 0.1............................................... 3 1 4 2 5 3 6 4 7 5 10 6 13 7 14 0 N88 Basic 0.0 N88 Basic 0.1: N88Basic
More informationPowerPoint プレゼンテーション
1 02 グラフゖックで簡単な図形を描く図形描画プログラム 1 今回作成するゕプリケーションの概要 ボタンをクリックすると図形を描くプログラム 行われる動作 [1] ボタンをクリック [2] そのボタンに対する図形を描く これを使用者とコンピュータの関係で描くと [ 使用者 コンピュータ ] ボタンをクリック [ 使用者 コンピュータ ] 図形を描画して見せる 使用者がコンピュータにすること ボタンをクリック
More informationPython Speed Learning
Python Speed Learning 1 / 89 1 2 3 4 (import) 5 6 7 (for) (if) 8 9 10 ( ) 11 12 for 13 2 / 89 Contents 1 2 3 4 (import) 5 6 7 (for) (if) 8 9 10 ( ) 11 12 for 13 3 / 89 (def) (for) (if) etc. 1 4 / 89 Jupyter
More information£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² –
(2018) 11 2018 12 13 2 g v dv x dt = bv x, dv y dt = g bv y (1) b v 0 θ x(t) = v 0 cos θ ( 1 e bt) (2) b y(t) = 1 ( v 0 sin θ + g ) ( 1 e bt) g b b b t (3) 11 ( ) p14 2 1 y 4 t m y > 0 y < 0 t m1 h = 0001
More informationExcel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 初版 1 刷発行時のものです.
Excel ではじめる数値解析 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009631 このサンプルページの内容は, 初版 1 刷発行時のものです. Excel URL http://www.morikita.co.jp/books/mid/009631 i Microsoft Windows
More informationTOEIC
TOEIC 1 1 3 1.1.............................................. 3 1.2 C#........................................... 3 2 Visual Studio.NET Windows 5 2.1....................................... 5 2.2..........................................
More informationGraphicsWithPlotFull.nb Plot[{( 1), ( ),...}, {( ), ( ), ( )}] Plot Plot Cos x Sin x, x, 5 Π, 5 Π, AxesLabel x, y x 1 Plot AxesLabel
http://yktlab.cis.k.hosei.ac.jp/wiki/ 1(Plot) f x x x 1 1 x x ( )[( 1)_, ( )_, ( 3)_,...]=( ) Plot Plot f x, x, 5, 3 15 10 5 Plot[( ), {( ), ( ), ( )}] D g x x 3 x 3 Plot f x, g x, x, 10, 8 00 100 10 5
More information(一日目前半)2017SV演習C++CLI
第 1 日目 シミュレーション & ビジュアライゼーション演習 担当 : 泉教授 志賀助教 波田野助教 吉本助教 TA: 山脇 岩本 Supervised by 酒井教授 1 シミュレーション & ビジュアライゼーション演習 Microsoft Visual Studio 2012 を使用 現在は version 2017 が無償配布 1 動くもののシミュレーション 球の衝突 振動など 分子動力学
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 informationt θ, τ, α, β S(, 0 P sin(θ P θ S x cos(θ SP = θ P (cos(θ, sin(θ sin(θ P t tan(θ θ 0 cos(θ tan(θ = sin(θ cos(θ ( 0t tan(θ
4 5 ( 5 3 9 4 0 5 ( 4 6 7 7 ( 0 8 3 9 ( 8 t θ, τ, α, β S(, 0 P sin(θ P θ S x cos(θ SP = θ P (cos(θ, sin(θ sin(θ P t tan(θ θ 0 cos(θ tan(θ = sin(θ cos(θ ( 0t tan(θ S θ > 0 θ < 0 ( P S(, 0 θ > 0 ( 60 θ
More informationグラフィックトレーニング 概要.NET のグラフィック描画は どんなことができるのでしょうか? グラフィックオブジェクトやグラフィック環境 概念を理解するためには クラスを使って馴れることが近道です 本 書に記載されているコードをカットアンドペーストして 一つ一つの機能を体験してください 前提 グラ
C# & VB 1 グラフィックトレーニング 概要.NET のグラフィック描画は どんなことができるのでしょうか? グラフィックオブジェクトやグラフィック環境 概念を理解するためには クラスを使って馴れることが近道です 本 書に記載されているコードをカットアンドペーストして 一つ一つの機能を体験してください 前提 グラフィックを行うためには Visual Studio の基本操作や C# または VB
More informationPYTHON 資料 電脳梁山泊烏賊塾 PYTHON 入門 ゲームプログラミング スプライトの衝突判定 スプライトの衝突判定 スプライトの衝突判定の例として インベーダーゲームのコードを 下記に示す PYTHON3 #coding: utf-8 import pygame from pygame.lo
PYTHON 入門 ゲームプログラミング スプライトの衝突判定 スプライトの衝突判定 スプライトの衝突判定の例として インベーダーゲームのコードを 下記に示す #coding: utf-8 import pygame from pygame.locals import * import os import sys SCR_RECT = Rect(0, 0, 640, 480) def main():
More informationOK Form PictureBox Panel RadioButton Panel RadioButton Label Button Form1 540, 440 PictureBox 360, 360 RadioButton1 Text Checked True RadioButton2 Tex
Reversi UCT C++ UCT Reversi UCT Reversi UNBALANCE Reversi UCT Reversi ( (Othello) ) UCT Microsoft Visual Studio 2010 Window othello 1 OK Form PictureBox Panel RadioButton Panel RadioButton Label Button
More information70 : 20 : A B (20 ) (30 ) 50 1
70 : 0 : A B (0 ) (30 ) 50 1 1 4 1.1................................................ 5 1. A............................................... 6 1.3 B............................................... 7 8.1 A...............................................
More information資料
PC PC C VMwareをインストールする Tips: VmwareFusion *.vmx vhv.enable = TRUE Tips: Windows Hyper-V -rwxr-xr-x 1 masakazu staff 8552 7 29 13:18 a.out* -rw------- 1 masakazu staff 8552 7 29
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コンピュータ概論
4.1 For Check Point 1. For 2. 4.1.1 For (For) For = To Step (Next) 4.1.1 Next 4.1.1 4.1.2 1 i 10 For Next Cells(i,1) Cells(1, 1) Cells(2, 1) Cells(10, 1) 4.1.2 50 1. 2 1 10 3. 0 360 10 sin() 4.1.2 For
More informationPowerPoint プレゼンテーション
1 03 簡単なゕニメーションを実現してみる正弦波描画プログラム 1 今回作成するゕプリケーションの概要 正弦波が円周上の点の動きから描かれることを表すプログラム 行われる動作 [1] 起動すると円と正弦波が描かれる [2] マウスで移動するスラダを動かすと円周上の点と正弦波上の点が連動して動く [3] ボタンをクリックすると 連動している二つの点がそれぞれ円周上と正弦波上を自動的に移動する 正弦波描画プログラム
More information1.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 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>
More information1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main
C 2007 5 29 C 1 11 2 2.1 main() 1 FORTRAN C main() main main() main() 1 return 1 1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return
More information1 matplotlib matplotlib Python matplotlib numpy matplotlib Installing A 2 pyplot matplotlib 1 matplotlib.pyplot matplotlib.pyplot plt import import nu
Python Matplotlib 2016 ver.0.06 matplotlib python 2 3 (ffmpeg ) Excel matplotlib matplotlib doc PDF 2,800 python matplotlib matplotlib matplotlib Gallery Matplotlib Examples 1 matplotlib 2 2 pyplot 2 2.1
More informationVisual Studio2008 C# で JAN13 バーコードイメージを作成 xbase 言語をご利用の現場でバーコードの出力が必要なことが多々あります xbase 言語製品によっては 標準でバーコード描画機能が付加されているものもあるようで す C# では バーコードフォントを利用したりバー
Visual Studio2008 C# で JAN13 バーコードイメージを作成 xbase 言語をご利用の現場でバーコードの出力が必要なことが多々あります xbase 言語製品によっては 標準でバーコード描画機能が付加されているものもあるようで す C# では バーコードフォントを利用したりバーコード OCX や バーコード対応レ ポートツールが豊富にありますので それほど困ることは無いと思われます
More informationBASICとVisual Basic
Visual Basic BASIC Visual Basic BASICBeginner's All purpose Symbolic Instruction Code Visual Basic Windows BASIC BASIC Visual Basic Visual Basic End Sub .Visual Basic Visual Basic VB 1-1.Visual Basic
More information掲示用ヒート表 第34回 藤沢市長杯 2017
34 8 4 2 Round 1 Round 2 SEMI FINAL 30 16 8 H1 H5 H1 H1 Red 12401821 2 Red 12601360 2 1-1 Red 12501915 1 1-1 Red 12501915 4 White 12900051 4 White 12600138 3 3-1 White 12802412 2 3-1 White 12801091 1 Yellow
More informationθ (t) ω cos θ(t) = ( : θ, θ. ( ) ( ) ( 5) l () θ (t) = ω sin θ(t). ω := g l.. () θ (t) θ (t)θ (t) + ω θ (t) sin θ(t) =. [ ] d dt θ (t) ω cos θ(t
7 8, /3/, 5// http://nalab.mind.meiji.ac.jp/~mk/labo/text/furiko/ l (, simple pendulum) m g mlθ (t) = mg sin θ(t) () θ (t) + ω sin θ(t) =, ω := ( m ) ( θ ) sin θ θ θ (t) + ω θ(t) = ( ) ( ) g l θ(t) = C
More informationnum2.dvi
kanenko@mbk.nifty.com http://kanenko.a.la9.jp/ 16 32...... h 0 h = ε () 0 ( ) 0 1 IEEE754 (ieee754.c Kerosoft Ltd.!) 1 2 : OS! : WindowsXP ( ) : X Window xcalc.. (,.) C double 10,??? 3 :, ( ) : BASIC,
More information2009 T
T060061 Wii Visual C++ 2008 Express Edition Visual C++ 2008 Express Edition ++ ++ Paint.net ++ 1 2009 T060061 2 1 4 2 4 2.1 Visual C++ 2008 Express Edition.......................... 4 2.2.....................................
More informationPython Speed Learning
Python Speed Learning 1 / 76 Python 2 1 $ python 1 >>> 1 + 2 2 3 2 / 76 print : 1 print : ( ) 3 / 76 print : 1 print 1 2 print hello 3 print 1+2 4 print 7/3 5 print abs(-5*4) 4 / 76 print : 1 print 1 2
More informationr3.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★結果★ 藤沢市長杯 掲示用ヒート表
AA 35 Round 1 8 4 Round 2 28 16 SEMI FINAL H1 H5 H1 H1 Red 12802015 1 Red 12802109 1 1-1 Red 12802015 2 1-1 Red 12702346 White 12800232 2 White 12702406 3 3-1 White 12702346 1 3-1 White 12802109 Yellow
More informationuntitled
Visual Basic.NET 1 ... P.3 Visual Studio.NET... P.4 2-1 Visual Studio.NET... P.4 2-2... P.5 2-3... P.6 2-4 VS.NET(VB.NET)... P.9 2-5.NET... P.9 2-6 MSDN... P.11 Visual Basic.NET... P.12 3-1 Visual Basic.NET...
More information4 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
4 4 5 4 I II III A B C, 5 7 I II A B,, 8, 9 I II A B O A,, Bb, b, Cc, c, c b c b b c c c OA BC P BC OP BC P AP BC n f n x xn e x! e n! n f n x f n x f n x f k x k 4 e > f n x dx k k! fx sin x cos x tan
More informationDVIOUT-講
005-10-14 1 1 [1] [] [3] [4] (a + b) = a +ab + b [5] (a + b) 3 a 3 +a b + ab + a b +ab + b 3 a 3 +3a b +3ab + b 3 [6] (a + b) 4 (a + b) 5 [7] technology expand((a+b) n n =?) [8] technology n =6, 7, 8,
More information1.1 ft t 2 ft = t 2 ft+ t = t+ t 2 1.1 d t 2 t + t 2 t 2 = lim t 0 t = lim t 0 = lim t 0 t 2 + 2t t + t 2 t 2 t + t 2 t 2t t + t 2 t 2t + t = lim t 0
A c 2008 by Kuniaki Nakamitsu 1 1.1 t 2 sin t, cos t t ft t t vt t xt t + t xt + t xt + t xt t vt = xt + t xt t t t vt xt + t xt vt = lim t 0 t lim t 0 t 0 vt = dxt ft dft dft ft + t ft = lim t 0 t 1.1
More information8 / 0 1 i++ i 1 i-- i C !!! C 2
C 2006 5 2 printf() 1 [1] 5 8 C 5 ( ) 6 (auto) (static) 7 (=) 1 8 / 0 1 i++ i 1 i-- i 1 2 2.1 C 4 5 3 13!!! C 2 2.2 C ( ) 4 1 HTML はじめ mkdir work 作業用ディレクトリーの作成 emacs hoge.c& エディターによりソースプログラム作成 gcc -o fuga
More information2014 S hara/lectures/lectures-j.html r 1 S phone: ,
14 S1-1+13 http://www.math.kyushu-u.ac.jp/ hara/lectures/lectures-j.html r 1 S1-1+13 14.4.11. 19 phone: 9-8-4441, e-mail: hara@math.kyushu-u.ac.jp Office hours: 1 4/11 web download. I. 1. ϵ-δ 1. 3.1, 3..
More informationDVIOUT-MTT元原
TI-92 -MTT-Mathematics Thinking with Technology MTT ACTIVITY Discussion 1 1 1.1 v t h h = vt 1 2 gt2 (1.1) xy (5, 0) 20m/s [1] Mode Graph Parametric [2] Y= [3] Window [4] Graph 1.1: Discussion 2 Window
More information- II
- II- - -.................................................................................................... 3.3.............................................. 4 6...........................................
More information, 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,,,,
6,,3,4,, 3 4 8 6 6................................. 6.................................. , 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,
More informationall.dvi
fortran 1996 4 18 2007 6 11 2012 11 12 1 3 1.1..................................... 3 1.2.............................. 3 2 fortran I 5 2.1 write................................ 5 2.2.................................
More informationB line of mgnetic induction AB MN ds df (7.1) (7.3) (8.1) df = µ 0 ds, df = ds B = B ds 2π A B P P O s s Q PQ R QP AB θ 0 <θ<π
8 Biot-Svt Ampèe Biot-Svt 8.1 Biot-Svt 8.1.1 Ampèe B B B = µ 0 2π. (8.1) B N df B ds A M 8.1: Ampèe 107 108 8 0 B line of mgnetic induction 8.1 8.1 AB MN ds df (7.1) (7.3) (8.1) df = µ 0 ds, df = ds B
More information2 P.S.P.T. P.S.P.T. wiki 26
P.S.P.T. C 2011 4 10 2 P.S.P.T. P.S.P.T. wiki p.s.p.t.since1982@gmail.com http://www23.atwiki.jp/pspt 26 3 2 1 C 8 1.1 C................................................ 8 1.1.1...........................................
More information1 3 1.1.......................... 3 1............................... 3 1.3....................... 5 1.4.......................... 6 1.5........................ 7 8.1......................... 8..............................
More information// // GENES Version 1.00 突然変異と自然
//---------------------------------------------------------------------------------------------------------------------- // GENES Version 1.00 突然変異と自然淘汰による仮想生命進化シミュレーション // // 2019 (C) Radiun.net Takashi
More information曲面のパラメタ表示と接線ベクトル
L11(2011-07-06 Wed) :Time-stamp: 2011-07-06 Wed 13:08 JST hig 1,,. 2. http://hig3.net () (L11) 2011-07-06 Wed 1 / 18 ( ) 1 V = (xy2 ) x + (2y) y = y 2 + 2. 2 V = 4y., D V ds = 2 2 ( ) 4 x 2 4y dy dx =
More information£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裱£²²ó ¡Ý½ÉÂꣲ¤Î²òÀ⡤±é½¬£²¡Ý
(2018) 2018 7 5 f(x) [ 1, 1] 3 3 1 3 f(x) dx c i f(x i ) 1 0 i=1 = 5 ) ( ) 3 ( 9 f + 8 5 9 f(0) + 5 3 9 f 5 1 1 + sin(x) θ ( 1 θ dx = tan 1 + sin x 2 π ) + 1 4 1 3 [a, b] f a, b double G3(double (*f)(),
More informationグラフィックス
グラフィックス PictureBox の Image プロパティに関する良く有る勘違い PictureBox に画像を表示する方法と仕て PictureBox の Image プロパティを使う方法と Graphics の DrawImage メソッドを使う方法が有るが 此の 2 つの方法を混同し 正しく理解して居ない事が多い様で有る 例えば 下記に列挙する様な状況が 此れに該当する 1.PictureBox
More information2009 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
009 IA 5 I, 3, 4, 5, 6, 7 6 3. () Arcsin ( (4) Arccos ) 3 () Arcsin( ) (3) Arccos (5) Arctan (6) Arctan ( 3 ) 3. n () tan x (nπ π/, nπ + π/) f n (x) f n (x) fn (x) Arctan x () sin x [nπ π/, nπ +π/] g n
More information1 1 [1] ( 2,625 [2] ( 2, ( ) /
[] (,65 [] (,3 ( ) 67 84 76 7 8 6 7 65 68 7 75 73 68 7 73 7 7 59 67 68 65 75 56 6 58 /=45 /=45 6 65 63 3 4 3/=36 4/=8 66 7 68 7 7/=38 /=5 7 75 73 8 9 8/=364 9/=864 76 8 78 /=45 /=99 8 85 83 /=9 /= ( )
More informationi
i 3 4 4 7 5 6 3 ( ).. () 3 () (3) (4) /. 3. 4/3 7. /e 8. a > a, a = /, > a >. () a >, a =, > a > () a > b, a = b, a < b. c c n a n + b n + c n 3c n..... () /3 () + (3) / (4) /4 (5) m > n, a b >, m > n,
More informationA
A05-132 2010 2 11 1 1 3 1.1.......................................... 3 1.2..................................... 3 1.3..................................... 3 2 4 2.1............................... 4 2.2
More informationgnuplot gnuplot 1 3 y = x 3 + 3x 2 2 y = sin x sin(x) x*x*x+3*x*x
gnuplot gnuplot y = x + x y = sin x.8 sin(x) 8 7 6 x*x*x+*x*x.6.. -. -. -.6 -.8 - - - - - - - -. - -. - -.. gnuplot gnuplot> set xrange[-.:.] gnuplot> plot x**+*x** y = x x gnuolot> reset gnuplot> plot
More information2015/4/13 10: C C C C John C. Hull,, Steven E. Shreve, (1), Peter E. Kloeden, Eckhard Platen Num
2015/4/13 10:56 0 0.1 http://cm.hit-u.ac.jp/~kobayashi/lecture/ 0.2 C C C C John C. Hull,, Steven E. Shreve, (1, Peter E. Kloeden, Eckhard Platen Numerical Solution of Stochastic Differential Equations,
More information10-C.._241_266_.Z
Windows 10 1 2 3 4 5 Visual Studio 2008LINQ MySchedule 242 Microsoft Visual C# 2008 10 Windows 243 1 LINQIEnumerableXML LINQ to Object q Form1.cs w RefreshListBox private void RefreshListBox() schedulelistbox.items.clear();
More information第32回新春波乗り大会2018
AA 32 Round 1 4 SEMI FINAL 2 20 8 FINAL H1 H1 H1 Red 12701793 1 1-1 Red 12701793 2 1-1 Red 11800623 White 12900058 4 3-1 White 12402115 4 2-1 White 12402209 Yellow 11603976 3 2-2 Yellow 12301534 3 1-2
More informationprogrammingII2019-v01
II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2
More informationjoho09.ppt
s M B e E s: (+ or -) M: B: (=2) e: E: ax 2 + bx + c = 0 y = ax 2 + bx + c x a, b y +/- [a, b] a, b y (a+b) / 2 1-2 1-3 x 1 A a, b y 1. 2. a, b 3. for Loop (b-a)/ 4. y=a*x*x + b*x + c 5. y==0.0 y (y2)
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 informationアプリケーション
アプリケーション開発 お絵かきソフト 目次 お絵かきソフトを作ってみよう... 3 絵を書く枠と場所表示を作る... 3 マウスの動きを見てみよう... 4 絵を書く準備をします... 5 絵を書くとはどういうことか... 5 では線画を描いてみよう... 6 マウスをドラッグしたときだけ線を引くように改造する... 8 お絵かきソフトを作ってみよう 今回は お絵かきソフトを作ってみましょう マウスを動かして線画を書いてみましょう
More informationC 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
C 1 / 21 C 2005 A * 1 2 1.1......................................... 2 1.2 *.......................................... 3 2 4 2.1.............................................. 4 2.2..............................................
More information1 28 6 12 7 1 7.1...................................... 2 7.1.1............................... 2 7.1.2........................... 2 7.2...................................... 3 7.3...................................
More informationMicrosoft Word - 92.doc
208 9.2 陰線消去 (1) 考え方 9.2 陰線消去 等高線は,3 次元形状を数値的に正確に表示するという意味では有効ですが, 直感的に図形を把握するのが困難です そこで, 普段, 見慣れた見取り図で表示することを試みましょう 曲線の XYZ 座標を 2 次元に平行投影するのが, 最も簡単に見取り図を表示する方法です 図 9-3 に示す式が平行投影における変換式です z,y X Y j j j
More informationmugensho.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¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~alse
I Exercise on Programming I http://bit.ly/oitprog1 1, 2 of 14 ( RD S ) I 1, 2 of 14 1 / 44 Ruby Ruby ( RD S ) I 1, 2 of 14 2 / 44 7 5 9 2 9 3 3 2 6 5 1 3 2 5 6 4 7 8 4 5 2 7 9 6 4 7 1 3 ( RD S ) I 1, 2
More informationr07.dvi
19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1
More information関数のグラフを描こう
L05(2010-05-07) 1 2 hig3.net ( ) L05(2010-05-07) 1 / 16 #i n c l u d e double f ( double x ) ; i n t main ( void ){ i n t n ; i n t nmax=10; double x ; double s =0.0; } x = 1.0; s=s+x ;
More informationGmech08.dvi
145 13 13.1 13.1.1 0 m mg S 13.1 F 13.1 F /m S F F 13.1 F mg S F F mg 13.1: m d2 r 2 = F + F = 0 (13.1) 146 13 F = F (13.2) S S S S S P r S P r r = r 0 + r (13.3) r 0 S S m d2 r 2 = F (13.4) (13.3) d 2
More informationohp07.dvi
19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5
More information2012 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[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:
005 9 7 1 1.1 1 Hello World!! 5 p r i n t f ( H e l l o World!! \ n ) ; 7 return 0 ; 8 } 1: 1 [ ] Hello World!! from Akita National College of Technology. 1 : 5 p r i n t f ( H e l l o World!! \ n ) ;
More information[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±
[1] #include printf("hello, world."); (G1) int -32768 32767 long int -2147483648 2147483647 float ±3.4 10 38 ±3.4 10 38 double ±1.7 10 308 ±1.7 10 308 char [2] #include int a, b, c, d,
More information*3 i 9 (1,) i (i,) (1,) 9 (i,) i i 2 1 ( 1, ) (1,) 18 2 i, 2 i i r 3r + 4i 1 i 1 i *4 1 i 9 i 1 1 i i 3 9 +
1 2 IT 1 *1 1 2 3 π i 1i 2i 3i πi i 2 1 *2 2 + 3 + 4i π ei 3 4 4 2 2 *1 *2 x 2 + 1 = x 2 + x + 1 = 2 3 1 2 2 2 2 *3 i 9 (1,) i (i,) (1,) 9 (i,) i i 2 1 ( 1, ) (1,) 18 2 i, 2 i 1 2 1 2 2 1 i r 3r + 4i 1
More information情報科学概論 第1回資料
1. Excel (C) Hiroshi Pen Fujimori 1 2. (Excel) 2.1 Excel : 2.2Excel Excel (C) Hiroshi Pen Fujimori 2 256 (IV) :C (C 65536 B4 :2 (2 A3 Excel (C) Hiroshi Pen Fujimori 3 Tips: (1) B3 (2) (*1) (3) (4)Word
More information, 1 ( f n (x))dx d dx ( f n (x)) 1 f n (x)dx d dx f n(x) lim f n (x) = [, 1] x f n (x) = n x x 1 f n (x) = x f n (x) = x 1 x n n f n(x) = [, 1] f n (x
1 1.1 4n 2 x, x 1 2n f n (x) = 4n 2 ( 1 x), 1 x 1 n 2n n, 1 x n n 1 1 f n (x)dx = 1, n = 1, 2,.. 1 lim 1 lim 1 f n (x)dx = 1 lim f n(x) = ( lim f n (x))dx = f n (x)dx 1 ( lim f n (x))dx d dx ( lim f d
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 informationII 1 3 2 5 3 7 4 8 5 11 6 13 7 16 8 18 2 1 1. x 2 + xy x y (1 lim (x,y (1,1 x 1 x 3 + y 3 (2 lim (x,y (, x 2 + y 2 x 2 (3 lim (x,y (, x 2 + y 2 xy (4 lim (x,y (, x 2 + y 2 x y (5 lim (x,y (, x + y x 3y
More informationC:/KENAR/0p1.dvi
2{3. 53 2{3 [ ] 4 2 1 2 10,15 m 10,10 m 2 2 54 2 III 1{I U 2.4 U r (2.16 F U F =, du dt du dr > 0 du dr < 0 O r 0 r 2.4: 1 m =1:00 10 kg 1:20 10 kgf 8:0 kgf g =9:8 m=s 2 (a) x N mg 2.5: N 2{3. 55 (b) x
More information() 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)
0. A A = 4 IC () det A () A () x + y + z = x y z X Y Z = A x y z ( 5) ( s5590) 0. a + b + c b c () a a + b + c c a b a + b + c 0 a b c () a 0 c b b c 0 a c b a 0 0. A A = 7 5 4 5 0 ( 5) ( s5590) () A ()
More informationc-all.dvi
III(994) (994) from PSL (9947) & (9922) c (99,992,994,996) () () 2 3 4 (2) 2 Euler 22 23 Euler 24 (3) 3 32 33 34 35 Poisson (4) 4 (5) 5 52 ( ) 2 Turbo 2 d 2 y=dx 2 = y y = a sin x + b cos x x = y = Fortran
More information( ) a, b c a 2 + b 2 = c 2. 2 1 2 2 : 2 2 = p q, p, q 2q 2 = p 2. p 2 p 2 2 2 q 2 p, q (QED)
rational number p, p, (q ) q ratio 3.14 = 3 + 1 10 + 4 100 ( ) a, b c a 2 + b 2 = c 2. 2 1 2 2 : 2 2 = p q, p, q 2q 2 = p 2. p 2 p 2 2 2 q 2 p, q (QED) ( a) ( b) a > b > 0 a < nb n A A B B A A, B B A =
More information1 26 ( ) ( ) 1 4 I II III A B C (120 ) ( ) 1, 5 7 I II III A B C (120 ) 1 (1) 0 x π 0 y π 3 sin x sin y = 3, 3 cos x + cos y = 1 (2) a b c a +
6 ( ) 6 5 ( ) 4 I II III A B C ( ) ( ), 5 7 I II III A B C ( ) () x π y π sin x sin y =, cos x + cos y = () b c + b + c = + b + = b c c () 4 5 6 n ( ) ( ) ( ) n ( ) n m n + m = 555 n OAB P k m n k PO +
More informationPart 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 information29
9 .,,, 3 () C k k C k C + C + C + + C 8 + C 9 + C k C + C + C + C 3 + C 4 + C 5 + + 45 + + + 5 + + 9 + 4 + 4 + 5 4 C k k k ( + ) 4 C k k ( k) 3 n( ) n n n ( ) n ( ) n 3 ( ) 3 3 3 n 4 ( ) 4 4 4 ( ) n n
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 informationhttp://www.ns.kogakuin.ac.jp/~ft13389/lecture/physics1a2b/ pdf I 1 1 1.1 ( ) 1. 30 m µm 2. 20 cm km 3. 10 m 2 cm 2 4. 5 cm 3 km 3 5. 1 6. 1 7. 1 1.2 ( ) 1. 1 m + 10 cm 2. 1 hr + 6400 sec 3. 3.0 10 5 kg
More informationuntitled
1 1 1. 2. 3. 2 2 1 (5/6) 4 =0.517... 5/6 (5/6) 4 1 (5/6) 4 1 (35/36) 24 =0.491... 0.5 2.7 3 1 n =rand() 0 1 = rand() () rand 6 0,1,2,3,4,5 1 1 6 6 *6 int() integer 1 6 = int(rand()*6)+1 1 4 3 500 260 52%
More information( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x ( ). (, ). def print cos(): print cos()
4 2010.6 1 :, HP.. HP 4 (, PGM/PPM )., python,,, 2, kadai4,.,,, ( )., ( ) N, exn.py ( 3 ex3.py ). N 3.., ( )., ( ) N, (exn.txt).. 1 ( ) kadai4, kadai4.zip.,. 3 cos x [ π, π] Python. ( 100 ), x cos x (
More information1 1 u m (t) u m () exp [ (cπm + (πm κ)t (5). u m (), U(x, ) f(x) m,, (4) U(x, t) Re u k () u m () [ u k () exp(πkx), u k () exp(πkx). f(x) exp[ πmxdx
1 1 1 1 1. U(x, t) U(x, t) + c t x c, κ. (1). κ U(x, t) x. (1) 1, f(x).. U(x, t) U(x, t) + c κ U(x, t), t x x : U(, t) U(1, t) ( x 1), () : U(x, ) f(x). (3) U(x, t). [ U(x, t) Re u k (t) exp(πkx). (4)
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 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 informationJava演習(4) -- 変数と型 --
50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends
More informationno35.dvi
p.16 1 sin x, cos x, tan x a x a, a>0, a 1 log a x a III 2 II 2 III III [3, p.36] [6] 2 [3, p.16] sin x sin x lim =1 ( ) [3, p.42] x 0 x ( ) sin x e [3, p.42] III [3, p.42] 3 3.1 5 8 *1 [5, pp.48 49] sin
More informationAn Introduction to OSL
.... An Introduction to OSL TeamGPS 2009 3 CSA (TeamGPS) An Introduction to OSL 2009 3 CSA 1 / 45 ..1..2..3..4.... : (TeamGPS) An Introduction to OSL 2009 3 CSA 2 / 45 Disclaimer: OSL Bonanza Crafty (pruning/cut,
More informationFortran90/95 [9]! (1 ) " " 5 "Hello!"! 3. (line) Fortran Fortran 1 2 * (1 ) 132 ( ) * 2 ( Fortran ) Fortran ,6 (continuation line) 1
Fortran90/95 2.1 Fortran 2-1 Hello! 1 program example2_01! end program 2! first test program ( ) 3 implicit none! 4 5 write(*,*) "Hello!"! write Hello! 6 7 stop! 8 end program example2_01 1 program 1!
More informationK227 Java 2
1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html
More information<4D F736F F D B B83578B6594BB2D834A836F815B82D082C88C60202E646F63>
電気電子数学入門 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/073471 このサンプルページの内容は, 初版 1 刷発行当時のものです. i 14 (tool) [ ] IT ( ) PC (EXCEL) HP() 1 1 4 15 3 010 9 ii 1... 1 1.1 1 1.
More informationNumerical Rosetta Stone 1 C, Java, Perl, Ruby, Python [ ] Hello world C: /* hello.c $> gcc hello.c $>./a.out */ #include <stdio.h> main(){ printf("hel
Numerical Rosetta Stone 1 C, Java, Perl, Ruby, Python [ ] Hello world C: /* hello.c $> gcc hello.c $>./a.out */ #include main(){ printf("hello world of C!\n"); Java: // hello.java $> javac hello.java
More information