[BACK]Return to next2.tex CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep / Doc / Intro

Diff for /OpenXM/src/cfep/Doc/Intro/next2.tex between version 1.6 and 1.7

version 1.6, 2009/10/09 11:47:27 version 1.7, 2012/08/28 04:42:58
Line 18 
Line 18 
   
 \title{ {\bf $BD6F~Lg(B Cfep/asir (MacOS X)} }  \title{ {\bf $BD6F~Lg(B Cfep/asir (MacOS X)} }
 \author{  $B9b;3?.5#(B }  \author{  $B9b;3?.5#(B }
 \date{ 2006$BG/(B($BJ?@.(B18$BG/(B), 3$B7n(B12$BF|HG(B(cfep 1.1). 2008-09-26, 2009-09-19 $B=$@5(B \\ $B%3%a%s%H$O(B takayama@math.kobe-u.ac.jp $B$^$G(B}  \date{ 2006$BG/(B($BJ?@.(B18$BG/(B), 3$B7n(B12$BF|HG(B(cfep 1.1). 2008-09-26, 2009-09-19, 2012-08-27 $B=$@5(B \\ $B%3%a%s%H$O(B takayama@math.kobe-u.ac.jp $B$^$G(B}
 \makeindex  \makeindex
   
 \begin{document}  \begin{document}
Line 1237  for (T=0; T<=deval(2*@pi); T = T+E) {
Line 1237  for (T=0; T<=deval(2*@pi); T = T+E) {
 $BJ#;($J5!G=$r<B8=$9$k(B.  $BJ#;($J5!G=$r<B8=$9$k(B.
 $B$3$N$h$&$J%"%W%m!<%A$r$H$k$3$H$K$h$j(B, ``$B:$Fq$,J,3d(B'' $B$5$l$k(B.  $B$3$N$h$&$J%"%W%m!<%A$r$H$k$3$H$K$h$j(B, ``$B:$Fq$,J,3d(B'' $B$5$l$k(B.
   
   $B1_$NNc$r$7$P$i$/N%$l(B,
   $B4JC1$J4X?t$NNc$r$H$j4X?t$N=q$-J}$r@bL@$7$h$&(B.
   $BA0$N@a$G$O(B $2$ $B$N6R$NI=$r:n@.$9$k%W%m%0%i%`$r=q$$$?(B.
   $B$3$l$r85$K<!$N$h$&$J4X?t$r:n$k(B.
   \begin{screen}
   \begin{verbatim}
   def power_table(N) {
     X=2;
     for (I=1; I<=N; I++) {
       print(X^I);
     }
   }
   power_table(8);
   \end{verbatim}
   \end{screen}
   $B4X?t$NDj5A$O<!$N$h$&$K(B {\tt def} $BL?Na$G9T$J$&(B.
   \begin{verbatim}
   def  $B4X?tL>(B($B0z?t(B) {
     $B4X?tK\BN(B
   }
   \end{verbatim}
   $B>e$NNc$G$O4X?tL>$O(B {\tt power\_table} $B$G$"$j(B, $B0z?t(B(argument)$B$O(B {\tt N} $B$G$"$k(B.
   $B4X?tL>$O1Q?t;z$H(B {\tt \_} $B$rMQ$$$F$D$1$k(B.
   $B$?$@$7?t;z$dBgJ8;z$G$O$8$^$kL>A0$r$D$1$k$3$H$O$G$-$J$$(B.
   $B=hM}FbMF$rO"A[$5$;$k$h$&$JL>A0$r$D$1$k$N$,K>$^$7$$(B.
   {\tt def} $BL?Na$G$O4X?t$rDj5A$9$k$@$1$G<B9T$O9T$J$o$J$$(B.
   $B<B9T$5$;$k$K$O(B, $B>e$NNc$N$h$&$K(B {\tt power\_table(8);} $B$H0z?t$NItJ,$K<B:]$N?t;zEy$rF~$l$F(B
   $B8F$S=P$9(B.
   
   $B0z?t$OFs$D0J>e$"$C$F$b$h$/$F(B,$B$?$H$($P(B,
   \begin{screen}
   \begin{verbatim}
   def power_table2(X,N) {
     for (I=1; I<=N; I++) {
       print(X^I);
     }
   }
   power_table2(3,8);
   \end{verbatim}
   \end{screen}
   $B$J$k4X?tDj5A$H:G8e$N9T$N$=$N8F$S=P$7$O(B
   $3^i$ $B$r(B $i=1, \ldots, 8$ $B$NHO0O$G7W;;$7$FI=<($9$k(B.
   $B$3$N$h$&$J4X?t$rMQ0U$7$F$*$1$P(B,
   $2^i$, $3^i$, $5^i$, $1 \leq i \leq 10$ $B$NI=$rI=<($7$?$$$H$9$k$H(B,
   \begin{screen}
   \begin{verbatim}
   power_table2(2,10);
   power_table2(3,10);
   power_table2(5,10);
   \end{verbatim}
   \end{screen}
   $B$H=q$/$@$1$GNI$/(B, $B%W%m%0%i%`$bC;$/$J$j(B, $B$+$D@0M}$5$l$F$$$k$N$G(B, $BFI$_$d$9$/$J$k(B.
   
   $B$5$F(B, {\tt power\_table2(2,3);} $B$r<B9T$9$k$H(B
   \begin{screen}
   \begin{verbatim}
   2
   4
   8
   0
   \end{verbatim}
   \end{screen}
   $B$HI=<($5$l$k(B.
   $B:G8e$N(B 0 $B$O0lBN2?$G$"$m$&$+(B?
   $B$3$l$O<B$O4X?t$NCM$G$"$k(B.
   $B4X?t$NCM$N$3$H$rLa$jCM$H$b$$$&(B.
   $BLaCM$r;XDj$9$k$K$O(B, {\tt return} $BJ8$rMQ$$$k(B.
   \begin{flushleft}
   \begin{minipage}[t]{7cm}
   \begin{screen}
   \begin{verbatim}
   def twotimes(N) {
     S=2*N;
     return(S);
   }
   \end{verbatim}
   \end{screen}
   \end{minipage} \quad
   %
   \begin{minipage}[t]{7cm}
   $B4X?t(B {\tt twotimes(N)} $B$O(B
   $2N$ $B$NCM$r7W;;$7$FLa$9(B. \\
   $B$3$NDj5A$r=q$$$F$*$$$F(B
   \begin{verbatim}
   A=twotimes(10);
   B=twotimes(100);
   print(A+B);
   \end{verbatim}
   $B$r<B9T$9$k$H(B, {\tt A} $B$K$O(B $20$ $B$,BeF~$5$l(B, {\tt B} $B$K$O(B $200$ $B$,BeF~$5$l(B,
   {\tt print}$BJ8$K$h$j(B $220$ $B$,=PNO$5$l$k(B.
   $B$=$N$"$H(B $0$ $B$,=PNO$5$l$k$,$3$l$O(B {\tt print}$BJ8$NLa$jCM$G$"$k(B.
   \end{minipage} \\
   \end{flushleft}
   
   \noindent
   $B4X?t$NLa$jCM(B (return value) $B$O(B {\tt return} $BJ8$G(B
   $B;XDj$9$k(B.
   $B$$$^$N>l9g$OJQ?t(B {\tt S} $B$NCM$G$"$k(B.
   $B$J$*(B, {\tt print} $B$H(B {\tt return}  $B$O0c$&(B.
   {\tt print} $B$O2hLL$KCM$r0u:~$9$k$N$KBP$7$F(B,
   {\tt return} $B$O4X?t$NCM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
   
   \noindent
   $BNc(B:
   %%%%%%%%%%  mini page template %%%%%%%%%%%%
   \begin{flushleft}
   \begin{minipage}[t]{7cm}
   \begin{screen}
   \begin{verbatim}
   S=3;
   twotimes(2);
   print(S);
   \end{verbatim}
   \end{screen}
   \end{minipage} \quad
   %
   \begin{minipage}[t]{7cm}
   $B$3$N%W%m%0%i%`$N(B {\tt S} $B$H4X?t(B {\tt twotimes} $B$N$J$+$NJQ?t(B  {\tt S} $B$OJLJ*(B
   $B$G$"$k(B.
   $B$7$?$,$C$F(B, {\tt twotimes} $B$N=*N;;~E@$G4X?t(B {\tt twotimes} $B$N$J$+$NJQ?t(B {\tt S}
   $B$NCM$O(B $6$ $B$G$"$k$,(B,  {\tt print} $BJ8$G(B {\tt S} $B$NCM$rI=<($5$;$F$_$F$b(B
   $B$d$O$j(B $3$ $B$N$^$^$G$"$k(B.
   \end{minipage} \\
   \end{flushleft}
   
   
 %<C  %<C
 \begin{figure}[tbh]  \begin{figure}[tbh]
 \scalebox{0.6}{\includegraphics{Figs/circleFunc.eps}}  \scalebox{0.6}{\includegraphics{Figs/circleFunc.eps}}
Line 1248  for (T=0; T<=deval(2*@pi); T = T+E) {
Line 1396  for (T=0; T<=deval(2*@pi); T = T+E) {
 $B0J2<$N$h$&$K4X?t(B {\tt circle(X,Y,R,Color)}$B$rDj5A(B ({\tt def}) $B$9$k(B.  $B0J2<$N$h$&$K4X?t(B {\tt circle(X,Y,R,Color)}$B$rDj5A(B ({\tt def}) $B$9$k(B.
 $B$3$N4X?t$r(B $R$ $B$d(B $Color$ $B$rJQ2=$5$;$J$,$i8F$V$3$H$K$h$j(B,  $B$3$N4X?t$r(B $R$ $B$d(B $Color$ $B$rJQ2=$5$;$J$,$i8F$V$3$H$K$h$j(B,
 $B?^(B\ref{fig:circleFunc} $B$N$h$&$JF1?41_$N?^$rIA$/$3$H$,2DG=$H$J$k(B.  $B?^(B\ref{fig:circleFunc} $B$N$h$&$JF1?41_$N?^$rIA$/$3$H$,2DG=$H$J$k(B.
 $B4X?t$K$D$$$F>\$7$/$O(B ``asir $B%I%j%k(B'' $B$r;2>H$7$F$[$7$$(B.  $B4X?t$K$D$$$F$5$i$K>\$7$/$O(B ``asir $B%I%j%k(B'' $B$r;2>H$7$F$[$7$$(B.
   
 \begin{screen}  \begin{screen}
 \begin{verbatim}  \begin{verbatim}
Line 1276  for (P = 0.4; P<0.5; P = P+0.01) {
Line 1424  for (P = 0.4; P<0.5; P = P+0.01) {
 }  }
 \end{verbatim}  \end{verbatim}
 \end{screen}  \end{screen}
   {\tt (Qx,Qy)} $B$H(B {\tt (Px,Py)} $B$O(B
   {\tt E} $B$@$1JP3Q$,0[$k(B.
   $B1_$rB?LLBN$G6a;w$7$FIA2h$7$F$$$k(B. \\
 -----$B%W%m%0%i%`$N>\$7$$2r@b$^$@(B.  -----$B%W%m%0%i%`$N>\$7$$2r@b$^$@(B.
   
 \begin{problem} \rm  \begin{problem} \rm
 \begin{enumerate}  \begin{enumerate}
   \item $B$3$N%W%m%0%i%`$N4X?t$rMQ$$$F@\$9$kH>7B$NF1$81_$rFs$DIA2h$9$k%W%m%0%i%`$r=q$-$J$5$$(B.
   \item $B1_$rEI$jDY$94X?t$r:n$l(B.
 \item $BJ,EY4o$rIA$/%W%m%0%i%`$r:n$l(B.  \item $BJ,EY4o$rIA$/%W%m%0%i%`$r:n$l(B.
 \item ($BH/E82]Bj(B) $B$3$NJ,EY4o(B, $B;e(B, $B$*$b$j(B, $B$o$j$P$7(B, $BHD(B, cfep/asir $B$K$h$k%W%m%0%i%`Ey$rMQ$$$F(B,  \item ($BH/E82]Bj(B) $B$3$NJ,EY4o(B, $B;e(B, $B$*$b$j(B, $B$o$j$P$7(B, $BHD(B, cfep/asir $B$K$h$k%W%m%0%i%`Ey$rMQ$$$F(B,
 $BLZ$d%S%k$N9b$5$rB,Dj$9$k5!3#$H%=%U%H%&%(%"%7%9%F%`$r3+H/$;$h(B.  $BLZ$d%S%k$N9b$5$rB,Dj$9$k5!3#$H%=%U%H%&%(%"%7%9%F%`$r3+H/$;$h(B.
Line 1301  cfep$B>e5iJT(B, OpenGL $B$N%W%m%0%i%`$r;29M$K(B
Line 1454  cfep$B>e5iJT(B, OpenGL $B$N%W%m%0%i%`$r;29M$K(B
 \end{problem}  \end{problem}
   
   
   \noindent
   \fbox{\bf $B<B=,$NMn$H$77j(B}\\
   \begin{enumerate}
   \item unix $BHG(B, windows $BHG$G$O(B asir $B%I%j%k$K$"$k$h$&$K(B
   \verb@ end$ @ %$
   $B$r%W%m%0%i%`$N:G8e$K=q$+$J$$$H9T$1$J$$$,(B, cfep/asir $B$G$O$3$NL?Na$O(B
   $B7W;;%(%s%8%s$NDd;_L?Na$H$J$k$N$G=q$$$F$O$$$1$J$$(B.
   $B$?$@$7(B\underline{$B9T$NF,(B}$B$K(B\underline{$B6uGr$r$$$l$:$K(B}$B=q$$$F$"$k(B
   \verb@ end$ @ %$
   $B$O<+F0:o=|$5$l$k$N$G(B, unix, windows $BHG6&DL$N%W%m%0%i%`$r=q$/$H$-$O(B
   $B6uGr$rF~$l$:$K9T$NF,$K=q$$$F$*$/$HJXMx$G$"$k(B.
   \item $B6uGr$d2~9T$O86B'<+M3$KA^F~$7$F$$$$$,(B, $B6uGr$rF~$l$F$O$$$1$J$$I=8=$,$"$k(B.
   $B$?$H$($P(B
   \begin{verbatim}
   0.1
   \end{verbatim}
   $B$H=q$/$Y$-$H$3$m$r(B
   \begin{verbatim}
   0. 1
   \end{verbatim}
   $B$H(B $1$ $B$NA0$K6uGr$rF~$l$k$H%(%i!<$H$J$k(B.
   $B?t;z$K$O6uGr$rF~$l$F$O$$$1$J$$(B.
   $BM}M3$O(B asir $B%I%j%k$N9=J82r@O$N>O$rFI$`$HM}2r$G$-$k$H;W$&(B.
   \item {\tt sin\ x} $B$J$kI=8=$O<u$1IU$1$F$/$l$J$$(B.
   $BI,$:3g8L$,$$$k(B. $B$D$^$j(B {\tt sin(x)} $B$H=q$/(B.
   \item $B3]$1;;$N(B {\tt *} $B$O>JN,$G$-$J$$(B.
   \end{enumerate}
   
   \noindent
   \HHH
   {\tt [1,2,3]} $B$N$h$&$K(B {\tt []} $B$G0O$C$?I=8=$r%j%9%H(B(list)$B$H8F$V(B.
   $B4X?t$NLa$jCM$r?t$NAH$K$7$?$$$H$-$O%j%9%H$rCM$H$7$FLa$9$HNI$$(B.
   {\tt print} $BJ8$GB?$/$N?t$r0l9T$GI=<($7$?$$$H$-$b%j%9%H$r;H$&$HJXMx$G$"$k(B.
   {\tt L} $B$r%j%9%H$H$9$k$H$-(B {\tt L[0]} $B$G%j%9%H$N:G=i(B(0$BHVL\(B)$B$N85(B,
   {\tt L[1]} $B$G%j%9%H$N(B1$BHVL\$N85(B, ... $B$rI=$9(B.
   $B>\$7$/$O(B asir $B%I%j%k;2>H(B.
   \begin{screen}
   \begin{verbatim}
   L=[3,2,1];
   print(L);
   print(L[0]+L[1]+L[2]);
   \end{verbatim}
   \end{screen}
   %%Note: misc-2010/10/keisan-1/note-ja.txt  $B9V5A$N?JEY(B.
   
 \chapter{For $BJ8$K$h$k?tNs$N7W;;(B}  \chapter{For $BJ8$K$h$k?tNs$N7W;;(B}
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>