Size: px
Start display at page:

Download ""

Transcription

1 GLSC3D (Ver ) Manual

2

3 GLSC GLSC GLSC3D X Window System OpenGL GLUT GLSC OpenGL GLSC3D GLSC3D GLSC3D GLSC GLSC Fortran GLSC3D (Ver1.x ) (Ver1.x ) GLSC3D MacOS Linux Windows GLSC3D 26 5 GLSC3D g init g init core g cls g init light

4 g init light core g finish g scr color g sleep g capture set, g capture g input state g def scale 2D g def scale 3D g def scale 3D core g sel scale 2D,g sel scale 3D g marker color g marker type g marker size g def marker g sel marker g line color g line width g line type g def line g sel line g area color 2D,g area color 3D g def area 2D,g def area 3D g sel area 2D,g sel area 3D g text color g text font g text font core g def text 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

5 g box 3D g box 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 2D 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 g triangle 3D 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 contln 2D g contln f 2D

6 g bird view 3D g bird view f 3D g isosurface 3D g isosurface f 3D Version Manual GLSC3D 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.2 GLSC C r[i] i ( ) 19 r[i] 21 Free gnuplot > gnuplot gnuplot *1 GLSC google *2 *3 Mathematica, Matlab *4

9 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 * *6

12 12 GLSC 1.3 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 *7 * *9 3 2 *10 AVS 15 Mathematica 20 *11 GLSC3.8 g_contln_3d *12 *13

13 13 OpenGL API * 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 GLSC3D GLSC OpenGL GLSC * 19 (a) GLSC * 20 OpenGL (b) OpenGL GLUT main glutmainloop glutmainloop 3D ( ) OpenGL *14 GLSC3D ( ) *15 *16 *17 *18 OpenGLUT *19 *20

14 14 OpenGL API OpenGL OpenGL GLSC OpenGL GLSC3D GLSC3D GLSC3D GLSC OpenGL GLSC3D OpenGL * 21 GLSC3D 1.4 GLSC3D GLSC3D DrawCone (0, 0, 0) (0, 0, h) r DrawCone * 22 h, r 3D DrawCone DrawCone DrawCone OpenGL glpushmatrix, glpopmatrix, gltranslatef, glrotatef * 23 3D GLSC3D *21 *22 f(x, y) x, y *23 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 * 24 *24 3

16 16 g_sphere_3d g_sphere_3d_core GLSC3D GLSC3D

17 17 2 GLSC GLSC3D GLSC OpenGL(+GLUT) X Window System GLSC3D 0 3 GLSC GLSC3D 2.1 GLSC Fortran GLSC Fortran GLSC3D Fortran GLSC Wrap Fortran C Call Fortran Wrapper OpenGL ( ) 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); /* */ /* */ GLSC

18 18 OpenGL * 25 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 */ 2.2 GLSC3D (Ver1.x ) 2 3 (z ) GLSC GLSC3D α α *25 OpenGL GLSC3D

19 19 α z α z OFF 3D GLSC3D α z OFF * 26 3D α 3D g_finish (a) α (b) α 3 1.x GLSC3D α * (Ver1.x ) Ver2.0 GLSC3D g_init_core g_enable_transparent_out = 1 *26 GLSC3D α z ON α *27 OpenGL

20 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 TEMPORARY_TRIANGLE_BUFFER TEMPORARY_TRIANGLE_BUFFER_SIZE 2 10 * 28 g_init_core TEMPORARY_TRIANGLE_BUFFER_SIZE 4 g_finish 3 3 TRIANGLE_BUFFER g_finish *28

21 21 GLSC3D GLSC 1 4 g_triangle_3d_core g_sphere g_sphere_core int DivideLevel DivideLevel GLSC3D GLSC3D Ver2.2 FreeType * 29 ttf bitmap bitmap libglsc3d.a libglsc3d.a 30MB libglsc3d.a 30MB PC GLSC3D Ver2.1 libglsc3d.a glsc3d.h Ver2.2 (static lib: libglsc3d.a) (shared lib: libglsc3d.dylib or libglsc3d.so) shared lib GLSC3D shared lib static lib shared lib static lib static lib shared lib *29

22 22 Mac libglsc3d.dylib /Users/masakazu/lib/libglsc3d.dylib a.out $: DYLD_LIBRARY_PATH=/Users/masakazu/lib/:${DYLD_LIBRARY_PATH} a.out Linux libglsc3d.so /home/masakazu/lib/libglsc3d.so a.out $: LD_LIBRARY_PATH=/home/masakazu/lib/:${LD_LIBRARY_PATH} a.out Windows libglsc3d.a libglsc3d.dylib * 30 shared static Ver2.1 libglsc3d.dylib libglsc3d.a GLSC3D Software/Manual/mybasicManual/mybasic8.pdf *30 GLSC3D

23 GLSC3D OpenGL, GLUT(FreeGLUT) libpng FreeType, Math OpenGL, GLUT(FreeGLUT) GLSC3D PNG * 31 C Math 500MB Windows MacOS * 32, Linux, UNIX, MacOS MacOS OS * 33 Xcode MacOS Xcode Xcode App Store Xcode Google OpenGL freeglut /Applications/Utilities/ XQuartz XQuartz /usr/x11/ /usr/x11/lib/ /usr/x11/include/ /usr/x11/lib/ libgl.dylib, libglu.dylib, libglut.dylib MacOS /System/Library/Frameworks/ OpenGL.framework GLUT.framework OpenGL+GLUT GLUT.framework FreeGLUT * 34 /usr/x11/lib/ *31 *32 MacOS UNIX * *34 Version

24 24 macports * 35 homebrew * 36 Mesa3D * 37 OpenGL FreeGLUT libpng XQuartz /usr/x11/lib/ Linux Linux Linux debian fedora debian Ubuntu fedora RHEL CentOS OpenGL freeglut, FreeType //debian %sudo apt-cache search freeglut %sudo apt-cache search //fedora %sudo yum search freeglut %sudo yum search freetype freetype freeglut CentOS 6.5 freeglut-devel //debian %sudo apt-get install package //fedora %sudo yum install package package CentOS 6.5 freeglut-devel OpenGL freeglut *35 *36 *37

25 Windows Windows GLSC3D Windows OpenGL GLUT

26 26 4 GLSC3D GLSC3D (libglsc3d.a, libglsc3d.dylib, libglsc3d.so(linux )) (glsc3d.h) 2 GLSC3D.zip GLSC3D Src make $: cd Src $: make Out (libglsc3d.a, libglsc3d.dylib, libglsc3d.so(linux )) (glsc3d.h) /usr/x11r6/lib OpenGL GLUT PNG /usr/x11r6/include Makefile MacOS, Ubuntu, CentOS SampleProgram using makefile make test program $: cd../sampleprogram/using_makefile $: make $:./Run GLSC3D Linux $:./Run_linux GLSC3D SampleProgram/using_glsc3dcommand Make GLSC3D ccg

27 27 (libglsc3d.a, libglsc3d.dylib, libglsc3d.so(linux )) (glsc3d.h) (glsc3d.h) home lib include $: make install $: cp Out/libglsc3d.a Out/libglsc3d.dylib ~/lib/ (mac ) $: cp Out/libglsc3d.a Out/libglsc3d.so ~/lib/ (linux ) $: cp Out/glsc3d.h ~/include/ su /usr/lib /usr/include $: make install_root $: sudo cp Out/libglsc3d.a Out/libglsc3d.dylib /usr/lib/ (mac ) $: sudo cp Out/libglsc3d.a Out/libglsc3d.so /usr/lib/ (linux ) $: sudo cp Out/glsc3d.h /usr/include/

28 28 5 GLSC3D GLSC3D GLSC 3 2 GLSC3D

29 29 #include <...>... #include <glsc3d.h> int main() { g_init(...); // g_def_scale_3d(0,...); //0 g_def_scale_3d(1,...); //1... /****************************************/ /****************************************/ g_cls(); // // g_sel_scale_3d(0); //0 ( 0 ) g_area_color_3d(...); // g_box_3d(...); //3 box... // g_sel_scale_3d(1); //1 ( 1 ) g_area_color_3d(...); // g_sphere_3d(...); //3 sphere... } g_finish(); // return 0; (0.0,0.0)

30 30 g_def_scale GLSC3D g_text_standard _2D _3D 2 3 _2D 2 3 _3D 3 2

31 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 (50,50) G_OFF_SCREEN

32 g init core g init core void g_init_core( const char *WindowName, int width, int height, int pos_x, int pos_y, double r, double g, double b, int g_enable_transparent_out, int TEMPORARY_TRIANGLE_BUFFER_SIZE_out, int TRIANGLE_BUFFER_SIZE_out); WindowName ; G_OFF_SCREEN G_OFF_SCREEN width ; height ; pos_x ; x pos_y ; y r, g, b ; 1 g_enable_transparent_out ; (1) (0) TEMPORARY_TRIANGLE_BUFFER_SIZE_out ; TEMPORARY_TRIANGLE_BUFFER_SIZE 2 10 TRIANGLE_BUFFER_SIZE_out ; TRIANGLE_BUFFER_SIZE 2 20 g init core g init

33 g cls g cls void g_cls(); g cls

34 g init light g init light void g_init_light( int lightnum, double lit_pos_x, double lit_ pos_y, double lit_ pos_z); lightnum ; 0 7 lit_pos ; g init light GPU 8 g init light(0,1,1,1)

35 g init light core g init light core void g_init_light_core( int lightnum, double lit_pos_x, double lit_ pos_y, double lit_ pos_z,); lightnum ; 0 7 lit_pos ; lit_pow ; g init light core g init light

36 g finish g finish void g_finish(); g finish

37 g scr color g scr color void g_scr_color( double r, double g, double b,double a); r,g,b,a ; 0 r,g,b,a 1 g scr color

38 g sleep g sleep void g_sleep( double wait_time); wait_time ; g sleep

39 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

40 g input state g input state G_INPUT_STATE g_input_state( G_KEY_CODE code, int *x, int *y); code ; x,y ; 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

41 41 G input state G_NONE ; G_DOWN ; G_UP ; G_REPEAT ; if(g_input_state( a, NULL, NULL) == 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) { // }

42 g def scale 2D g def scale 2D void g_def_scale_2d( int id, double x_left, double x_right, double y_bottom,double y_top, double x_left_std,double y_top_std, double width_std,double height_std); id ; x_left ; x x_right ; x y_bottom ; y y_top ; y x_left_std ; x y_top_std ; y width_std ; height_std ; g def scale 2D 2

43 g def scale 3D g def scale 3D void g_def_scale_3d( int id, double x_left, double x_right, double y_bottom,double y_top, double z_near,double z_far, double x_left_std,double y_top_std, double width_std,double height_std, double direction_x,double direction_y,double direction_z double r); id ; x_left,x_right,y_bottom,y_top,z_near,z_far ; x,y,z x_left_std ; x y_top_std ; y width_std ; height_std ; direction ; r ; g def scale 3D 3 y

44 44

45 g def scale 3D core g def scale 3D core void g_def_scale_3d_core( int id, double x_left, double x_right, double y_bottom,double y_top, double z_near,double z_far, double x_left_std,double y_top_std, double width_std,double height_std, double direction_x,double direction_y,double direction_z, double r,double up_x, double up_y, double up_z); id ; x_left,x_right,y_bottom,y_top,z_near,z_far ; x,y,z x_left_std ; x y_top_std ; y width_std ; height_std ; direction ; r ; up ; g def scale 3D core 3

46 g sel scale 2D,g sel scale 3D g sel scale 2D,g sel scale 3D void g_sel_scale_2d( int id); void g_sel_scale_3d( int id); id ; g sel scale 2D,g sel scale 3D

47 g marker color g marker color void g_marker_color( double r,double g,double b,double a); r,g,b,a ; 0 r,g,b,a 1 g marker color

48 g marker type g marker type void g_marker_type( double type); type ; 0 =, 1 = g marker type

49 g marker size g marker size void g_marker_size( double size); size ; g marker size

50 g def marker g def marker void g_def_marker( int id, double r, double b, double g, double a, int type, double size); id ; r,g,b,a ; 0 r,g,b,a 1 type ; 0 =, 1 = size ; g def marker

51 g sel marker g sel marker void g_sel_marker( int id); id ; g sel marker

52 g line color g line color void g_line_color( double r,double g,double b,double a); r,g,b,a ; 0 r,g,b,a 1 g line color

53 g line width g line width void g_line_width( size ; double size); g line width 0 1

54 g line type g line type void g_line_type( double type); type ; 0 8 g line type

55 g def line g def line void g_def_line( int id, double r, double b, double g, double a, double size, int type); id ; r,g,b,a ; 0 r,g,b,a 1 size ; type ; 0 8 g def line

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

57 g area color 2D,g area color 3D g area color 2D,g area color 3D void g_area_color_2d( double r,double g,double b,double a); void g_area_color_3d( double r,double g,double b,double a); r,g,b,a ; 0 r,g,b,a 1 g area color 2D,g area color 3D

58 g def area 2D,g def area 3D g def area 2D,g def area 3D void g_def_area_2d( int id, double r, double b, double g, double a); void g_def_area_3d( int id, double r, double b, double g, double a); id ; r,g,b,a ; 0 r,g,b,a 1 g def area 2D,g def area 3D

59 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

60 g text color g text color void g_line_color( double r,double g,double b,double a); r,g,b,a ; 0 r,g,b,a 1 g text color

61 g text font g text font void g_text_font( int id, unsigned int font_size); font ; font_size ; ( ) g text font 0 3 ( )

62 g text font core g text font core void g_text_font_core( const char *font_type, unsigned int font_size); const char *font_type ; ttf(true Type Font), otf(open Type Font) font_size ; ( ) g text font core ( ) g text font

63 g def text g def text void g_def_text( int id, double r,double g,double b,double a, int font, unsigned int font_size); id ; r,g,b,a ; 0 r,g,b,a 1 font ; 0 3 font_size ; g def text

64 g sel text g sel text void g_sel_text( int id); id ; g sel text

65 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

66 g text standard g text standard void g_text_standard( double x, double y, const char *str); x,y ; str ; g text standard

67 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

68 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

69 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,double y, double width,double height, G_WIREFILL WireFill); x,y ; width,height ; WireFill ; 1 0 g box 2D

71 g box 3D g box 3D void g_box_3d( double x,double y,double z, double width,double height,double depth); x,y,z ; width,height,depth ; g box 3D

72 g box 3D core g box 3D core void g_box_3d( double x, double y, double z, double width, double height, double depth, int DivideLevel, G_WIREFILL WireFill); x,y,z ; width,height,depth ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g box 3D core ( )

73 73

74 g sphere 3D g sphere 3D void g_sphere_3d( double x,double y,double z, double radius); x,y,z ; radius ; g sphere 3D

75 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_WIREFILL WireFill); x,y,z ; radius ; FaceNumberLevel ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g sphere 3D core

76 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, int FaceNumberLevel, int DivideLevel, G_WIREFILL WireFill); x,y,z ; Sx,Sy,Sz ; x,y,z direction ; g ellipse 3D

77 g ellipse 3D core g ellipse 3D core 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); x,y,z ; Sx,Sy,Sz ; x,y,z direction ; FaceNumberLevel ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g ellipse 3D core

78 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); center ; direction ; radius ; height ; psi ; direction N ; g prism 3D

79 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_WIREFILL WireFill); center ; direction ; radius ; height ; psi ; direction N ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g prism 3D core

80 80

81 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); center ; direction ; radius ; height ; psi ; direction g cylinder 3D

82 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_WIREFILL WireFill); center ; direction ; radius ; height ; psi ; direction N ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g cylinder 3D core

83 83

84 g cone 2D g cone 2D void g_cone_2d( double center_x,double center_ y, double direction_x,double direction_ y, double radius,double head_size,int type); center ; direction ; radius ; head_size ; type ; 0 2 g cone 2D

85 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); center ; direction ; radius ; head_size ; g cone 3D

86 86

87 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 FaceNumberLevel_X, int FaceNumberLevel_Y, int DivideLevel, G_WIREFILL Wi center ; direction ; radius ; head_size ; FaceNumberLevel ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g cone 3D core

88 88

89 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); center ; direction ; radius ; head_size ; psi ; direction N ; g pyramid 3D

90 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_WIREFILL WireFill); center ; direction ; radius ; head_size ; psi ; direction N ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g pyramid 3D core

91 91

92 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

93 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); base ; direction ; arrow_size ; head_size ; g arrow 3D

94 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 FaceNumberLevel_X, int FaceNumberLevel_Y, int DivideLevel, G_WIREFILL WireFill); base ; direction ; arrow_size ; head_size ; FaceNumberLevel ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g arrow 3D core

95 95

96 g triangle 2D g triangle 2D void g_triangle_2d( double x0,double y0, double x1,double y1, double x2,double y2, G_WIREFILL WireFill); x,y ; WireFill ; G_WIRE:, G_FILL: g triangle 2D

97 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_WIREFILL WireFill); x,y ; WireFill ; G_WIRE:, G_FILL: g triangle 3D

98 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_WIREFILL WireFill); x,y ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g triangle 3D core

99 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_WIREFILL WireFill); center ; direction ; radius ; angle ; WireFill ; G_WIRE:, G_FILL: g fan 2D

100 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_WIREFILL WireFill); center ; direction ; radius ; angle ; psi ; direction WireFill ; G_WIRE:, G_FILL: g fan 3D

101 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_WIREFILL WireFill); center ; direction ; radius ; angle ; psi ; direction FaceNumberLevel ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g fan 3D core

102 102

103 g circle 2D g circle 2D void g_circle_2d( double center_x,double center_ y, double radius,g_wirefill WireFill); center ; radius ; WireFill ; G_WIRE:, G_FILL: g circle 2D

104 g circle 3D g circle 3D void g_circle_3d( double center_x,double center_ y, double radius,double theta,double phi); center ; radius ; psi ; theta ; g circle 3D

105 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_WIREFILL WireFill); center ; radius ; psi ; theta ; N ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g circle 3D core

106 106

107 g polygon 2D g polygon 2D void g_polygon_2d( double *xx,double *yy, int n,g_wirefill WireFill); xx,yy ; n ; WireFill ; G_WIRE:, G_FILL: g polygon 2D

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

109 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

110 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); center ; direction ; width,height,depth ; g rectangle 3D

111 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_WIREFILL WireFill); center ; direction ; width,height,depth ; DivideLevel ; 4 DivideLevel WireFill ; G_WIRE:, G_FILL: g rectangle 3D core

112 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

113 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 * c++

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

115 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 * c++

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

117 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_WIREFILL WireFill); x,y,z ; number ; u u ; * WireFill ; G_WIRE:, G_FILL: g bird view 3D 2 u y_top=y_bottom y 2 * c++

118 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_WIREFILL WireFill); x,y,z ; number ; u u ;1 2 * WireFill ; G_WIRE:, G_FILL: g bird view f 3D 1 u y_top=y_bottom y 2 *

119 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 * c++

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

121 121

122 122 6 GLSC3D GLSC3D GLUT(FreeGLUT) freeglut freeglut FreeGLUT

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

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

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

126 x GLSC3D version

127 127 8 GLSC3D gnuplot OpenGL 3D * 38 *38 akiyama@es.hokudai.ac.jp

128 Src TestProgram 9.2 Manual Manual Canvas.key Figures eps jpg2epsconverter 9.3 GLSC3D GLSC3D FreeGLUT GLSC3D FreeGLUT FreeGLUT Ver2.8.1 FreeGLUT GLFW ( ) FreeGLUT 9.4 GLSC3D C

129 129 C C FORTRAN! C C 9.5 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 9.6 GLSC3D 1. G_POSITION G_COLOR G_MATERIAL G_VERTEX 2. G_VERTEX G_TRIANGLE 3. G_TRIANGLE g_set_triangle

130 130 g_triangle_3d 9.7 glsc3d private.h G_VECTOR G_POSITION G_VECTOR w=1 G_DIRECTION G_VECTOR w=0 g_plus, g_minus w G_VECTOR g_multi w G_VECTOR G_POSITION glsc3d private.h 1,2 9.8 Future Works 1. Ver2.2! Ver2.1! 5. g_def_scale 6. triangle buffer 7. g_off_screen.c/g_init_off_screen_rendering 8. C 9. OpenGL OpenGL glshadersource GLSL

131 /4/14 freeglut freeglut ERROR: No display callback registered for window 1 freeglut 11. OpenGL freglut (2016/4/14)

GLSC3D (Ver. 3.0.0) Manual (Ver. 2.2.1 ) 1 2 3, 2, 3 (Ver. 2.2.1 ) 2017 8 1 3 1 8 1.1 GLSC.................................. 8 1.2 GLSC................................. 9 1.3 GLSC3D................................

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

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

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

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

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

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

(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

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

3.2 Linux root vi(vim) vi emacs emacs 4 Linux Kernel Linux Git 4.1 Git Git Linux Linux Linus Fedora root yum install global(debian Ubuntu apt-get inst

3.2 Linux root vi(vim) vi emacs emacs 4 Linux Kernel Linux Git 4.1 Git Git Linux Linux Linus Fedora root yum install global(debian Ubuntu apt-get inst 1 OS Linux OS OS Linux Kernel 900 1000 IPA( :http://www.ipa.go.jp/) 8 12 ( ) 16 ( ) 4 5 22 60 2 3 6 Linux Linux 2 LKML 3 3.1 Linux Fedora 13 Ubuntu Fedora CentOS 3.2 Linux root vi(vim) vi emacs emacs 4

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

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

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

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

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

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

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

資料

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

#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

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

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

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

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

untitled

untitled R (1) R & R 1. R Ver. 2.15.3 Windows R Mac OS X R Linux R 2. R R 2 Windows R CRAN http://cran.md.tsukuba.ac.jp/bin/windows/base/ R-2.15.3-win.exe http://cran.md.tsukuba.ac.jp/bin/windows/base/old/ 3 R-2.15.3-win.exe

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

C

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

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

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License LAN 2014 3 19 Copyright c 1993 2014 Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License. 1 2 1.1................................... 2 1.2.........................

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

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

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

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

( 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

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

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

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

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

Debian での数学ことはじめ。 - gnuplot, Octave, R 入門

Debian での数学ことはじめ。 - gnuplot, Octave, R 入門 .... Debian gnuplot, Octave, R mkouhei@debian.or.jp IRC nick: mkouhei 2009 11 14 OOo OS diff git diff --binary gnuplot GNU Octave GNU R gnuplot LaTeX GNU Octave gnuplot MATLAB 1 GNU R 1 MATLAB (clone)

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

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

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

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

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

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

大統一Debian勉強会 gdb+python拡張を使ったデバッグ手法

大統一Debian勉強会 gdb+python拡張を使ったデバッグ手法 Debian 2013 gdb+python nozzy@debian.or.jp 2013 6 29 Level Debian Up Debian Debian debian sid unstable Debian debian sid unstable *-dbg Debian debian sid unstable *-dbg gdb Debian debian sid unstable *-dbg

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

untitled

untitled II 4 Yacc Lex 2005 : 0 1 Yacc 20 Lex 1 20 traverse 1 %% 2 [0-9]+ { yylval.val = atoi((char*)yytext); return NUM; 3 "+" { return + ; 4 "*" { return * ; 5 "-" { return - ; 6 "/" { return / ; 7 [ \t] { /*

More information

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

(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

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

[ 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

8 / 0 1 i++ i 1 i-- i C !!! C 2

8 / 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 information

AutoTuned-RB

AutoTuned-RB ABCLib Working Notes No.10 AutoTuned-RB Version 1.00 AutoTuned-RB AutoTuned-RB RB_DGEMM RB_DGEMM ( TransA, TransB, M, N, K, a, A, lda, B, ldb, b, C, ldc ) L3BLAS DGEMM (C a Trans(A) Trans(B) b C) (1) TransA:

More information

course pptx

course pptx ParaView () 20105141CAE OPENFOAM (R) is a registered trade mark of OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM (R) and OpenCFD (R) trade marks. This offering is not

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

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

para02-2.dvi

para02-2.dvi 2002 2 2002 4 23 : MPI MPI 1 MPI MPI(Message Passing Interface) MPI UNIX Windows Machintosh OS, MPI 2 1 1 2 2.1 1 1 1 1 1 1 Fig. 1 A B C F Fig. 2 A B F Fig. 1 1 1 Fig. 2 2.2 Fig. 3 1 . Fig. 4 Fig. 3 Fig.

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

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

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

新・明解C言語 ポインタ完全攻略

新・明解C言語 ポインタ完全攻略 2 1-1 1-1 /* 1-1 */ 1 int n = 100; int *p = &n; printf(" n %d\n", n); /* n int */ printf("*&n %d\n", *&n); /* *&n int */ printf(" p %p\n", p); /* p int * */ printf("&*p %p\n", &*p); /* &*p int * */ printf("sizeof(n)

More information

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

¥×¥í¥°¥é¥ß¥ó¥°±é½¬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 information

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology I117 8 1 School of Information Science, Japan Advanced Institute of Science and Technology : CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and

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

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

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l C/C++ 2007 6 18 1 C STL(1) 2 1.1............................................... 2 1.2 stdio................................................ 3 1.3.......................................... 10 2 11 2.1 sizeof......................................

More information

P05.ppt

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

More information

Java学習教材

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

More information

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

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

2 I I / 61

2 I I / 61 2 I 2017.07.13 I 2 2017.07.13 1 / 61 I 2 2017.07.13 2 / 61 I 2 2017.07.13 3 / 61 7/13 2 7/20 I 7/27 II I 2 2017.07.13 4 / 61 π-computer gnuplot MobaXterm Wiki PC X11 DISPLAY I 2 2017.07.13 5 / 61 Mac 1.

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

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

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player   jp/download/player/ URL VMware Plaeyr VMware 1 2010 k-okada@jsk.t.u-tokyo.ac.jp http://www.jsk.t.u-tokyo.ac.jp/~k-okada/lecture/ 2010 4 5 Linux 1 Ubuntu Ubuntu Linux 1 Ubuntu Ubuntu 3 1. 1 Ubuntu 2. OS Ubuntu OS 3. OS Ubuntu https://wiki.ubuntulinux.jp/ubuntutips/install/installdualboot

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

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

ARM gcc Kunihiko IMAI 2009 1 11 ARM gcc 1 2 2 2 3 3 4 3 4.1................................. 3 4.2............................................ 4 4.3........................................

More information

2 1 Web Java Android Java 1.2 6) Java Java 7) 6) Java Java (Swing, JavaFX) (JDBC) 7) OS 1.3 Java Java

2 1 Web Java Android Java 1.2 6) Java Java 7) 6) Java Java (Swing, JavaFX) (JDBC) 7) OS 1.3 Java Java 1 Java Java 1.1 Java 1) 2) 3) Java OS Java 1.3 4) Java Web Start Web / 5) Java C C++ Java JSP(Java Server Pages) 1) OS 2) 3) 4) Java Write Once, Run Anywhere 5) Java Web Java 2 1 Web Java Android Java

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

2017 p vs. TDGL 4 Metropolis Monte Carlo equation of continuity s( r, t) t + J( r, t) = 0 (79) J s flux (67) J (79) J( r, t) = k δf δs s( r,

2017 p vs. TDGL 4 Metropolis Monte Carlo equation of continuity s( r, t) t + J( r, t) = 0 (79) J s flux (67) J (79) J( r, t) = k δf δs s( r, 27 p. 47 7 7. vs. TDGL 4 Metropolis Monte Carlo equation of continuity s( r, t) t + J( r, t) = (79) J s flux (67) J (79) J( r, t) = k δf δs s( r, t) t = k δf δs (59) TDGL (8) (8) k s t = [ T s s 3 + ξ

More information

Ansible

Ansible Ansible 2014 8 2014 8 1 1 3 1.1 Ansible..................................... 4 1.2 Ansible................................... 7 1.3 Chef Puppet... 7 1.4 Ansible Better Shell Script.............................

More information

double 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( "data.t

double 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( data.t C++ 1 C C++ C++ C C C++ 1.1 C printf() scanf() C++ C 1-1 #include int a; scanf( "%d", &a ); printf( "a = %d\n", a ); C++ 1-2 int a; std::cin >> a; std::cout

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

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

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

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

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

Happy Link LAN ------------------------------------------------------------------------------------------------------------ 3 -------------------------------------------------------------------------------------------------------

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

2 A I / 58

2 A I / 58 2 A 2018.07.12 I 2 2018.07.12 1 / 58 I 2 2018.07.12 2 / 58 π-computer gnuplot 5/31 1 π-computer -X ssh π-computer gnuplot I 2 2018.07.12 3 / 58 gnuplot> gnuplot> plot sin(x) I 2 2018.07.12 4 / 58 cp -r

More information

joho09.ppt

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

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

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