§Ö³t¤Jªù
±Ò°Ê VMWare Player ¨Ó¼½©ñ¹w¥ýÄé¦nªº Linux §@·~¨t²Î¤§µêÀÀ¾÷¾¹¡C
±q Windows ªº¶}©l
¨ä¤¤ªº ¡A
§ä´M VM Ware ¥Ø¿ý¡AÂI¿ïùرªº VMware Player
¦pªG¬O³Ìªñ¦³¨Ï¥Î¹L VMware Player¡A«h¤]¥i¥Hª½±µ±q ¶}©l ªº ¿ï³æ¤¤°_°Ê
¶}±Ò VMware Player ¤§«á¡A·|¸ß°ÝµêÀÀ¾÷¾¹ªº¼v¹³³]©wÀɦb¨ºùØ
¿ï¦n«á«ö [¶}±Ò]¡A«h·|³ê¿ôµêÀÀ¾÷¾¹¡]¦pªG«e¤@¦¸¦b¨Ï¥Î«á¬O°µ¥ð¯vªº°Ê§@ªº¸Ü¡^¡A¦^´_¨ì¤§«e¨Ï¥Î¤§ª¬ºAªº³Ì«áµe±¡C
¦pªG«e¤@¦¸¬OµêÀÀ¾÷¾¹ªºÃö¾÷¡A«h¬O§¹¥þ¬Û¦ü©ó¤@¯ë¹q¸£¶}¾÷ªºµe±
µn¤J¨t²Î¡]Y¤wµn¤J«h¥i¸õ¹L¡^
¶}¾÷°T®§¶]§¹¤§«á¡A·|¶i¤J UNIX ¤§ X-µøµ¡ªº¹Ï§Îµn¤J¤¶±
¥H student ¬°±b¸¹¨Ã¥H student ¬°±K½X¨Óµn¤J
±K½X±µ¨ü«á¡A·|ªá¤@¨Ç®É¶¡§@¸ü¤Jªº°Ê§@¡A
µM«á¶i¤J X-window ®à±Àô¹Ò
¶}±Ò¤@Ӳ׺ݾ÷µøµ¡
¦A¤U¤@¨B¡A§ÚÌ´Nn¶}±Ò¤@Ӳ׺ݾ÷µøµ¡¡A¨ä¹ê¥¦ªº±¶®|¤v¸g¦b®à±¥H¤Î¤W±Æ menu bar ³£¦³¤F¡]¬Ý°_¨Ó¹³¤@ӿùõªº¹Ï¥Ü¡^¡A¦Ü¤Ö³Ì¼Ð·Çªº¤èªk¡A¬O±qÀ³¥Îµ{¦¡¿ï³æ¤W¥h¿ï
½Ðª`·N¡A¦b Fedora 11 ª©¥»ªº Linux ®à±¡A²×ºÝ¾÷¬O¦¬¦b "À³¥Îµ{¦¡" Ãþªº "¨t²Î¤u¨ã" ¤§¤º¡C
¦p¦¹¡A´N·|¦³¤@Ӳ׺ݾ÷µøµ¡³Q¶}°_¨Ó
·Æ¹«´å¼Ðn±q VM ¤¤¸õ¥X¨Ó¦^¨ì Windows ®à±ªºÀô¹Ò¡A«h¦P®É«ö Ctrl ¤Î Alt ¨âÓÁä¡A¨Æ¹ê¤W¦b VM Player ªº°T®§Äæ¡]¥ª¤U¨¤¡^¤]·|¦³´£¥Ü¡C
¦b¾Þ§@¹Lµ{¤¤ªº¥ô¦ó¶¥¬q°±¤îµêÀÀ¾÷¾¹ªº¤èªk¡A
¥Î UNIX «ü¥O "ls" ¨Ó¬d¬Ý¥Ø«e¥Ø¿ý¤UªºÀÉ®×
ls ¡]¦C¥X¥Ø«e¥Ø¿ý¤UªºÀɮשΤl¥Ø¿ý¦WºÙ¡^
ls -l ¡]¥H¸ûªø¤§°T®§¡A ¦C¥X¥Ø«e¥Ø¿ý¤UªºÀɮשΤl¥Ø¿ý¦WºÙ¡Aª`·N ls »P -l ¤§¶¡¦³ªÅ®æ¡^
pwd¡]¦L¥X¥Ø«e¤u§@¥Ø¿ý present working directory¡^
cd "¥Ø¿ý¦WºÙ" ¡]Åܧó¥Ø¿ý¦ì¸m¡A¶i¤J¨ì "¥Ø¿ý¦WºÙ" ªº¥Ø¿ý¤§¤º¡^
¶]¤@¤U¹q¸£¼ÒÀÀ½d¨Òµ{¦¡ªº¥i°õ¦æÀÉ
¦b²×ºÝ¾÷µøµ¡¤U¡A¥ý¥´ cd ½T¹ê¦^¨ì¨Ï¥ÎªÌ home ¥Ø¿ý¡A¤U ls ¥i¨£ Desktop »P examples ¨âӥؿý¡C¥´ cd examples ¶i¤J examples ¥Ø¿ý¡A¥i¥Î pwd ¦L¥X¥Ø«e¥Ø¿ý¥H¨Ñ½T»{¡AµM«á¥´ ls ¬Ý³oӥؿý¤U¦³¤°»òÀÉ®×
¦pªG§A¨Ï¥Îªº¬O Fedora 11¡A¦Ó¦b¨Ï¥ÎªÌ¥Ø¿ý¤§¤U¨S¦³ staticel.x ÀÉ®× ªº¸Ü¡A ¥i¥Ñ³sµ²½Ð¤U¸ü staticel.x ¡A©Î½Ð¨Ï¥ÎÂsÄý¾¹¡]¦b³Ì¤W¤@±Æ¨ºÓ¦³¦a²y»P·Æ¹«ªº¹Ï¥Ü¡^¨Ó¤U¸ü¦¹¤@³sµ² new_fieldline.f ran3.f¡]«ö·Æ¹«¥kÁä¥t¦s·sÀÉ¡A¹w³]ªº¦s©ñ¦ì¸m¦b "¤U¸ü" ¥Ø¿ý¤U¡C§A¦pªG¤£·|¥Î Fedora 11 ªº¤¤¤å¿é¤J¡AÁÙ¬O¥i¥H¥Î·Æ¹«¥kÁä·Æ°Ê¨Ó¼Ð«G«þ¨©¤å¦r¥H¤Î«ö·Æ¹«¤¤Áä¶K¤W¤å¦r¡C¡^cd ¤U¸ü¡A¨Ã¥Î ls ½T©w¨âÓÀɮתº½T¬O¦b¥Ø¿ý¤§¤U ¡A¦A¥´
gfortran fieldline.f ran3.f -L /usr/local/pgplot -lpgplot -lX11
ª`·N¡G¦¹³Bªº -L »P -l ¤§¤j¤p¼g¤£¦P¡A¦Ó¥B -l «á±¨S¦³ªÅ®æ¡A³Ì«á -lX11 ¤¤ªº X11 ¬O¥Ñ^¤å¦r¥À¤j¼g X ¤Î¼Æ¦r 11 ©Òºc¦¨¡C
µM«á¥´ ./a.out «á«öÁä½L¤Wªº <Enter> Áä
§A·|¬Ý¨ì staticel.x ³oÓÀɮס]ºñ¦âÅã¥Ü¥¦¬O¤@Ó°õ¦æÀÉ¡A¦ý³oºØÃC¦â°Ï¤À¨Ã«D©Ò¦³ UNIX ²×ºÝ¾÷¬Ò³q¥Î¡^¡A¥´ ./staticel.x ¨Ã«ö Enter Áä¡A¹q¤O½u¼ÒÀÀ´N·|¶}©l
§â¹q¤O½u®i¥Ü¹ÏÃö±¼ªº¤èªk¡A¬O¥ýÂI¿ï terminal ¤WÃä®Ø¨Ï¨ä¦^¨ì³Ì¤W¼hÅã¥Ü¡A¦p¤U
¦A¦P®É«ö¤U Ctrl »P c §â¹Ï§Î®i¥Üµ{¦¡ staticel.x ¤¤Â_¡C
¥Î vi ¤À§O¶}±Ò´XÓ½d¨ÒÀɮרÓÀ˵ø¨ä¤º®e¡A ¤@¦¸¬Ý¤@¶¡A¨Ã¾Ç²ß¤£§ó°Ê¦Ó¦w¥þ°h¥X¤§¤èªk
¡]·í³õÁ¿¸Ñ»P½m²ß¡^
¶i¤J vi »P°h¥X vi ªº¤èªk¡G¶i¤J¬O¥´ vi "ÀɦW"¡A Àɮצs¦b´NÅã¥Ü¡A¤£¦s¦b´N·s«Ø¡Fn°h¥X vi¡A¬O«ö ESC ¸õ²æ¥X¥´¦r¾÷¼Ò¦¡¦Ó¤J½s¿è©R¥O¼Ò¦¡¡]·|¦A¸Ô²ÓÁ¿¡^¡A¥´«_¸¹»P q ¦p":q"¡A¥i¤£×§ï°h¥X¡CYÂsÄý¹Lµ{¤¤¦³¤£·V¥´¤J½s¿è«ü¥O¡A«h¦b ":q" ®É vi ·|´£¿ô§A©|¥¼¶J¦s¡A«h§A¥²¶·¥´ "q!" ±j¨î©ñ±óקï°h¥X¡C
YÀɮ׬O¤°»ò¦r¤¸³£¨S¦³¡A«h¿Ã¹õ¥ª¦C¥Ñ ~ ¦ûº¡¡A¥Nªí¨ºùبƹê¤W¬O¨S¦³¦r¤¸ªº¡C
«ö Ctrl »P f ¬Ý¤U¤@¶¡BCtrl »P b ¬Ý¤W¤@¶¡C
Ãö©ó vi ªº¶i¤@¨B¸ê°T½Ð¨£§Ú¥t¤@Óºô¶
¥Î vi ¼g¤@¡B¨âӳ̲³æªºµ{¦¡¡A¶¶«K¾Ç¥Î vi ªº³Ì°ò¥»«ü¥O
¡]·í³õÁ¿¸Ñ»P½m²ß¡^
Ãö©ó vi ªº¶i¤@¨B¸ê°T½Ð¨£§Ú¥t¤@Óºô¶¡AFortran ¨â¤p®É§Ö³t¤Jªù«h¬Ý³oùØ¡C
Y·Q¦h¬Ý´XÓ Fortran µ{¦¡½d¨Ò¡A¥i°Ñ¦Ò§Ú©Ò½s¼gªº Fortran °ò¥»¹ê¤OŲ©w¡C
©Î¬O¡Aª½±µ¤@¨B¤@¨BÄ~Äò¸òµÛ¤U¦Cªº±Ð¾Ç¡G
¥H¤U¨Ó¬Ý´XÓ Fortran (Fortran 77) µ{¦¡¡G
¦b UNIX (Linux) ¤Uªº Fortran µ{¦¡¡A¤@©wn©R¦W¦¨ ####.f ³oºØ©µ¦ùÀɦW¬O .f ªº¦WºÙ¡A½sĶ¾¹¤~·|±µ¨ü¡C§A¥i¥H¥Î vi ½s¿è¾¹¥´ vi test.f <Enter> ¨Ó½m²ß¿é¤J¥H¤Uªº½d¨Òµ{¦¡¨Ã½sĶ¡C
Yn¶i¤@¨Bª¾¹D Fortran ªº»yªk¡A¥i°Ñ¨£§Ú©Ò¼gªº " Fortran ¨â¤p®É§Ö³t¤Jªù"¡A³sµ²¦b ³oùØ¡C
³Ì²³æªº¡A¬O©w¸q¤Fµ{¦¡¡A¦ý¤°»ò¤]³]°µ¡]ª`·N±q²Ä¤C®æ¶}©l¼g«ü¥O¡A²Ä¤»®æn«O¯dµ¹©µ¦ù²Å¸¹¥Î¡^¡A¹³¤U¦Ó³oÓ½d¨Ò¡G¡]¤S¡AFortran »y¨¥¤¤¤j¤p¼g¬O¤£¤Àªº¡^ ¡]¥t¥~¡A¦h¥[¤J¨ÇªÅ¦æ¦b¨ä¤¤¤]¨S¦³¼vÅT¡^
program empty
end
¤@¼Ë¬O¤°»ò¨Æ±¡³£¤£°µ¡A¦h¼g¤FÓµù¸Ñ¡C¥ô¤@¦æªº²Ä¤@®æ¥´ c¡]§Y comment ¤§·N¡^¡A«h¸Ó¦æ¾ãÓ·í§@µù¸Ñ¡A§¹¥þ»Pµ{¦¡«ü¥OµLÃö
program empty
c This program does nothing, and this is a comment line.
end
«Ü¦hµ{¦¡®Ñªº¤Jªù¤¶²Ð³£¬O±Ð¤H®a¼g¤@Ó¦L¥X "Hello, world." ªº¸Ü¨ì¿Ã¹õ¤W¡A¦b Fortran ªº¼gªk¬O¹³¤U¨Ò³o¼Ë¡G
program hello_world
write(*,*) 'Hello, world!'
end
³oªí¥Ü Fortran ¬O¥Î write ¨Ó¦rªF¦è¡A¦Ó«á±ªº (*,*) ¥Nªí "¡] ¿é¥X¨ì¹w³]¸Ë¸m¡A¥H¹w³]®æ¦¡¬°¤§ ¡^"¡C
½Ð¥Î vi hello.f <Enter> ªº¤èªk¥Î vi ¨Ó¼¶¼g¡]§â¤W±¤T¦æ¥´¤J¡^
µ{¦¡¼g¦n¤F¥H«á¡An¥´ gfortran hello.f <Enter> ¨Ó²£¥Í¥i°õ¦æÀÉ a.out ¡C
¥´ ./a.out <Enter> ´N·|¬Ý¨ì¿Ã¹õ¤WÅã¥Ü¡]½ÐÅçÃҬݬݡ^
Hello, world!
¦A¨Ó¬Ý¤@Ó¯à§@pºâ 1 + 2 + 3 + ... + 10 ªºµ{¦¡¡Aª`·N¨Ï¥ÎÅܼÆn«Å§i¡]«Å§i¨ä¬°¹ê¼Æ real ©Î¾ã¼Æ integer¡^¡A¨Ã¥B a = b + c ¦bµ{¦¡¤¤¥Nªí§â b ¥[ c ªºµ²ªG©ñ¤J a¡A¦Ó¤£¬O¼Æ¾Ç¤¤¤§«íµ¥¦¡¨ººØ·N«ä¡]nÂIªº¦a¤è¤w¼Ð¤FÂŦâ¡^¡A
program add_from_one_to_ten
c This is a program that will do 1+2+3...+10
c and print the result to screen
integer i, sum
write (*,*) 'Adding from one to ten ...'
write (*,*)
sum = 0
do i =1, 10
sum = sum + i
end do
write (*,*) 'The total is :', sum
end
§Ú̬Ʀܥi¥H¼g¤@Ó¥i¥H¥ý½Ð¨Ï¥ÎªÌ¿é¤J n¡A¦A¶i¦æ±q 1 ³s¥[¨ì n ªºµ{¦¡¡A«ÂI³B§ÚÌ¥ÎÂŦâ¼Ð¥X¡A¦p¤U¡G
program add_from_one_to_n
c This is a program that will do 1+2+3...+n for a given n value.
integer i, sum, n
write (*,*) 'Please type in an integer value n for
- doing 1+2+3...+n :'
read (*,*) n
write (*,*) 'Adding from one to n ...'
write (*,*)
sum = 0
do i =1, n
sum = sum + i
end do
write (*,*) 'The total is :', sum
end
µù¡G¥u¥Î intger «Å§i¾ã¼Æ®É¡A¾ã¼Æªº³Ì¤j¥i®e¯Ç½d³òÁÙ¤£¬O«Ü¤j¡A³o¼Ë¤@¨Ó°O¿ý³s¥[ªº sum ´N§ó¤£°÷¤F¡A¨Ï¥Î«Ü¤jªº n ®É¡Asum ªºÈ·|¤£¥¿½T¡C¸Ñ¨Mªº¤èªk¡A¬O¥Î"ªø"¾ã¼Æ integer*8 ¨Ó«Å§i sum ©Î©Ò¦³¾ã¼Æ¡C
°ò¥»µ{¦¡§Þ¥©
¼Æ¾ÚÂ÷´²¤Æ¡B¿z¿ï³Ì¤j©Î³Ì¤pÈ¡BÀɮצs¨ú
µ{¦¡ / ºtºâªk °ò¥»§Þ¥© »¡©ú¤Î½d¨Ò
ø¹Ï
¬Ý§¹¤F¯à°µpºâªºµ{¦¡¡A²{¦b¨Ó¬Ý¤@¤U¯àµe¹Ïªº Fortran µ{¦¡¡AFortran ¥»¨¨Ã¥¼¤º«Øø¹Ï«ü¥O¡A§Ú̬OÂǥѩI¥s¡]Fortran «ü¥O call¡^pgplot ³oÓ§K¶Oªº¦Û¥Ñ³nÅé¨Ó¹F¦¨
©Ò¦³ pgplot ªº°Æµ{¦¡¥H¤Î¨ç¦¡¡A³£¬O¥Î "pg" §@¶}ÀY¡C
¥H¤Uªº½d¨Òµ{¦¡¯àµeÂI¤Îµe½u¡A»Pø¹Ï¦³Ãöªº»yªk¥HÂŦâ¼Ð¥X¡]¸Õ¸Õ¬Ý¡A§A²q±o¥X¥¦Ì¬O¤°»ò·N«ä¶Ü¡H¡^¡G
program pg_basic
c This program demonstrate basic pgplot functions (routines).
real y(100), x(100), delta_x, point_y(5), point_x(5)
integer i, pgopen
if (pgopen('/xwin').le.0) stop
delta_x = 5.0/100.0
do i=1, 100
x(i) = (i-1)*delta_x
y(i) = x(i)**2
end do
do i=1, 5
point_x(i) = i
point_y(i) = i**2
end do
call pgenv(0.0, 10.0, 0.0, 20.0, 0, 1)
call pglab('x','y', 'y=x**2')
call pgline(100, x, y)
call pgpt(5, point_x, point_y, 9)
call pgclos
end
Ãþ¥ç¤W±½d¨Òµ{¦¡ªº pg_example.f¡A¥iµø»Ýn¦Û¦æ¤U¸ü¡A¨Ã«ö¤U¦C¤è¦¡½sĶ¡C
n±N³oÓ¦³¥Î¨ì pgplot ¨ç¦¡®wªºµ{¦¡½s¦¨¥i°õ¦æÀÉ¡An¦h¥´¤@¨ÇÃìµ²¨ç¦¡®wªº°Ñ¼Æ
gfortran pg_basic.f -L /usr/local/pgplot -lpgplot -lX11
µM«á¦A¥´ ./a.out <EnterÁä> ¨Ó°õ¦æ¡C
°õ¦æ®É·|°Ýø¹Ï¸Ë¸m¡A¦^µª /xwin §Y¥i¡]ª`·N§t±×½u¡^¡C¡]©ÎªÌ¡Aª½±µ¦bµ{¦¡¤¤§â pgopen('?') ´«¦¨ pgopen('/xwin') ¡A´N¤£·|¦A°Ý¡C¤wª½±µ¦b½d¨Ò¤¤§ó´«¡C¡^
¦pªG¦¨¥\¤F¡A´N·|¬Ý¨ì¥H¤U³o¼Ëªº¹Ï¡G
·Q§ó¨ãÅé¦a²z¸Ñ¤W±½d¨Òµ{¦¡¤¤¦U·s«ü¥O (pgplot °Æµ{¦¡¤Î¨ç¦¡) ªº·N¸q¡A¥i¨£ ³oùØ
·Q²¤¬°¸Ô²Ó¦a¾Ç²ß ¦p¦ó¥Î¼¶¼g¤Î½sĶ¥i§Q¥Î pgplot ø¹Ïªº Fortran µ{¦¡¡A½Ð¥ý¬Ý ³oùØ
¦³Ãö©ó pgplot ªº¶i¤@¨B§¹¾ã¸ê®Æ¡A½Ð¬Ý§Ú¥t¤@Óºô¶¡C
¥»¬q¦U½d¨Òµ{¦¡ªº³sµ²ÂI¬O ³oùØ¡A¥i¦Û¦æ¥ÎÂsÄý¾¹¤U¸ü¦Ü¤u§@¥Ø¿ý¤U¡C
¸Õ¥Î¨t²Î¤º«Ø¤§ fortran compiler ¨Ó²£¥Í¨º´XÓµ{¦¡ì©l½Xªº¥i°õ¦æÀÉ¡A¨Ã¸ÕµÛ°õ¦æ¥¦Ì
¡]·í³õÁ¿¸Ñ»P½m²ß¡^
Y¬O¤@¯ëpºâªºµ{¦¡¡A¥H hello.f ¬°¨Ò¡A¥u»Ý¥´¡]§ÚÌ¥H¨Ï¥Î gfortran ³oÓ fortran compiler ¬°¨Ò¡A¦b§Oªº¨t²Î§A¦³¥i¯à·|¥Î¨ìªº¬O f77 ©Î g77¡^¡G
gfortran hello.f <Enter>
¥H¤W§@ªk¨ä¥i°õ¦æÀÉ·|¤@«ß¥s°µ a.out¡]n°õ¦æ®É¡A¥´ ./a.out <Enter>¡^¡C©ÎªÌ¬O§A¤]¥i¥H¥´¡G
gfortran -o hello.x hello.f <Enter>
«h¨ä¥i°õ¦æÀÉ·|¨Ì§An¨D³Q©R¦W¬° hello.x¡C¡]n°õ¦æ®É¡A¥´ ./hello.x <Enter>¡^
»Ýn¥Î¨ì pgplot ø¹Ïªº°Æµ{¦¡®w¡]§Y¥Ø¿ý¤Uªº libpgplot.a¡^®É¡A«h²¤¬°½ÆÂø¤@ÂI¡A¨Ò¦p§Aªºµ{¦¡Y¬O¥s°µ pg_basic.f ¡A´Nn¥´¡]ª`·N¥H¤U¤å¦rn¥´¦b¦P¤@¦æ¡A¤£¯à¥Î <Enter> Â_¶}¡^¡G
gfortran -o pg_basic.x pg_basic.f -L /usr/local/pgplot -lpgplot -lX11
¨ä¤¤ -lpgplot ¬O§i¶D½sĶ¾¹nÃB¥~¤Þ¤J libpgplot.a ¨ºÓø¹Ï°Æµ{¦¡®wÀÉ®×ùتº¬ÛÃö°Æµ{¦¡ªº¡A¦Ó -L /usr/local/pgplot «h¬O»¡©ú¸ÓÀɮצb¨º¤@ӥؿý¡]§Y¸ê®Æ§¨¡^¤U¡A¦Ü©ó-lX11 «h¬O§i¶D fortran ½sĶ¾¹n¤Þ¤J X¡Ðµøµ¡Ã¸¹Ïªº°Ê§@ªº°ò¥»µ{¦¡®w X11¡]¨ä¹ê»ÚÀɦW¥s libX11.a¡^¡A¦]¦¹¨âªÌ³£¬O»Ýnªº¡C
¦b UNIX ¤§¤U¨Ï¥Î Fortran ½sĶ¾¹ªº¬ÛÃö ¶i¤@¨B¸ê®Æ ¡A¥i¦Û¦æ°Ñ¦Ò¡C
µn¥X¨t²Î¤ÎÃö¾÷©ÎµêÀÀ¾÷¾¹¥ð¯v¤§¤èªk
¥ð¯v
³Ì¤è«Kªº§@ªk¡A¬OµL½×¤u§@¨ì¨ºÓ¶¥¬q¡A´Nª½±µ±NµêÀÀ¾÷¾¹ ª½±µ¥ð¯v¡A±q VMware Player ¥ª¤W¨¤ Player ¤U©Ô¿ï³æ¤¤«ö Exit
·|n¨D½T»{°Ê§@
µêÀÀ¾÷¾¹´N·|¶}©l¥ð¯v¡Aª`·N»Ýnµ¹¥¦¤@ÂI®É¶¡¡AVMware Player ¤~¯à§¹¦¨¨Ã°h¥X¡C
¤U¦¸¦A¥Î VMware Player ¶}±ÒµêÀÀ¾÷¾¹®É¡A´N·|±q¥ð¯v«eªºµe±Ä~Äò¹B§@¤U¥h¡A¦]¦¹³o¬O³Ì¤è«Kªº§@ªk¡C
µn¥X
n±q¤W±Æ¹Ï¥Ü¤¤ªº®à±¥´¶}¿ï³æ¡A¨Ã¿ïµn¥X«ö¤U
³o¼Ë´N·|¦^¨ìµn¤Jµe±¡A§A¤]¥i¥H¿ï¾Ü¥ð¯v¡A¤U¦¸¦A±Ò°Ê¦Ü¤Ö¬Ù¤U¶}¾÷¹Lµ{©Òªáªº®É¶¡
Ãö¾÷
³oùØ«üªº¬OµêÀÀ¾÷¾¹Ãö¾÷¡A§A¥i¥H¦bµn¥X«áÃö¾÷¡A©Î¬O¦b X-window ¤u§@¨ì¤@¬q¸¨¤§«á´N±q¤W±Æ¹Ï¥Üªº®à±¿ï³æ¤¤«öÃö¾÷¡C¡]Ãö¾÷¦b¯u¹ê¦øªA¾¹©Î¦h¤H¨Ï¥ÎÀô¹Ò¤~·|»P¥ð¯vªº®ÄªG¤ñ¸û¤£¦P¡A¦]¦¹¦b¦¹¨Ã¤£±`¥Î¡C¡^
n¨D½T»{ªº¹ï¸Ü®Ø·|¥X²{¡A½T»{Ãö¾÷«á¡A¨t²Î·|³v¨BÃö±¼¨ä¦bI´º¤¤¹B§@ªºµ{¦¡¦Ó¦³³v±øªº°T®§¥X²{
«ÝÃö¾÷§¹¦¨¡A¾ãÓ VMware Player ¤]·|ÀH§Y°h¥X¡C
¨ä¥L
ÀH¨ºÐªº¨Ï¥Î¡G
¥H¨Ï¥ÎªÌ¡]«DºÞ²zªÌ¡^¦p student ªº¨¥÷¡A¦bµêÀÀ¾÷¾¹¬O¶}±Òªº±¡ªp¤U¡A±NÀH¨ºÐ´¡¤J¹q¸£±µ¤f¡A´N·|¦Û°Ê°»´ú¡]¬ù¶O®É¤Q¬íÄÁ¡^¡A¨ÃÅã¥ÜÀH¨ºÐ¸Ë¸m¤Î¸ê®Æ§¨©ó®à±¤W¡A§Y¥i¥H·Æ¹««ü¼Ð¶i¦æ©ì¦²¡CYn¦b²×ºÝ¾÷ªº¤å¦r¼Ò¦¡¤U¾Þ§@¡A¥i¥ý¥´ df «ü¥O¥H¬d¸ß·s»p¸m©Ò³Q±¾¸üªº¸ô®|¡CÀɮ׶ǿ駹²¦«á¡A½Ð°O±o¨ì¸Ë¸m¹Ï¥Ü¤W«ö·Æ¹«¥kÁä¥ý¨ø¸ü¸Ë¸m¦A©Þ°£ÀH¨ºÐ¡C
USB 2.0 ¦³¸û°ªªº¦¨¥\²v¡C
¦p¦ó¦b Fedora Core 5 Linux µêÀÀ¾÷¾¹¤¤³]©wºô¸ô³s½u
¦pªGÁÙ¦³®É¶¡¡A½Ð¤j®a¶i¦æÃB¥~ªº Fortran µ{¦¡¼¶¼g½m²ß¡þ½Æ²ß¡G
¹q¸£pºâ³¡¤À
a. ¾ã¼Æ±q 1 ¥[¨ì 10 ¨Ã¥B§âµª®×¦b¿Ã¹õ¦L¥X
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
b. §â¤WÃD§ï¬°¦V¨Ï¥ÎªÌ¸ß°Ý±q 1 ¥[¨ì N ªº N È¡A¨Ã¥B§âµª®×¦b¿Ã¹õ¦L¥X
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
c. ¦P¤W¡A¦ý§â¾ã¼Æ±q 1 ¥[¨ì N ªºµ²ªG¼g¨ìÀÉ®×
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
d. §â¤Wzµ{¦¡ªº³s¥[³¡¤À¼g¦¨¤@ӰƵ{¦¡
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
¹q¸£Ã¸¹Ï¡]pgplot¡^³¡¤À
e. ©I¥s pgplot °Æµ{¦¡ pgpt ¨Óµe´XÓÂI
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
f. ©I¥s pgplot °Æµ{¦¡ pgline ¨Óµe³sµ§¦±/§é½u
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
g. ©I¥s pgplot °Æµ{¦¡ pgcirc ¨Óµe¤@Ó¶ê
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
h. ±qÀRºAªÅ¤ß¶ê¨ì°ÊºAÁY©ñªÅ¤ß¶ê
i. Ä~Äò½m²ß©I¥s pgplot °Æµ{¦¡ pgsci ¨Ó§@°Êµe
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
j. °µ¤@Ó sin °Êµe¡A¥Ñ¥ª¦Ó¥k¤ô¥²¾°Ê
¤T¶¥¬q½d¨Òµ{¦¡¡GÀRºA¡B°ÊºA¡B ¤ô¥²¾°Ê²¤Æ ¡]µø°T±Ð¾Ç ³sµ²¡^
¤pºJ¨B¡G§ïÅܹϯȪº¤j¤p¡Acall pgpap (5.0, 0.75)¡A§â¥¦©ñ¦b if ( pgopen('/xwin') .lt. 0 ) stop ¤§«á¡A¸Õ¸Õ¬Ý¡C
¥~³¡ÀÉ®×Ū¼g
k. ¦V¿Ã¹õ¸ß°Ýn¨DŪ¤J¼Æ¾Ú¡A¤@¤@¼g¤JµwºÐªºÀɮפ¤¶J¦s°_¨Ó
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
l ³q±`¬°¤F¤è«K¡A°£¤F¼Æ¾Ú¸ê®Æ¥~¡A²Ä¤@¦æ¦s¤J¸ê®Æµ§¼Æ¾ã¼ÆÈ
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
m. ¦P¤W¡A¥~¥[¨Ï¥ÎªÌ¥i¦Û¦æ¨M©wÀɦW
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
§ä·¥¤j·¥¤p
n. ¹LÂo¥X¼Æ¾Úùرªº³Ì¤jÈ
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
o. ¦P®É¹LÂo¥X¼Æ¾Úùرªº³Ì¤jȤγ̤pÈ
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
¨ã¦Û°ÊÃä¬É³]©wªºÃ¸¹Ï
p. §â©ßª«½u¹Ïªº¼Æ¾Ú§ä¥X³Ì¤j³Ì¤pÈ¡A¥H§Q§@¹Ï®ÉÅã¥Ü¥þ½d³ò
°½¬Ý¤@¤U°Ñ¦Ò½d¨Òµ{¦¡
¦Û°ÊÃä¬É³]©w¡A¨Ã°t¦X°Êµe
q. ³z¹L¤£Â_·L´T¥²¾¾î®y¼Ð¡A°µ¥X°Êµe¾î²¾ªº®ÄªG
ÃB¥~¡G§ïÅÜ Linux ®à±¤j¤p¤§¤èªk
¹w³]¬O«O¦u¦a³]¸m¦b 1024 × 768 ªº¸ÑªR«×¡A¦³¨Ç·sªºµ§¹q¤Î®à¾÷¨ä¿Ã¹õ¸ÑªR«×³£¶W¹L¡A¦b¦¹¦C¥X§ó§ï¤§¤èªk¡C