Size: px
Start display at page:

Download ""

Transcription

1 GLSC3D (Ver ) Manual (Ver ) 1 2 3, 2, 3 (Ver )

2

3 GLSC GLSC GLSC3D X Window System OpenGL GLUT GLSC OpenGL GLSC3D GLSC3D GLSC3D GLSC GLSC3D Ver2.x GLSC Fortran GLSC3D Ver2.x OpenGL FreeGLUT SDL ,, Unicode Apple Retina Display D g box 2D, g box 3D( core) g area color GLSC3D (Ver1.x ) (Ver1.x )

4 Mac OS X Ubuntu CentOS Windows GLSC3D g init g init core g init light g init light core g disable light g scr color g cls g finish g sleep g capture set, g capture g enable highdpi g set antialiasing g key state, g input state g def scale 2D g def scale 3D g def scale 3D fix g vision g sel scale g clipping g marker color g marker size g marker radius g marker type g def marker g sel marker g line color g line width g line type

5 g def line g sel line g area color g def area 2D, g def area 3D g sel area 2D, g sel area 3D g text color g text font core g text size g def text, g def text core, g sel text g marker 2D, g marker 3D g text standard g text virtual 2D, g text virtual 3D g move 2D, g move 3D g plot 2D, g plot 3D g box 2D g box 3D g box 3D core g box center 2D g box center 3D g box center 3D core g sphere 3D g sphere 3D core g ellipse 3D g ellipse 3D core g prism 3D g prism 3D core g cylinder 3D g cylinder 3D core g cone 3D g cone 3D core g pyramid 3D g pyramid 3D core g arrow 2D g arrow 3D g arrow 3D core g triangle 2D g triangle 3D

6 g triangle 3D core g triangle 3D smooth g triangle 3D smooth core g fan 2D g fan 3D g fan 3D core g circle 2D g circle 3D g circle 3D core g polygon 2D g polyline 2D g polyline 3D g rectangle 3D g rectangle 3D core g data plot 2D g data plot 3D g data plot f 3D g boundary g contln 2D g contln f 2D g bird view 3D g bird view f 3D g isosurface 3D g isosurface f 3D Version Manual Future Works

7

8 8 1 GLSC GLSC3D 1.1 GLSC GLSC Graphics Library for Scientific Computing *1 GLSC 1980 GLSC gnuplot *2 Mathematica, MatLab *3 GLSC No GLSC *4 GLSC *1 GLSC google *2 *3 Mathematica, Matlab *4

9 9 1.2 GLSC C r[i] i ( ) 19 r[i] 21 Free gnuplot > gnuplot gnuplot Step =

10 10 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N (10) 4 #define STEP (100) 5 int PlusMinus(void) 6 { 7 if(rand() < RAND_MAX / 2) return 1; 8 else return -1; 9 } 10 int main(void) 11 { 12 int i, r[n],i_time; 13 //Initialize 14 for(i = 0;i < N;i ++) r[i] = 0; 15 //Time Loop 16 for(i_time = 0;i_time < STEP;i_time ++) 17 { 18 //Calc 19 for(i = 0;i < N;i ++) r[i] += PlusMinus(); 20 //Print 21 printf(" Step = %d \n",i_time); 22 for(i = 0;i < N;i ++) printf("%3d ",r[i]); 23 printf("\n"); 24 } 25 return 0; 26 } Step = Step = Step = : : Step = Step =

11 11 gnuplot gnuplot gnuplot popen C gnuplot C gnuplot *5 GLSC C GLSC X Windowsy System *6 GLSC gnuplot gnuplot> plot sin(x) gnuplot GLSC GLSC GLSC GLSC GLSC GLSC * *6

12 GLSC3D GLSC 3 *7 GLSC 3 3 *8 3 GLSC *9 3 * 10 3 GLSC3D X Window System GLSC3D GLSC 3 GLSC3D GLSC 3D GLSC * 11 GLSC X Window System Call 3D X Window System X Window System OpenGL GLUT 3 OpenGL(Open Graphics Library) * 12 DirectX * 13 Windows OpenGL API(Application Program Interface) GLSC3D OpenGL API *7 * *9 3 2 *10 AVS 15 Mathematica 20 *11 GLSC3.8 g_contln_3d *12 *13

13 13 * 14 GLUT(OpenGL Utility Toolkit) * 15 GLUT OS OpengGL GLUT GLUT 1998 Version 3.7 (OpenGLUT * 16 FreeGLUT * 17 ) GLUT freeglut MacOS GLSC3D freeglut * 18*19 GLSC3D GLSC OpenGL GLSC * 20 (a) GLSC * 21 OpenGL (b) OpenGL GLUT main glutmainloop glutmainloop 3D ( ) OpenGL *14 GLSC3D ( ) Ver2.2.1 *15 *16 *17 *18 OpenGLUT *19 FreeGLUT Ver3.00 SDL *20 *21

14 14 OpenGL API OpenGL OpenGL GLSC OpenGL GLSC3D GLSC3D GLSC3D GLSC OpenGL GLSC3D OpenGL * 22 GLSC3D 1.4 GLSC3D GLSC3D DrawCone (0, 0, 0) (0, 0, h) r DrawCone * 23 h, r 3D DrawCone DrawCone DrawCone OpenGL glpushmatrix, glpopmatrix, gltranslatef, glrotatef * 24 3D GLSC3D *22 *23 f(x, y) x, y *24 OpenGL 5

15 15 GLSC3D 1 1 3D GLSC3D 1.5 GLSC3D GLSC3D GLSC GLSC3D GLSC3D g_sphere_3d g_sphere etc... GLSC3D _core g_sphere_3d_core GLSC3D g_a, g_a_core g_a g_a_core Call GLSC3D GLSC3D * 25 *25 3

16 16 g_sphere_3d g_sphere_3d_core GLSC3D GLSC3D

17 17 2 GLSC GLSC3D Ver2.x GLSC3D GLSC OpenGL X Window System GLSC3D 0 3 GLSC GLSC3D 2.1 GLSC Fortran GLSC Fortran GLSC3D Fortran GLSC Wrap Fortran C Call Fortran Wrapper OpenGL ( ) * 26 OpenGL (3 ) glbegin(gl_lines); glvertex3f(0,0,0); glvertex3f(0,1,0); glend(); glflush(); /* */ /* */ /* */ /* */ /* */ GLSC ( ) GLSC (2 ) g_move(0,0); g_plot(0,1); /* */ /* */ *26 OpenGL 3.1 Vertex Buffer Vertex Array

18 18 GLSC OpenGL * 27 GLSC3D GLSC OpenGL GLSC3D (3 ) g_move_3d(0,0,0); /* */ g_plot_3d(0,1,0); /* */ g_finish(); /* */ g_finish GLSC g_finish GLSC g_sleep GLSC3D g_finish GLSC3D g_xxxx; /* 1*/ g_xxxx; /* 2*/ g_xxxx; /* 3*/... g_finish(); /* */ g_sleep(0.05); /*0.05 */ *27 OpenGL GLSC3D

19 GLSC3D Ver2.x OpenGL OpenGL GPU GPU GPU 2008 OpenGL 3.0 API OpenGL 3.1 OpenGL GLSC Ver 3.0 OpenGL FreeGLUT SDL GLSC3D FreeGLUT Mac OS X FreeGLUT XQuartz X Window System XQuartz XQuartz OpenGL 2.1 (OpenGL 3.1 ) Retina Display MacBook Pro XQuartz FreeGLUT SDL 2.2.3,, Unicode GLSC3D 4 Ver 3.0 GLSC3D Noto Sans CJK JP Regular * 28 Mac OS X Linux Windows ~/Library/Fonts/ /usr/share/fonts/opentype/noto/ C:/Windows/Fonts/ GLSC3D g_text_font_core *28 Google Noto Fonts (

20 20 g_text_font g_text_font_core g_text_size g_def_text font Unicode UTF-8 gcc UTF-8 UTF-8 C++11 u8 (C++11 ) g_text_virtual_3d(0, 0, 0, u8" "); Apple Retina Display Ver 3.0 Apple Retina Display GLSC3D g_init(_core) ( ) g_sel_scale g_marker_size, g_line_width, g_text_size g_text_standard g_input_state ( ) Ver 3.0 g_sel_scale ( 1 ) g_capture Apple Retina Display g_enable_highdpi() g_init(_core) Retina Display GLSC3D WireFill G_WIRE=0( ) G_FILL=1( ) GLSC 3.0 GLSC Wire Fill G_YES=1 G_NO=0 : GLSC Wire Fill G_YES

21 D GLSC3D 2D Ver 3.0 3D g box 2D, g box 3D( core) GLSC3D g_box_2d, g_box_3d(_core) Ver 3.0 GLSC x,y (,z) g_box_center_2d, g_box_center_3d(_core) g area color GLSC3D g area color 2D g area color 3D 2D 3D g area color g_marker_type G_MARKER_SQUARE=0, G_MARKER_CIRCLE=1, G_MARKER_SPHERE=2 3 g_sphere_3d(_core) g_marker_size g_marker_radius D g_triangle_3d_smooth(_core) GLSC3D Ver 3.0 (r,g,b,a) G_COLOR (x,y,z) G_VECTOR float G_COLOR g_area_color_s g_marker_color_s, g_line_color_s, g_text_color_s G_VECTOR

22 22 g_marker_s, g_move_s, g_plot_s g_triangle_2d_s, g_triangle_3d_s, g_triangle_3d_core_s g_triangle_3d_smooth_s, g_triangle_3d_smooth_core_s

23 Ver g_set_antialiasing Esc Esc g_init_core G_WINDOW_CENTERED g_bird_view_3d, g_contln_2d, g_data_plot_3d, g_isosurface_3d 1 g_bird_view_f_3d, g_contln_f_2d, g_data_plot_f_3d, g_isosurface_f_3d C++

24 GLSC3D (Ver1.x ) 2 3 (z ) GLSC GLSC3D α α α z α z OFF 3D GLSC3D α z OFF * 29 3D α 3D g_finish (a) α (b) α 3 1.x *29 GLSC3D α z ON α

25 25 GLSC3D α (Ver1.x ) Ver2.0 GLSC3D g_init_core g_enable_transparent_out = g_finish GLSC3D g_triangle_3d_core Call g_triangle_3d_core 2 3 g_enable_transparent = 1 GLSC3D ( TRIANGLE_BUFFER ) TRIANGLE_BUFFER MB too many triangles for triangle buffer g_init_core (TRIANGLE_BUFFER_SIZE) GLSC3D 3 TEMPORARY_TRIANGLE_BUFFER_SIZE ( TEMPORARY_TRIANGLE_BUFFER ) TRIANGLE_BUFFER TRIANGLE_BUFFER TRIANGLE_BUFFER TEMPORARY_TRIANGLE_BUFFER

26 26 TEMPORARY_TRIANGLE_BUFFER TEMPORARY_TRIANGLE_BUFFER_SIZE 2 10 * 30 g_init_core TEMPORARY_TRIANGLE_BUFFER_SIZE 4 g_finish 3 3 TRIANGLE_BUFFER g_finish GLSC3D GLSC 1 4 g_triangle_3d_core g_sphere g_sphere_core int DivideLevel DivideLevel *30

27 27 3 GLSC3D Ver GLSC3D Ver OpenGL SDL libpng FreeType Math OpenGL SDL GLSC3D PNG * 31 C Math 9MB 2 16 GPU 3.2 GLSC3D Ver GLSC3D OS Mac OS X (1) Xcode Mac OS X Xcode Xcode App Store Xcode (2) Mac OS X Script on mac.zip 1 Install macports mac 2 Install dependency library mac 3 Test GLSC3D on mac 4 Install GLSC3D on your mac (3) 1 Install macports mac 1 MacPorts *31

28 28 $:./1_Install_macports_mac (4) 2 Install dependency library mac 2 GLSC3D Mac OS X (cmake, libpng, libsdl2) $:./2_Install_dependency_library_mac (5) 3 Test GLSC3D on mac 3 $HOME GLSC3D_Working_Directory GLSC3D_Working_Directory GLSC3D GLSC3D_Working_Directory $HOME/Library/Fonts No esc $:./3_Test_GLSC3D_on_mac

29 29 (6) 4 Install GLSC3D on your mac 4 $HOME 3 bin include lib ccg bin glsc3d_3.h glsc3d_3_math.h include libglsc3d_3.a lib Hello_GLSC3D.c GLSC3D_Working_Directory bin include $:./4_Install_GLSC3D_on_your_mac (.bashrc or.profile ) export PATH=$PATH:$HOME/bin export PATH=$PATH:$HOME/include bin ccg Hello_GLSC3D.c ( ) GLSC3D Ubuntu (1) Ubuntu Script on ubuntu.zip 1 Install dependency library ubuntu 2 Test GLSC3D on ubuntu 3 Install GLSC3D on your ubuntu (2) 1 Install dependency library ubuntu 1 GLSC3D Ubuntu (git, cmake, libpng, libsdl2, freetype) $:./2_Install_dependency_library_ubuntu (3) 2 Test GLSC3D on ubuntu 2 $HOME GLSC3D_Working_Directory GLSC3D_Working_Directory

30 30 GLSC3D /usr/share/fonts/opentype/noto No Mac OS X $:./2_Test_GLSC3D_on_ubuntu (4) 3 Install GLSC3D on your ubuntu 4 $HOME 3 bin include lib ccg bin glsc3d_3.h glsc3d_3_math.h include libglsc3d_3.a lib Hello_GLSC3D.c GLSC3D_Working_Directory bin include $:./3_Install_GLSC3D_on_your_ubuntu : (.bashrc or.profile ) export PATH=$PATH:$HOME/bin export PATH=$PATH:$HOME/include bin ccg Hello_GLSC3D.c Mac OS X GLSC3D CentOS CentOS glxinfo OpenGL 4.1 libpng font Ubuntu GLSC3D Ver

31 Windows 32 Windows 64 Windows (1) Visual Studio GLSC3D Visual Studio Community Edition C++ (2) GLSC3D Github GLSC3D GLSC3D_3.zip GLSC3D_3 ( ) (3) GLSC3D_3 Bin Path 1. Bin 2. PC (R) (N) 5. Path 6. (N) 7. Bin (4) Noto Sans CJK JP NotoSansCJKjp-Regular.otf (I) GLSC3D

32 32 (5) Bin ccg.bat Hello_GLSC3D.c ccg Hello_GLSC3D.c Hello_GLSC3D.c Visual Studio Lib opengl32.lib, user32.lib (6) Samples RunAllSamples.bat ( ) 1 Y/N( ) Clean.bat RunAllSamples.bat *.obj, *.exe Frames.* (7) Windows Visual Studio Shift-JIS GLSC3D UTF-8 ASCII ( #pragma execution_character_set("utf-8") (Sample_g_text.c )

33 33 4 GLSC3D GLSC3D GLSC 3 2 GLSC3D

34 34 #include <...>... #include <glsc3d_3.h> int main() { g_init(...); // g_def_scale_3d(0,...); //0 g_def_scale_3d(1,...); //1... /****************************************/ /****************************************/ g_cls(); // // g_sel_scale(0); //0 ( 0 ) g_area_color(...); // g_box_3d(...); //3 box... // g_sel_scale(1); //1 ( 1 ) g_area_color(...); // g_sphere_3d(...); //3 sphere... } g_finish(); // return 0; GLSC3D

35 35 GLSC3D * 32 (0.0, 0.0) * 33 GLSC2D x y * 34 3 (1, 0, 0), (0, 1, 0), (0, 0, 1) 1 GLSC3D 1 (x f, y f, z f ). y f P.52 z = f(x, y) z z f(x, y) (x, y) *32 2 *33 MacBookPro Retina Display = *34 GLSC2D GLSC3D 3.0.0

36 36 x, y f(x, y) x y (x f, y f, z f ) [x f 0, xf 1 ] [yf 0, yf 1 ] [zf 0, zf 1 ] (x, y, z) [x 0, x 1 ] [y 0, y 1 ] [z 0, z 1 ] x x 0 = xf x f 0 x 1 x 0 x f 1, xf 0 y y 0 = yf y f 0 y 1 y 0 y f 1, yf 0 z z 0 z 1 z 0 = zf z f 0 z f 1 zf 0 g_def_scale_3d P.48 2 GLSC GLSC3D g_def_scale_2d P.47 GLSC3D * 35 xyz *35 g_text_standard

37 37 x 0 = x f 0, x 1 = x f 1, y 0 = y f 0, y 1 = y f 1, z 0 = z f 0, z 1 = z f 1 ) * 36 _2D _3D 2 3 _2D 2 3 _3D 3 2 *36 x1 = x f 0, x 0 = x f 1

38 g init g init void g_init( const char *WindowName, int width, int height); WindowName ; G_OFF_SCREEN G_OFF_SCREEN width ; height ; g init G_OFF_SCREEN

39 g init core g init core void g_init_core( const char *WindowName, int width, int height, int pos_x, int pos_y, float r, float g, float b, int enable_transparent, int temporary_triangle_buffer_size, int triangle_buffer_size); WindowName ; G_OFF_SCREEN G_OFF_SCREEN width ; height ; pos_x ; x G_WINDOW_CENTERED pos_y ; y G_WINDOW_CENTERED r, g, b ; 1 enable_transparent ; (1) (0) temporary_triangle_buffer_size ; TEMPORARY_TRIANGLE_BUFFER_SIZE 2 10 triangle_buffer_size ; TRIANGLE_BUFFER_SIZE 2 20 g init core g init Ver 3.0 : pos_x, pos_y G_WINDOW_CENTERED

40 40

41 g init light g init light void g_init_light( int lightnum, float x, float y, float z); lightnum ; 0 2 x, y, z ; g init light g init light(0, 0, 0, 1) g init light core g init light core void g_init_light_core( int lightnum, float x, float y, float z, float power); lightnum ; 0 2 x, y, z ; power ; g init light core g init light g disable light g disable light void g_disable_light( int lightnum); lightnum ; 0 2 g disable light g_init_light, g_init_light_core

42 g scr color g scr color void g_scr_color( float r, float g, float b, float a); r,g,b,a ; 0 r,g,b,a 1 g scr color g cls g cls void g_cls(); g cls

43 g finish g finish void g_finish(); g finish g sleep g sleep void g_sleep( double wait_time); wait_time ; g sleep g capture set, g capture g capture set, g capture void g_capture_set( const char *name); void g_capture(); name ; NULL Frames..... g capture set, g capture g_capture_set g_capture

44 g enable highdpi g enable highdpi void g_enable_highdpi(); g enable highdpi Apple Retina Display g_init(_core) g set antialiasing g set antialiasing void g_set_antialiasing( unsigned int level); level ; g set antialiasing 0 ( ), 1, 2, 3, 4 ( ) 3 0 g_init(_core)

45 g key state, g input state g key state G_INPUT_STATE g_key_state( G_KEY_CODE code); code ; g input state G_INPUT_STATE g_input_state( G_KEY_CODE code, int *x, int *y); code ; x,y ; g key state, g input state code code char / G_KEY_F1, G_KEY_LEFT, G_MOUSE_LEFT g_finish G_KEY** G_INPUT_STATE G KEY** G_MOUSE_LEFT, G_KEY_INVALID, G_KEY_INSERT, G_KEY_F1, G_KEY_F7, G_MOUSE_MIDDLE, G_KEY_PAGE_UP, G_KEY_LEFT, G_KEY_F2, G_KEY_F8, G_MOUSE_LEFT, G_KEY_PAGE_DOWN, G_KEY_UP, G_KEY_F3, G_KEY_F9, G_KEY_HOME, G_KEY_RIGHT, G_KEY_F4, G_KEY_F10, G_KEY_END, G_KEY_DOWN, G_KEY_F5, G_KEY_F11, G_KEY_F6, G_KEY_F12

46 G input state 46 G_NONE ; G_DOWN ; G_UP ; G_REPEAT ; if(g_key_state( a ) == G_DOWN) { } //a int x, y; if(g_input_state(g_mouse_left, &x, &y) == G_DOWN) { } // printf( x : %d\n y : %d\n, x, y); if(g_input_state(g_mouse_left, NULL, NULL) == G_DOWN) { } // //x y NULL g_key_state

47 g def scale 2D g def scale 2D void g_def_scale_2d( int id, double x_0, double x_1, double y_0, double y_1, double x_left_std, double y_top_std, double width_std, double height_std); id ; x_0 ; x x_1 ; x y_0 ; y y_1 ; y x_left_std ; x y_top_std ; y width_std ; height_std ; g def scale 2D g_def_scale_2d

48 g def scale 3D g def scale 3D void g_def_scale_3d( int id, double x_0, double x_1, double y_0, double y_1, double z_0, double z_1, double x_0_f, double x_1_f, double y_0_f, double y_1_f, double z_0_f, double z_1_f, double x_left_std, double y_top_std, double width_std, double height_std); id ; x_0, x_1, y_0, y_1, z_0, z_1 ; x, y, z x_0_f, x_1_f, y_0_f, y_1_f, z_0_f, z_1_f ; x, y, z x_left_std ; x y_top_std ; y width_std ; height_std ;

49 g def scale 3D 49 g_def_scale_3d : eye = (1.3(x_1_f x_0_f), 2.4(y_1_f y_0_f), 2(z_1_f z_0_f)) + g. g : up = (0, 0, 1). : zoom = 1. GLSC3D x_0 < x_1, y_0 < y_1, z_0 < z_1 x_0 > x_1 GLSC3D x_0_f < x_1_f, y_0_f < y_1_f, z_0_f < z_1_f x_0_f x_1_f GLSC3D g_def_scale_3d x_0 > x_1

50 50 1 : 1 : 1. z 2. z 2 z 2.

51 g def scale 3D fix g def scale 3D fix void g_def_scale_3d_fix( int id, double x_0_f, double x_1_f, double y_0_f, double y_1_f, double z_0_f, double z_1_f, double x_left_std, double y_top_std, double width_std, double height_std); id ; x_0_f, x_1_f, y_0_f, y_1_f, z_0_f, z_1_f ; x, y, z x_left_std ; x y_top_std ; y width_std ; height_std ; g def scale 3D core g_def_scale_3d_fix g_def_scale_3d g_def_scale_3d x_0_f < x_1_f, y_0_f < y_1_f, z_0_f < z_1_f g_def_scale_3d_fix g_def_scale_3d

52 g vision g vision void g_vision( int id, double eye_x, double eye_y, double eye_z, double up_x, double up_y, double up_z, double zoom); id ; eye_x, eye_y, eye_z ; up_x, up_y, up_z ; zoom ; g vision g_def_scale_3d g_def_scale_3d_fix g ( (e) )

53 53 (a) (b) (c) (d) (e) (f) (g) (h) (i) (eye_std_x, eye_std_y, eye_std_z) (a) ( eye_std_x, eye_std_y, eye_std_z). (b) (0, 1, 0). (c) (eye_std_x, eye_std_y, eye_std_z). (d) ( 1, 0, 0). (e) (0 + ε, 0 + ε, 1). ( up = (0, 0, 1) T,. (f) (1, 0, 0). (g) ( eye_std_x, eye_std_y, eye_std_z). (h) (0, 1, 0). (i) (eye_std_x, eye_std_y, eye_std_z).

54 54 (a) (b) (c) (a) (0, 0, 1). (b) (0, 1, 0). (c) (1, 0, 0). (b) (c), (a). (a) (b) (c) (a) zoom = 1. (b) zoom = (c) zoom =

55 g sel scale g sel scale void g_sel_scale( int id); id ; g sel scale id (g_def_scale_*) g clipping g clipping void g_clipping( G_BOOL value); value ; G_YES or G_NO g clipping g_clipping(g_yes) g_clipping(g_no) g_sel_scale_*(id) g_sel_scale g_clipping(g_yes)

56 g marker color g marker color void g_marker_color( float r, float g, float b, float a); r,g,b,a ; 0 r,g,b,a 1 g marker color g marker size g marker size void g_marker_size( float size); size ; g marker size g marker radius g marker radius void g_marker_radius( float size); size ; g marker radius

57 g marker type g marker type void g_marker_type( unsigned int type); type ; g marker type G_MARKER_SQUARE 0 G_MARKER_CIRCLE 1 G_MARKER_SPHERE 2 (g_marker_size g_marker_radius)

58 g def marker g def marker void g_def_marker( int id, float r, float b, float g, float a, int type, float size); id ; r,g,b,a ; 0 r,g,b,a 1 type ; g_marker_type size ; g def marker g sel marker g sel marker void g_sel_marker( int id); id ; g sel marker

59 59

60 g line color g line color void g_line_color( float r,float g,float b,float a); r,g,b,a ; 0 r,g,b,a 1 g line color g line width g line width void g_line_width( float size); size ; g line width g line type g line type void g_line_type( int type); type ; 0 8 g line type

61 g def line g def line void g_def_line( int id, float r, float b, float g, float a, float width, int type); id ; r,g,b,a ; 0 r,g,b,a 1 width ; type ; 0 8 g def line

62 g sel line g sel line void g_sel_line( int id); id ; g sel line

63 g area color g area color void g_area_color( float r, float g, float b, float a); r,g,b,a ; 0 r,g,b,a 1 g area color 2D, g area color 3D

64 g def area 2D, g def area 3D g def area 2D, g def area 3D void g_def_area_2d( int id, float r, float b, float g, float a); void g_def_area_3d( int id, float r, float b, float g, float a); id ; r,g,b,a ; 0 r,g,b,a 1 g def area 2D, g def area 3D g sel area 2D, g sel area 3D g sel area 2D, g sel area 3D void g_sel_area_2d( int id); void g_sel_area_3d( int id); id ; g sel area 2D, g sel area 3D

65 g text color g text color void g_text_color( float r, float g, float b, float a); r,g,b,a ; 0 r,g,b,a 1 g text color g text font core g text font core void g_text_font_core( const char *font_file); const char *font_file ; ttf(true Type Font), otf(open Type Font) g text font core g text size g text size void g_text_size( float size); size ; g text font core

66 g def text, g def text core, g sel text g def text void g_def_text( int id, float r, float g, float b, float a, unsigned int font_size); id ; r,g,b,a ; 0 r,g,b,a 1 font_size ; g def text g def text core void g_def_text_core( int id, float r, float g, float b, float a, const char *font_type, unsigned int font_size); id ; r,g,b,a ; 0 r,g,b,a 1 font_type ; NULL font_size ; g def text font_type==null g sel text void g_sel_text( int id); id ; g sel text

67 g marker 2D, g marker 3D g marker 2D, g marker 3D void g_marker_2d( double x, double y); void g_marker_3d( double x, double y, double z); x,y,z ; g marker 2D, g marker 3D

68 g text standard g text standard void g_text_standard( double x, double y, const char *str); x,y ; str ; g text standard g text virtual 2D, g text virtual 3D g text virtual 2D, g text virtual 3D void g_text_2d_virtual( double x, double y, const char *str); void g_text_3d_virtual( double x, double y, double z, const char *str); x,y,z ; str ; g text virtual 2D, g text virtual 3D

69 g move 2D, g move 3D g move 2D, g move 3D void g_move_2d( double x, double y); void g_move_3d( double x, double y, double z); x,y,z ; g move 2D, g move 3D g plot 2D, g plot 3D g plot 2D, g plot 3D void g_plot_2d( double x, double y); void g_plot_3d( double x, double y, double z); x,y,z ; g plot 2D, g plot 3D

70 g box 2D g box 2D void g_box_2d( double x_left, double x_right, double y_bottom, double y_top, G_BOOL Wire, G_BOOL Fill); x_left, x_right ; x y_bottom, y_top ; y Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g box 2D Ver 3.0 : GLSC3D Ver.2.x g_box_center_2d g box 3D g box 3D void g_box_3d( double x0, double x1, double x0, double x1, double z0, double z1, G_BOOL Wire, G_BOOL Fill); x0, x1 ; x y0, y1 ; y z0, z1 ; z Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g box 3D Ver 3.0 : GLSC3D Ver.2.x g_box_center_3d

71 g box 3D core g box 3D core void g_box_3d_core( double x0, double x1, double x0, double x1, double z0, double z1, int DivideLevel, G_BOOL Wire, G_BOOL Fill); x0, x1 ; x y0, y1 ; y z0, z1 ; z DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g box 3D core DivideLevel Ver 3.0 : GLSC3D Ver.2.x g_box_center_3d_core

72 g box center 2D g box center 2D void g_box_center_2d( double x, double y, double width, double height, G_BOOL Wire, G_BOOL Fill); x,y ; width,height ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g box center 2D g box center 3D g box center 3D void g_box_center_3d( double x, double y, double z, double width, double height, double depth G_BOOL Wire, G_BOOL Fill); x,y,z ; width,height,depth ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g box center 3D

73 g box center 3D core g box center 3D core void g_box_center_3d_core( double x, double y, double z, double width, double height, double depth, int DivideLevel, G_BOOL Wire, G_BOOL Fill); x,y,z ; width,height,depth ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g box center 3D core DivideLevel

74 74

75 g sphere 3D g sphere 3D void g_sphere_3d( double x, double y, double z, double radius, G_BOOL Wire, G_BOOL Fill); x,y,z ; radius ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g sphere 3D Ver 3.0 :

76 g sphere 3D core g sphere 3D core void g_sphere_3d_core( double x, double y, double z, double radius, int FaceNumberLevel, int DivideLevel, G_BOOL Wire, G_BOOL Fill); x,y,z ; radius ; FaceNumberLevel ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g sphere 3D core Ver 3.0 :

77 g ellipse 3D g ellipse 3D void g_ellipse_3d( double x, double y, double z, double Sx, double Sy, double Sz, double direction_x, double direction_y, double direction_z, G_BOOL Wire, G_BOOL Fill); x,y,z ; Sx,Sy,Sz ; x,y,z direction ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g ellipse 3D

78 g ellipse 3D core g ellipse 3D core void g_ellipse_3d_core( double x, double y, double z, double Sx, double Sy, double Sz, double direction_x, double direction_y, double direction_z, int FaceNumberLevel, int DivideLevel, G_BOOL Wire, G_BOOL Fill); x,y,z ; Sx,Sy,Sz ; x,y,z direction ; FaceNumberLevel ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g ellipse 3D core

79 79

80 g prism 3D g prism 3D void g_prism_3d( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double height, double psi, int N, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; height ; psi ; direction N ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g prism 3D

81 g prism 3D core g prism 3D core void g_prism_3d_core( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double height, double psi, int N, int DivideLevel, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; height ; psi ; direction N ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g prism 3D core

82 82

83 g cylinder 3D g cylinder 3D void g_cylinder_3d( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double height, double psi, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; height ; psi ; direction Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g cylinder 3D

84 g cylinder 3D core g cylinder 3D core void g_cylinder_3d_core( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double height, double psi, int N, int DivideLevel, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; height ; psi ; direction N ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g cylinder 3D core

85 85

86 g cone 3D g cone 3D void g_cone_3d( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double head_size G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; head_size ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g cone 3D

87 87

88 g cone 3D core g cone 3D core void g_cone_3d_core( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double head_size, int N, int DivideLevel, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; head_size ; N ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g cone 3D core

89 89

90 g pyramid 3D g pyramid 3D void g_pyramid_3d( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double head_size, double psi, int N, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; head_size ; psi ; direction N ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g pyramid 3D

91 g pyramid 3D core g pyramid 3D core void g_pyramid_3d_core( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double head_size, double psi, int N, int DivideLevel, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; head_size ; psi ; direction N ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g pyramid 3D core

92 92

93 g arrow 2D g arrow 2D void g_arrow_2d( double base_x, double base_y double direction_x, double direction_y double arrow_size, double head_size, int type); base ; direction ; arrow_size ; head_size ; type ; (0 2) g arrow 2D

94 g arrow 3D g arrow 3D void g_arrow_3d( double base_x, double base_y, double base_z, double direction_x, double direction_y, double direction_z, double arrow_size, double head_size, G_BOOL Wire, G_BOOL Fill); base ; direction ; arrow_size ; head_size ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g arrow 3D

95 95

96 g arrow 3D core g arrow 3D core void g_arrow_3d_core( double base_x, double base_y, double base_z, double direction_x, double direction_y, double direction_z, double arrow_size, double head_size, int N, int DivideLevel, G_BOOL Wire, G_BOOL Fill); base ; direction ; arrow_size ; head_size ; N ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g arrow 3D core

97 97

98 g triangle 2D g triangle 2D void g_triangle_2d( double x0, double y0, double x1, double y1, double x2, double y2, G_BOOL Wire, G_BOOL Fill); x,y ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g triangle 2D

99 g triangle 3D g triangle 3D void g_triangle_3d( double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, G_BOOL Wire, G_BOOL Fill); x,y,z ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g triangle 3D

100 g triangle 3D core g triangle 3D core void g_triangle_3d_core( double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, int DivideLevel, G_BOOL Wire, G_BOOL Fill); x,y,z ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g triangle 3D core

101 g triangle 3D smooth g triangle 3D smooth void g_triangle_3d_smooth( double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, double nx0, double ny0, double nz0, double nx1, double ny1, double nz1, double nx2, double ny2, double nz2, G_BOOL Wire, G_BOOL Fill); x,y,z ; nx,ny,nz ; x, y, z Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g triangle 3D smooth

102 g triangle 3D smooth core g triangle 3D smooth core void g_triangle_3d_smooth_smooth( double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, double nx0, double ny0, double nz0, double nx1, double ny1, double nz1, double nx2, double ny2, double nz2, int DivideLevel, G_BOOL Wire, G_BOOL Fill); x,y,z ; nx,ny,nz ; x, y, z DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g triangle 3D smooth core

103 g fan 2D g fan 2D void g_fan_2d( double center_x, double center_y, double direction_x, double direction_y, double radius, double angle, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; angle ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g fan 2D

104 g fan 3D g fan 3D void g_fan_3d( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double angle, double psi, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; angle ; psi ; direction Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g fan 3D

105 g fan 3D core g fan 3D core void g_fan_3d_core( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double radius, double angle, double psi, int FaceNumberLevel, int DivideLevel, G_BOOL Wire, G_BOOL Fill); center ; direction ; radius ; angle ; psi ; direction FaceNumberLevel ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g fan 3D core

106 106

107 g circle 2D g circle 2D void g_circle_2d( double center_x, double center_y, double radius, G_BOOL Wire, G_BOOL Fill); center ; radius ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g circle 2D

108 g circle 3D g circle 3D void g_circle_3d( double center_x, double center_y, double radius, double theta, double phi, G_BOOL Wire, G_BOOL Fill); center ; radius ; psi ; theta ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g circle 3D

109 g circle 3D core g circle 3D core void g_circle_3d_core( double center_x, double center_y, double radius, double theta, double phi, int N, int DivideLevel, G_BOOL Wire, G_BOOL Fill); center ; radius ; psi ; theta ; N ; DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g circle 3D core

110 110

111 g polygon 2D g polygon 2D void g_polygon_2d( double *xx, double *yy, int n, G_BOOL WIRE, G_BOOL FILL); xx,yy ; n ; Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g polygon 2D

112 g polyline 2D g polyline 2D void g_polyline_2d( double *xx, double *yy, int n); xx,yy ; n ; g polyline 2D

113 g polyline 3D g polyline 3D void g_polyline_3d( double *xx, double *yy, double *zz, int n); xx,yy,zz ; n ; g polyline 3D

114 g rectangle 3D g rectangle 3D void g_rectangle_3d( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double width, double depth, double psi, G_BOOL WIRE, G_BOOL FILL); center ; direction ; width,height,depth ; psi ; direction Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g rectangle 3D

115 g rectangle 3D core g rectangle 3D core void g_rectangle_3d_core( double center_x, double center_y, double center_z, double direction_x, double direction_y, double direction_z, double width, double depth, double psi, int DivideLevel, G_BOOL WIRE, G_BOOL FILL); center ; direction ; width,height,depth ; psi ; direction DivideLevel ; 4 DivideLevel Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g rectangle 3D core

116 g data plot 2D g data plot 2D void g_data_plot_2d( double x0, double x1, double y0, double y1, int number_x, double u[number_x]); x,y ; number ; u u ; 1 g data plot 2D 1 u

117 g data plot 3D g data plot 3D void g_data_plot_3d( double x0, double x1, double y0, double y1, double z0, double z1, int number_x, int number_y, double u[number_x][number_y]); x,y,z ; number ; u u ; * g data plot 3D 2 u 2 *

118 g data plot f 3D g data plot f 3D void g_data_plot_f_3d( double x0, double x1, double y0, double y1, double z0, double z1, int number_x, int number_y, double *u); x,y,z ; number ; u u ; 1 2 * g data plot f 3D 1 u 2 *

119 g boundary g boundary void g_boundary(); g boundary g_sel_scale

120 g contln 2D g contln 2D void g_contln_2d( double x_left, double x_right, double y_bottom, double y_top, int N_x, int N_y, double data2d[n_x][n_y], double level); x,y ; N ; u data2d ; * level ; g contln 2D 2 u level 2 *

121 g contln f 2D g contln f 2D void g_contln_f_2d( double x_left, double x_right, double y_bottom, double y_top, int N_x, int N_y, double *data2d, double level); x,y ; N ; u data2d ; 1 2 * level ; g contln f 2D 1 u level 2 *

122 g bird view 3D g bird view 3D void g_bird_view_3d( double x_left, double x_right, double y_bottom, double y_top, int number_x, int number_y, double u[number_x][number_y], G_BOOL WIRE, G_BOOL FILL); x,y,z ; number ; u u ; * Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g bird view 3D 2 u y_top=y_bottom y 2 *

123 g bird view f 3D g bird view f 3D void g_bird_view_f_3d( double x_left, double x_right, double y_bottom, double y_top, int number_x, int number_y, double *u, G_BOOL WIRE, G_BOOL FILL); x,y,z ; number ; u u ;1 2 * Wire ; G_YES:, G_NO: Fill ; G_YES:, G_NO: g bird view f 3D 1 u y_top=y_bottom y 2 *

124 g isosurface 3D g isosurface 3D void g_isosurface_3d( double x0, double x1, double y0, double y1, double z0, double z1, int number_x, int number_y, int number_z, double u[number_x][number_y][number_z], double height); x,y,z ; number ; u u ; * height ; g isosurface 3D 3 u height 3 *

125 g isosurface f 3D g isosurface f 3D void g_isosurface_f_3d( double x0, double x1, double y0, double y1, double z0, double z1, int number_x, int number_y, int number_z, double *u, double height); x,y,z ; number ; u u ; 1 3 * height ; g isosurface f 3D 1 u height 3 *

126 126 5 Version Ver G_Font_id,G_WIRE,G_FILL,G_BOOL define Ver 2.2 g_text static (*.a) shared (mac *.dylib, Linux *.so) Ver g_fan_2d Ver g_data_plot, g_isosurface, g_bird_view

127 Ver 2.1 Manual Ver 2.0 Manual Ver 1.13 Manual ( ) Ver 1.13-experimental Manual gluperspectinve (fovy, z_near, z_far) ( Ver 1.12 Ver1.12-experimental manual Tex Ver 1.12-experimental 3D 2D 3D 3D experimental Ver 1.11 C++ gcc g_init_3d g_init_3d_core char* const char * c++ G_INPUT g_init_3d_core Ver 1.10 g_bird_view malloc g_rectangle_3d

128 Ver 1.09 g_text_standard Ver 1.08 g_def_scale_3d_core font Ver 1.07 g_init_3d, g_init_3d_core win_pos,width,height double int g_bird_view_f_3d g_contln_f_3d g_data_plot_f_3d, test_program Ver 1.06 g_input.c ASCII G_INPUT_STATE g_input_state(g_key_code code, int *x, int *y) test_program g_input_state Ver 1.05-experimental g_input.c ASCII void g_input_init() G_INPUT g_get_input() G_INPUT_STATE g_input_state(g_input in,unsigned char key) key G_INPUT_STATE g_input.h Sample_g_input g_text_3d/2d_virtual printf glsc3d.h M_PI M_PI (CentOS ) long double 36 experimental

129 Ver 1.04 g_init_light_3d_core TestProgram Ver 1.03 g_cls_3d glutmainloopevent g_finish_3d g_scr_color_3d (a) g_init_3d_core TestProgram SampleProgram g_rectangle_3d direction g_contln_2d Ver 1.02 g_isosurface_f_3d TestProgram Ver 1.01 TesProgram RunAllSample glsc3d.h c Ver x GLSC3D version 1.0

130 130 6 GLSC3D gnuplot OpenGL 3D * 37 7 GLSC3D ( ) ( ) (15H05857) (B) (15K20835) *37 akiyama@es.hokudai.ac.jp

131 Src TestProgram 8.2 Manual Manual Canvas.key Figures eps jpg2epsconverter 8.3 GLSC3D C C C FORTRAN! C C

132 git LatestVer GLSC3DVerXXXX XXXX Src/Source Src/Include Src make Src/Object Src/Depend Out Src/Source Makefile Src make Out TestProgram SampleProgram Manual Manual/GLSC3D Manual.pdf Manual/.TexManual GLSC3D Manual.tex Figure/eps 8.5 GLSC3D g_triangle_3d(_smooth)(_core)(_s) g_triangle_3d_smooth_worker g_triangle_3d_flat_worker 8.6 Future Works 1. Ver2.2! 2. Ver3.0! Ver2.1!

133 g_def_scale 6. triangle buffer 7. g_off_screen.c/g_init_off_screen_rendering 8. C 9. OpenGL OpenGL glshadersource GLSL 10. g_isosurface.c 11.

GLSC3D (Ver. 2.2.1) Manual 2016 5 12 3 1 8 1.1 GLSC.................................. 8 1.2 GLSC................................. 8 1.3 GLSC3D................................ 12 1.3.1 X Window System...........................

More information

Informatics 2010.key

Informatics 2010.key http://math.sci.hiroshima-u.ac.jp/ ~ryo/lectures/informatics2010/ 1 2 C ATM etc. etc. (Personal Computer) 3 4 Input Output Device Central Processing Unit I/O CPU Memory 5 6 (CPU),,... etc. C, Java, Fortran...

More information

Informatics 2014

Informatics 2014 C 計算機の歴史 手回し計算機 新旧のソロバン バベッジの階差機関 スパコン ENIAC (1946) パソコン 大型汎用計算機 電卓 現在のコンピュータ Input Output Device Central Processing Unit I/O CPU Memory OS (Operating System) OS Windows 78, Vista, XP Windows Mac OS X

More information

第3章 OpenGL の基礎

第3章 OpenGL の基礎 3 OpenGL April 11, 2017 1 / 28 3.1 ( ) OpenGL OpenGL 2 / 28 3.2 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc. 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh

More information

第3章 OpenGL の基礎

第3章 OpenGL の基礎 3 OpenGL April 20, 2012 1 / 23 31 ( ) OpenGL OpenGL 2 / 23 32 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh CAD

More information

Informatics 2015

Informatics 2015 C 計算機の歴史 新旧のソロバン バベッジの階差機関 19C前半 手回し計算機 19C後半 20C後半 スパコン 1960年代 ENIAC (1946) 大型汎用計算機 1950年代 1980年代 電卓 1964 パソコン 1970年代 現在のコンピュータ Input Output Device Central Processing Unit I/O CPU Memory OS (Operating

More information

untitled

untitled 2004/12/21 2/2 (11/16) DT-MRI (11/30) /OpenGL 12/7 12/14 (12/21) 1/11 (1/18) OpenGL ~ ~ OpenGL Silicon Graphics, OpenGL ~ ~ OpenGL OpenGL Utility Library (GLU) OpenGL. OpenGL. OpenGL Utility Toolkit (GLUT)

More information

( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h>

( ) 1 1: 1 #include <s t d i o. h> 2 #include <GL/ g l u t. h> 3 #include <math. h> 4 #include <s t d l i b. h> 5 #include <time. h> 2007 12 5 1 2 2.1 ( ) 1 1: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define H WIN 400 // 8 #define W WIN 300 // 9

More information

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO

(300, 150) 120 getchar() HgBox(x, y, w, h) (x, y), w, h #include <stdio.h> #include <handy.h> int main(void) { int i; double w, h; } HgO Handy Graphic for Handy Graphic Version 0.5 2008-06-09 1 Handy Graphic Handy Graphic C Handy Graphic Handy Graphic Mac OS X Handy Graphic HgDisplayer Handy Graphic HgDisplayer 2 Handy Graphic 1 Handy Graphic

More information

libaux.dvi

libaux.dvi AUX OpenGL 1 OpenGL (AUX libaux.a) OpenGL Programming Guide () OpenGL 1 OpenGL OS (API) OS OS OS OpenGL Windows Windows X X OpenGL Programming Guide AUX toolkit AUX OS OpenGL SGI OpenGL OS OpenGL AUX Windows

More information

謗域・ュ逕ィppt

謗域・ュ逕ィppt 情報工学 2017 年度後期第 5 回 [11 月 1 日 ] 静岡大学 工学研究科機械工学専攻ロボット 計測情報講座創造科学技術大学院情報科学専攻 三浦憲二郎 講義日程 第 6 回 11 月 8 日画像処理パート第 1 回 第 7 回 11 月 15 日 CGパート第 6 回 第 8 回 11 月 22 日 CGパート第 7 回 第 9 回 11 月 29 日 CGパート試験 講義アウトライン [11

More information

1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main

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

joho07-1.ppt

joho07-1.ppt 0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*

More information

WebGL OpenGL GLSL Kageyama (Kobe Univ.) Visualization / 57

WebGL OpenGL GLSL Kageyama (Kobe Univ.) Visualization / 57 WebGL 2014.04.15 X021 2014 3 1F Kageyama (Kobe Univ.) Visualization 2014.04.15 1 / 57 WebGL OpenGL GLSL Kageyama (Kobe Univ.) Visualization 2014.04.15 2 / 57 WebGL Kageyama (Kobe Univ.) Visualization 2014.04.15

More information

1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include <stdio.h> class Number Number(); // ~Number(); // void setnumber(float n); float getnumber();

1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include <stdio.h> class Number Number(); // ~Number(); // void setnumber(float n); float getnumber(); : : :0757230G :2008/07/18 2008/08/17 1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include class Number Number(); // ~Number(); // void setnumber(float n); float getnumber(); private: float num; ;

More information

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ }

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ } C 2: A Pedestrian Approach to the C Programming Language 2 2-1 2.1........................... 2-1 2.1.1.............................. 2-1 2.1.2......... 2-4 2.1.3..................................... 2-6

More information

OpenGL GLSL References Kageyama (Kobe Univ.) Visualization / 58

OpenGL GLSL References Kageyama (Kobe Univ.) Visualization / 58 WebGL *1 2013.04.23 *1 X021 2013 LR301 Kageyama (Kobe Univ.) Visualization 2013.04.23 1 / 58 OpenGL GLSL References Kageyama (Kobe Univ.) Visualization 2013.04.23 2 / 58 Kageyama (Kobe Univ.) Visualization

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

x h = (b a)/n [x i, x i+1 ] = [a+i h, a+ (i + 1) h] A(x i ) A(x i ) = h 2 {f(x i) + f(x i+1 ) = h {f(a + i h) + f(a + (i + 1) h), (2) 2 a b n A(x i )

x h = (b a)/n [x i, x i+1 ] = [a+i h, a+ (i + 1) h] A(x i ) A(x i ) = h 2 {f(x i) + f(x i+1 ) = h {f(a + i h) + f(a + (i + 1) h), (2) 2 a b n A(x i ) 1 f(x) a b f(x)dx = n A(x i ) (1) ix [a, b] n i A(x i ) x i 1 f(x) [a, b] n h = (b a)/n y h = (b-a)/n y = f (x) h h a a+h a+2h a+(n-1)h b x 1: 1 x h = (b a)/n [x i, x i+1 ] = [a+i h, a+ (i + 1) h] A(x

More information

2009 2010 2 23 (MHD ) GFV (Galium Field Visualizer) GFV OpenGL GFV GFV GFV 1 1 2 2 2.1.................... 2 2.2................................. 2 2.3...................... 3 3 6 3.1 GFV....................

More information

ex12.dvi

ex12.dvi 1 0. C, char., char, 0,. C, ("),., char str[]="abc" ; str abc.,, str 4. str 3. char str[10]="abc" ;, str 10, str 3., char s[]="abc", t[10] ;, t = s. ASCII, 0x00 0x7F, char., "abc" 3, 1. 1 8 256, 2., 2

More information

DiMP Users Manual Yuichi Tazaki

DiMP Users Manual Yuichi Tazaki DiMP Users Manual Yuichi Tazaki 3 1 5 2 7 2.1............................. 7 2.2........................... 7 3 DiMP 9 3.1............................... 9 3.2........................... 10 3.3...................................

More information

FFTSS Library Version 3.0 User's Guide

FFTSS Library Version 3.0 User's Guide : 19 10 31 FFTSS 3.0 Copyright (C) 2002-2007 The Scalable Software Infrastructure Project, (CREST),,. http://www.ssisc.org/ Contents 1 4 2 (DFT) 4 3 4 3.1 UNIX............................................

More information

#include <stdio.h> 2 #include <stdlib.h> 3 #include <GL/glut.h> 4 Program 1 (OpenGL GameSample001) 5 // 6 static bool KeyUpON = false; // 7 sta

#include <stdio.h> 2 #include <stdlib.h> 3 #include <GL/glut.h> 4 Program 1 (OpenGL GameSample001) 5 // 6 static bool KeyUpON = false; // 7 sta 1 1. 1 #include 2 #include 3 #include 4 Program 1 (OpenGL GameSample001) 5 // 6 static bool KeyUpON = false; // 7 static bool KeyDownON = false; // 8 static bool KeyLeftON

More information

2 : 2008/12/ /01/ G :

2 : 2008/12/ /01/ G : 2 : 2008/12/08 2008/01/16 075730G : 1 project draw main.cpp 1 draw main.cpp /* * main.cpp * draw * * Created by C-T on 08/12/08. * Copyright 2008 MyCompanyName. All rights reserved. * */ #include

More information

1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit)

1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit) GNU MP BNCpack tkouya@cs.sist.ac.jp 2002 9 20 ( ) Linux Conference 2002 1 1 (bit ) ( ) PC WS CPU IEEE754 standard ( 24bit) ( 53bit) 10 2 2 3 4 5768:9:; = %? @BADCEGFH-I:JLKNMNOQP R )TSVU!" # %$ & " #

More information

GLS user s reference 19 8 21 1 3 1.1....................................................... 3 1.2....................................................... 3 1.3.......................................................

More information

ProVisionaire Control V3.0セットアップガイド

ProVisionaire Control V3.0セットアップガイド ProVisionaire Control V3 1 Manual Development Group 2018 Yamaha Corporation JA 2 3 4 5 NOTE 6 7 8 9 q w e r t r t y u y q w u e 10 3. NOTE 1. 2. 11 4. NOTE 5. Tips 12 2. 1. 13 3. 4. Tips 14 5. 1. 2. 3.

More information

PowerPoint Presentation

PowerPoint Presentation p.130 p.198 p.208 2 double weight[num]; double min, max; min = max = weight[0]; for( i= 1; i i < NUM; i++ ) ) if if ( weight[i] > max ) max = weight[i]: if if ( weight[i] < min ) min = weight[i]: weight

More information

C 2 / 21 1 y = x 1.1 lagrange.c 1 / Laglange / 2 #include <stdio.h> 3 #include <math.h> 4 int main() 5 { 6 float x[10], y[10]; 7 float xx, pn, p; 8 in

C 2 / 21 1 y = x 1.1 lagrange.c 1 / Laglange / 2 #include <stdio.h> 3 #include <math.h> 4 int main() 5 { 6 float x[10], y[10]; 7 float xx, pn, p; 8 in C 1 / 21 C 2005 A * 1 2 1.1......................................... 2 1.2 *.......................................... 3 2 4 2.1.............................................. 4 2.2..............................................

More information

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D II 8 2003 11 12 1 6 ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 Daisuke 8 =>. 73 Daisuke 35 Hiroshi 64 Ichiro 87 Junko

More information

1 VisBAR edu H 2 O.....

1 VisBAR edu H 2 O..... VisBAR edu v1.03 ( ) 25 4 22 1 VisBAR edu 1 1.1....................................................... 1 1.2.................................................. 2 2 3 2.1 H 2 O.........................................

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

C言語によるアルゴリズムとデータ構造

C言語によるアルゴリズムとデータ構造 Algorithms and Data Structures in C 4 algorithm List - /* */ #include List - int main(void) { int a, b, c; int max; /* */ Ÿ 3Ÿ 2Ÿ 3 printf(""); printf(""); printf(""); scanf("%d", &a); scanf("%d",

More information

C B

C B C 095707B 2010 6 8 1 LEVE1 2 1.1 LEVEL 1.1................................................ 2 1.1.1 1................................................ 2 1.1.2 1.2..............................................

More information

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL   2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b II 5 (1 2005 5 26 http://www.math.meiji.ac.jp/~mk/syori2-2005/ UNIX (Linux Linux 1 : 2005 http://www.math.meiji.ac.jp/~mk/syori2-2005/jouhousyori2-2005-00/node2. html ( (Linux 1 2 ( ( http://www.meiji.ac.jp/mind/tool/internet-license/

More information

[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±

[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

LiveCode初心者開発入門サンプル

LiveCode初心者開発入門サンプル / About LiveCode 01:... 11 02: Create... 15 set 03:... 21 name title LiveCode 04:... 29 global local width height 05:... 37 Controls Tools Palette Script Editor message handler 06:... 52 RGB 07:... 63

More information

r07.dvi

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

ex01.dvi

ex01.dvi ,. 0. 0.0. C () /******************************* * $Id: ex_0_0.c,v.2 2006-04-0 3:37:00+09 naito Exp $ * * 0. 0.0 *******************************/ #include int main(int argc, char **argv) { double

More information

tuat1.dvi

tuat1.dvi ( 1 ) http://ist.ksc.kwansei.ac.jp/ tutimura/ 2012 6 23 ( 1 ) 1 / 58 C ( 1 ) 2 / 58 2008 9 2002 2005 T E X ptetex3, ptexlive pt E X UTF-8 xdvi-jp 3 ( 1 ) 3 / 58 ( 1 ) 4 / 58 C,... ( 1 ) 5 / 58 6/23( )

More information

ohp07.dvi

ohp07.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 information

( CUDA CUDA CUDA CUDA ( NVIDIA CUDA I

(    CUDA CUDA CUDA CUDA (  NVIDIA CUDA I GPGPU (II) GPGPU CUDA 1 GPGPU CUDA(CUDA Unified Device Architecture) CUDA NVIDIA GPU *1 C/C++ (nvcc) CUDA NVIDIA GPU GPU CUDA CUDA 1 CUDA CUDA 2 CUDA NVIDIA GPU PC Windows Linux MaxOSX CUDA GPU CUDA NVIDIA

More information

XMPによる並列化実装2

XMPによる並列化実装2 2 3 C Fortran Exercise 1 Exercise 2 Serial init.c init.f90 XMP xmp_init.c xmp_init.f90 Serial laplace.c laplace.f90 XMP xmp_laplace.c xmp_laplace.f90 #include int a[10]; program init integer

More information

1 28 6 12 7 1 7.1...................................... 2 7.1.1............................... 2 7.1.2........................... 2 7.2...................................... 3 7.3...................................

More information

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * * 2015 2015 07 30 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) +

More information

BW BW

BW BW Induced Sorting BW 11T2042B 2015 3 23 1 1 1.1................................ 1 1.2................................... 1 2 BW 1 2.1..................................... 2 2.2 BW.................................

More information

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir 13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software 37.1 37.1 Nspire Nspire Nspire 37.1: Student Software 13 2 13 Student Software esc

More information

3.1 stdio.h iostream List.2 using namespace std C printf ( ) %d %f %s %d C++ cout cout List.2 Hello World! cout << float a = 1.2f; int b = 3; cout <<

3.1 stdio.h iostream List.2 using namespace std C printf ( ) %d %f %s %d C++ cout cout List.2 Hello World! cout << float a = 1.2f; int b = 3; cout << C++ C C++ 1 C++ C++ C C++ C C++? C C++ C *.c *.cpp C cpp VC C++ 2 C++ C++ C++ [1], C++,,1999 [2],,,2001 [3], ( )( ),,2001 [4] B.W. /D.M.,, C,,1989 C Web [5], http://kumei.ne.jp/c_lang/ 3 Hello World Hello

More information

CudaWaveField

CudaWaveField CudaWaveField 2012 3 22 2 CudaWaveField Rel 1.0.0 Rel 1.0 CudaWaveField ( cwfl) / cwfl cwfl http://www.laser.ee.kansai-u.ac.jp/wavefieldtools Note Acrobat Reader 3 I CudaWaveField 9 1 11 1.1 CudaWaveField......................

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

/* 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

C C 1 2 1.1........................... 2 1.2........................ 2 1.3 make................................................ 3 1.4....................................... 5 1.4.1 strip................................................

More information

10

10 2: http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp 10 : 0 1 2 n 2 n 0 1 1 0 1 0 0 1 (2) = 105 1 = 8 1 2 8 = 256 0 9 105 i 106 j 256 2 1 #include int main(void)

More information

1 1. Program 1 OpenCV (OpenCV Sample001) 1 /* 2 - > - > - >VC++ 3 ( ) 4 C:\opencv\build\include 5 ( ) 6 C:\opencv\build\x86\vc10\lib 7 - > - > - > - >

1 1. Program 1 OpenCV (OpenCV Sample001) 1 /* 2 - > - > - >VC++ 3 ( ) 4 C:\opencv\build\include 5 ( ) 6 C:\opencv\build\x86\vc10\lib 7 - > - > - > - > 1 1. Program 1 OpenCV (OpenCV Sample001) 1 /* 2 - > - > - >VC++ 3 ( ) 4 C:\opencv\build\include 5 ( ) 6 C:\opencv\build\x86\vc10\lib 7 - > - > - > - > 8 (240 O p e n C V ) 9 opencv_core240d.lib 10 opencv_imgproc240d.lib

More information

G-XML

G-XML G-XML PreSerV for WebG-XML G-XML i 1... 3 1.1 G-XML... 3 1.2... 3 1.3... 4 1.4... 5 2 G-XML... 6 2.1... 6 2.2... 8 2.2.1... 9 2.2.2...13 2.2.3...14 2.2.4...16 2.2.5...16 2.3...17 2.3.2...17 2.3.3...17

More information

r08.dvi

r08.dvi 19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev

More information

‚æ4›ñ

‚æ4›ñ ( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9

More information

OpenGL & GLUTの基本関数の説明

OpenGL & GLUTの基本関数の説明 コンピュータグラフィックス S 演習資料 OpenGL & GLUT の基本関数の説明 1. OpenGL & GLUT 2. GLUT 2.1. GLUT void glutinit( int argc, char ** argv ); glut void glutinitdysplaymode( unsigned int mode ); mode void glutinitwindowsize(

More information

ex01.dvi

ex01.dvi ,. 0. 0.0. C () /******************************* * $Id: ex_0_0.c,v.2 2006-04-0 3:37:00+09 naito Exp $ * * 0. 0.0 *******************************/ #include int main(int argc, char **argv) double

More information

C C UNIX C ( ) 4 1 HTML 1

C C UNIX C ( ) 4 1 HTML 1 C 2007 4 18 C UNIX 1 2 1 1.1 C ( ) 4 1 HTML 1 はじめ mkdir work 作業用ディレクトリーの作成 emacs hoge.c& エディターによりソースプログラム作成 gcc -o fuga hoge.c コンパイルにより機械語に変換 コンパイルエラー./fuga 実行 実行時エラー 完成 1: work hooge.c fuga 1 4 4 1 1.

More information

double float

double float 2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................

More information

ohp08.dvi

ohp08.dvi 19 8 ( ) 2019.4.20 1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: 2 (2) NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( 2) 3 (3) head cur tail head cur prev data

More information

2008 DS T050049

2008 DS T050049 DS T050049. PSP DS DS DS RPG DS OS Windows XP DevkiPro OS DS CPU ARM devkitarm MSYS MinGW MSYS MinGW Unix OS C++ C++ make nds nds DS DS micro SD Card nds DS DS DS nds C Java C++ nds nds DS 2008 DS T050049

More information

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >=

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >= II 14 2018 7 26 : : proen@mm.ics.saitama-u.ac.jp 14,, 8 2 12:00 1 O(1) n O(n) O(log n) O(1) 32 : 1G int 4 250 M 2.5 int 21 2 0 100 0 100 #include #define HASHSIZE 100 /* */ #define NOTFOUND 0

More information

C V C 6 1 6.1.............................. 1 6.......................... 3 6.3..................... 5 6.4 NULL............................. 8 6.5......................... 9 6.6..............................

More information

Microsoft Word - C.....u.K...doc

Microsoft Word - C.....u.K...doc C uwêííôöðöõ Ð C ÔÖÐÖÕ ÐÊÉÌÊ C ÔÖÐÖÕÊ C ÔÖÐÖÕÊ Ç Ê Æ ~ if eíè ~ for ÒÑÒ ÌÆÊÉÉÊ ~ switch ÉeÍÈ ~ while ÒÑÒ ÊÍÍÔÖÐÖÕÊ ~ 1 C ÔÖÐÖÕ ÐÊÉÌÊ uê~ ÏÒÏÑ Ð ÓÏÖ CUI Ô ÑÊ ÏÒÏÑ ÔÖÐÖÕÎ d ÈÍÉÇÊ ÆÒ Ö ÒÐÑÒ ÊÔÎÏÖÎ d ÉÇÍÊ

More information

programmingII2019-v01

programmingII2019-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 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:

[ 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

gnuplot.dvi

gnuplot.dvi gnuplot gnuplot 1 gnuplot exit 2 10 10 2.1 2 plot x plot sin(x) plot [-20:20] sin(x) plot [-20:20][0.5:1] sin(x), x, cos(x) + - * / ** 5 ** plot 2**x y =2 x sin(x) cos(x) exp(x) e x abs(x) log(x) log10(x)

More information

program.dvi

program.dvi 2001.06.19 1 programming semi ver.1.0 2001.06.19 1 GA SA 2 A 2.1 valuename = value value name = valuename # ; Fig. 1 #-----GA parameter popsize = 200 mutation rate = 0.01 crossover rate = 1.0 generation

More information

07-二村幸孝・出口大輔.indd

07-二村幸孝・出口大輔.indd GPU Graphics Processing Units HPC High Performance Computing GPU GPGPU General-Purpose computation on GPU CPU GPU GPU *1 Intel Quad-Core Xeon E5472 3.0 GHz 2 6 MB L2 cache 1600 MHz FSB 80 GFlops 1 nvidia

More information

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 1. 1.1. 1.2. 1 PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 2. 2.1. 2 1 2 C a b N: PC BC c 3C ac b 3 4 a F7 b Y c 6 5 a ctrl+f5) 4 2.2. main 2.3. main 2.4. 3 4 5 6 7 printf printf

More information

I I / 68

I I / 68 2013.07.04 I 2013 3 I 2013.07.04 1 / 68 I 2013.07.04 2 / 68 I 2013.07.04 3 / 68 heat1.f90 heat2.f90 /tmp/130704/heat2.f90 I 2013.07.04 4 / 68 diff heat1.f90 heat2.f90!! heat2. f 9 0! c m > NGRID! c nmax

More information

Microsoft Word - ChoreonoidStartUpGuide.docx

Microsoft Word - ChoreonoidStartUpGuide.docx Choreonoid 1 ... 4... 4... 4... 4... 4... 5... 5 Choreonoid... 6 Choreonoid... 6 Choreonoid... 6 Choreonid... 8 Choreonoid... 9 Choreonoid Windows... 9...9...13 Choreonoid (Linux )... 21 Ubuntu Linux...21

More information

pptx

pptx iphone 2010 8 18 C xkozima@myu.ac.jp C Hello, World! Hello World hello.c! printf( Hello, World!\n );! os> ls! hello.c! os> cc hello.c o hello! os> ls! hello!!hello.c! os>./hello! Hello, World!! os>! os>

More information

5. p.1/37

5. p.1/37 5. taiji@aihara.co.jp p.1/37 dx dt dy dt dz dt = σx + σy = xz + rx y = xy bz σ = 10, b = 8/3, r = 28, x 0 = 10, y 0 = 20, z 0 = 30 t < 10000δt (δt = 0.01) p.2/37 , 1991. Numerical Recipes in C Netlib LAPACK,

More information

05 I I / 56

05 I I / 56 05 I 2015 2015.05.14 I 05 2015.05.14 1 / 56 I 05 2015.05.14 2 / 56 cd mkdir vis01 OK cd vis01 cp /tmp/150514/leibniz.*. I 05 2015.05.14 3 / 56 I 05 2015.05.14 4 / 56 Information visualization Data visualization,

More information

web06.dvi

web06.dvi 73 6 MATLAB MATLAB GUI GUI M copyright c 2004 Tatsuya Kitamura / All rights reserved. 74 6 6.1 GUI MATLAB GUI property Windows MATLAB UNIX MATLAB GUI Graphical User Interface PC Red Hat Linux 5.2J Vine

More information

DOPRI5.dvi

DOPRI5.dvi ODE DOPRI5 ( ) 16 3 31 Runge Kutta Dormand Prince 5(4) [1, pp. 178 179] DOPRI5 http://www.unige.ch/math/folks/hairer/software.html Fortran C C++ [3, pp.51 56] DOPRI5 C cprog.tar % tar xvf cprog.tar cprog/

More information

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç C (3) if else switch AND && OR (NOT)! 1 BMI BMI BMI = 10 4 [kg]) ( [cm]) 2 bmi1.c Input your height[cm]: 173.2 Enter Input your weight[kg]: 60.3 Enter Your BMI is 20.1. 10 4 = 10000.0 1 BMI BMI BMI = 10

More information

謗域・ュ逕ィppt

謗域・ュ逕ィppt 情報工学 212 年度後期第 5 回 [1 月 31 日 ] 静岡大学 創造科学技術大学院情報科学専攻工学部機械工学科計測情報講座 三浦憲二郎 講義日程 第 8 回 11 月 21 日 ( 水 ) CG パート試験 講義アウトライン [1 月 31 日 ] ビジュアル情報処理 1.3.4 投影変換 1.3.5 いろいろな座標系と変換 OpenGL 投影変換 曲線の描画 トロコイド ( 外トロコイドと内トロコイド

More information

1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co

1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co gnuplot 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 information

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* ( 2016 2016 07 28 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF : 11011 N N 0 N N 11 1001 N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) 1100100 (2) 1111011 (3) 1110010 (4) 1001011

More information

WinHPC ppt

WinHPC ppt MPI.NET C# 2 2009 1 20 MPI.NET MPI.NET C# MPI.NET C# MPI MPI.NET 1 1 MPI.NET C# Hello World MPI.NET.NET Framework.NET C# API C# Microsoft.NET java.net (Visual Basic.NET Visual C++) C# class Helloworld

More information

Complex Lab – Operating Systems - Graphical Console

Complex Lab – Operating Systems - Graphical Console Complex Lab Operating Systems Graphical Console Martin Küttler Last assignment Any questions? Any bug reports, whishes, etc.? 1 / 13 We are here Pong Server Paddle Client 1 Paddle Client 2 Memory Management

More information

untitled

untitled 1. 2. 3. 4. 5. 6. 7. Intelligent Electronic Systems Group 4 PC bitmap.bmp (255,0,0)"" p8-2forint.c or p8-2formot.cdl (printf) (R,G,B)=(127,127,0) (R,G,B)=(255,127,0) viewer bitmap.bmp 1616 24bit (R,G,B)

More information

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

Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni 2015 8 1 ( ) Unix 1 *1 Unix Unix Unix Perl, Python *2 Unix 2 PC gnuplot *1 100 10 10 6 10 = 10 7 1 1/3 3 10 7 10 7.5 1 24 3600 = (30 6)(30 + 6) 100 = 86400 1 10 7.5 *2 Perl, Python Python 1 Unix * 3 PC

More information

WebGL Safari WebGL WebGL Safari Kageyama (Kobe Univ.) / 5

WebGL Safari WebGL WebGL   Safari Kageyama (Kobe Univ.) / 5 04 1 2015.05.12 Kageyama (Kobe Univ.) 2015.05.12 1 / 55 WebGL Safari WebGL WebGL http://www.khronos.org/webgl/ http://www.khronos.org/webgl/wiki/demo_repository Safari Kageyama (Kobe Univ.) 2015.05.12

More information

3D グラフィックス処理の一般過程 1. 3D グラフィックス処理の一般過程

3D グラフィックス処理の一般過程 1. 3D グラフィックス処理の一般過程 3. 3D ビューイング 1. 3Dグラフィックス処理の一般過程 2. 射影と射影変換 3. ビューボリュームとクリッピング 4. 陰面処理とデプスバッファ 5. ビューポート変換 6. 3Dグラフィックスを描く 7. モデルビュー変換 3D グラフィックス処理の一般過程 1. 3D グラフィックス処理の一般過程 3D グラフィックス処理の一般過程 1. モデリング変換 座標系の異なる複数のオブジェクトを仮想世界に配置し,

More information

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2 " 2 B R b

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2  2 B R b I 4 003 4 30 1 ASCII ( ) 0 17 0 NUL 16 DLE SP 0 @ P 3 48 64 80 96 11 p 1 SOH 17 DC1! 1 A Q a 33 49 65 81 97 113 q STX 18 DC " B R b 34 50 66 8 98 114 r 3 ETX 19 DC3 # 3 C S c 35 51 67 83 99 115 s 4 EOT

More information

01_OpenMP_osx.indd

01_OpenMP_osx.indd OpenMP* / 1 1... 2 2... 3 3... 5 4... 7 5... 9 5.1... 9 5.2 OpenMP* API... 13 6... 17 7... 19 / 4 1 2 C/C++ OpenMP* 3 Fortran OpenMP* 4 PC 1 1 9.0 Linux* Windows* Xeon Itanium OS 1 2 2 WEB OS OS OS 1 OS

More information

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル Instruction Manual Disk No. RE01 6th Edition: November 1999 (YK) All Rights Reserved, Copyright 1996 Yokogawa Electric Corporation 801234567 9 ABCDEF 1 2 3 4 1 2 3 4 1 2 3 4 1 2

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx

More information

¥Ñ¥Ã¥±¡¼¥¸ Rhpc ¤Î¾õ¶·

¥Ñ¥Ã¥±¡¼¥¸ Rhpc ¤Î¾õ¶· Rhpc COM-ONE 2015 R 27 12 5 1 / 29 1 2 Rhpc 3 forign MPI 4 Windows 5 2 / 29 1 2 Rhpc 3 forign MPI 4 Windows 5 3 / 29 Rhpc, R HPC Rhpc, ( ), snow..., Rhpc worker call Rhpc lapply 4 / 29 1 2 Rhpc 3 forign

More information

9 8 7 (x-1.0)*(x-1.0) *(x-1.0) (a) f(a) (b) f(a) Figure 1: f(a) a =1.0 (1) a 1.0 f(1.0)

9 8 7 (x-1.0)*(x-1.0) *(x-1.0) (a) f(a) (b) f(a) Figure 1: f(a) a =1.0 (1) a 1.0 f(1.0) E-mail: takio-kurita@aist.go.jp 1 ( ) CPU ( ) 2 1. a f(a) =(a 1.0) 2 (1) a ( ) 1(a) f(a) a (1) a f(a) a =2(a 1.0) (2) 2 0 a f(a) a =2(a 1.0) = 0 (3) 1 9 8 7 (x-1.0)*(x-1.0) 6 4 2.0*(x-1.0) 6 2 5 4 0 3-2

More information

cpall.dvi

cpall.dvi 55 7 gnuplot gnuplot Thomas Williams Colin Kelley Unix Windows MacOS gnuplot ( ) ( ) gnuplot gnuplot 7.1 gnuplot gnuplot () PC(Windows MacOS ) gnuplot http://www.gnuplot.info gnuplot 7.2 7.2.1 gnuplot

More information

謗域・ュ逕ィppt

謗域・ュ逕ィppt 情報工学 217 年度後期第 4 回 [1 月 25 日 ] 静岡大学 工学研究科機械工学専攻ロボット 計測情報講座創造科学技術大学院情報科学専攻 三浦憲二郎 ローカル座標系による移動 講義アウトライン [1 月 25 日 ] ビジュアル情報処理 1.3.4 投影変換 1.3.5 いろいろな座標系と変換 OpenGL 投影変換 曲線の描画 トロコイド ( 外トロコイドと内トロコイド ) 頂点変換の手順

More information

P05.ppt

P05.ppt 2 1 list0415.c forfor #include int i, j; for (i = 1; i

More information

1-4 int a; std::cin >> a; std::cout << "a = " << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >>

1-4 int a; std::cin >> a; std::cout << a =  << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >> 1 C++ 1.1 C C++ C++ C C C++ 1.1.1 C printf() scanf() C++ C hello world printf() 1-1 #include printf( "hello world\n" ); C++ 1-2 std::cout

More information