version 1.3, 2007/10/07 08:01:28 |
version 1.8, 2012/08/28 05:42:53 |
|
|
|
|
\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). 2007-10-09 $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-28 $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 488 error([41,4294967295,parse error,[asir_where,[[topleve |
|
Line 488 error([41,4294967295,parse error,[asir_where,[[topleve |
|
\verb@print( deval(2^(1/2)));@ |
\verb@print( deval(2^(1/2)));@ |
$B$,@5$7$$F~NO$G$"$k(B. |
$B$,@5$7$$F~NO$G$"$k(B. |
$B%(%i!<9T$N(B3$B9TL\$K%-%c%l%C%H$,<+F0E*$K0\F0$7$F$$$k$O$:$G$"$k(B. |
$B%(%i!<9T$N(B3$B9TL\$K%-%c%l%C%H$,<+F0E*$K0\F0$7$F$$$k$O$:$G$"$k(B. |
|
$B$J$*%W%m%0%i%`$NF~NO%&%$%s%I!<Fb$G%^%&%9$r%/%j%C%/$9$k$H(B, $B$;$C$+$/<+F00\F0$7$?(B |
|
$B%-%c%l%C%H$N0LCV$,JQ$C$F$7$^$&(B. |
|
$B%W%m%0%i%`$NF~NO%&%$%s%I!<$N%?%$%H%k%P!<$G%/%j%C%/$9$k$H$h$$(B. |
$B$J$*$3$NNc$G$O(B |
$B$J$*$3$NNc$G$O(B |
\begin{center} |
\begin{center} |
\scalebox{0.05}{\includegraphics{Figs/buttonBracket.eps}} |
\scalebox{0.05}{\includegraphics{Figs/buttonBracket.eps}} |
Line 756 for $B%k!<%W$H8F$P$l$k(B. |
|
Line 759 for $B%k!<%W$H8F$P$l$k(B. |
|
%en A similar expression |
%en A similar expression |
%en ``{\tt K>=N}'' implies that ``${\tt K} \geq {\tt N}$ holds'' |
%en ``{\tt K>=N}'' implies that ``${\tt K} \geq {\tt N}$ holds'' |
%en The expression ``{\tt K<N}'' means that ``${\tt K} < {\tt N}$''. |
%en The expression ``{\tt K<N}'' means that ``${\tt K} < {\tt N}$''. |
\item \verb@ ++K @ $B$d(B \verb@ K++ @ $B$O(B {\tt K} $B$r(B 1 $BA}$d$;$H$$$&0UL#$G$"$k(B. |
|
\verb@ K = K+1 @ $B$H=q$$$F$b$h$$(B. |
|
$BF1$8$/(B, \verb@ --K @ $B$d(B \verb@ K-- @ $B$O(B {\tt K} $B$r(B 1 $B8:$i$;$H$$$&0UL#$G$"$k(B. |
|
%en \item The expressions \verb@ ++K @ and \verb@ K++ @ mean increasing |
%en \item The expressions \verb@ ++K @ and \verb@ K++ @ mean increasing |
%en {\tt K} by $1$. |
%en {\tt K} by $1$. |
%en In this example, it has the same meaning with \verb@ K = K+1 @. |
%en In this example, it has the same meaning with \verb@ K = K+1 @. |
Line 1138 $y$$B:BI8$O2hLL$,2<$X$$$/$[$IBg$-$/$J$k(B. |
|
Line 1138 $y$$B:BI8$O2hLL$,2<$X$$$/$[$IBg$-$/$J$k(B. |
|
16$B?J?t$K$D$$$F$O(B ``asir $B%I%j%k(B'' $B$r;2>H(B. |
16$B?J?t$K$D$$$F$O(B ``asir $B%I%j%k(B'' $B$r;2>H(B. |
$B$3$NNc$G$O(B, R $B@.J,$,(B ff $B$J$N$G(B, $B@V$N@~$r$R$/$3$H$H$J$k(B. |
$B$3$NNc$G$O(B, R $B@.J,$,(B ff $B$J$N$G(B, $B@V$N@~$r$R$/$3$H$H$J$k(B. |
$B$J$*(B, $B4X?t(B {\tt glib\_putpixel} $B$bF1$8$h$&$K$7$F(B, $B?'$r;XDj$G$-$k(B. |
$B$J$*(B, $B4X?t(B {\tt glib\_putpixel} $B$bF1$8$h$&$K$7$F(B, $B?'$r;XDj$G$-$k(B. |
|
16$B?J?t$rCN$i$J$$?MMQ$K(B, $B?'$H$=$N(B16$B?J?t$K$h$kI=8=$NBP1~I=$r$"$2$F$*$/(B. |
|
|
|
\begin{tabular}{|l|l|} |
|
\hline |
|
0xffffff & $BGr(B \\ \hline |
|
0xffff00 & $B2+(B \\ \hline |
|
0xff0000 & $B@V(B \\ \hline |
|
0x00ff00 & $BNP(B \\ \hline |
|
0x0000ff & $B@D(B \\ \hline |
|
0x000000 & $B9u(B \\ \hline |
|
\end{tabular} |
|
|
|
\noindent |
|
($B$"$H$O;n$7$F2<$5$$(B) |
|
|
$B$5$F(B, $B?^(B \ref{figure:cond:coord} $B$G8+$?$h$&$K%3%s%T%e!<%?%W%m%0%i%`$N(B |
$B$5$F(B, $B?^(B \ref{figure:cond:coord} $B$G8+$?$h$&$K%3%s%T%e!<%?%W%m%0%i%`$N(B |
$B@$3&$G$O(B, $B2hLL$N:8>e$r86E@$K$7$F(B, $B2<$X$$$/$K=>$$(B, $y$ $B:BI8$,A}$($k$h$&$J(B |
$B@$3&$G$O(B, $B2hLL$N:8>e$r86E@$K$7$F(B, $B2<$X$$$/$K=>$$(B, $y$ $B:BI8$,A}$($k$h$&$J(B |
$B:BI87O$r$H$k$3$H$,B?$$(B. |
$B:BI87O$r$H$k$3$H$,B?$$(B. |
Line 1205 for (T=0; T<=deval(2*@pi); T = T+E) { |
|
Line 1219 for (T=0; T<=deval(2*@pi); T = T+E) { |
|
\end{screen} |
\end{screen} |
-----$B%W%m%0%i%`$N2r@b$O$^$@=q$$$F$J$$(B. |
-----$B%W%m%0%i%`$N2r@b$O$^$@=q$$$F$J$$(B. |
|
|
$B>e$N%W%m%0%i%`$G$O(B $cos$, $sin$ $B$rMQ$$$F1_$rIA$$$F$$$k(B. |
$B>e$N%W%m%0%i%`$G$O(B $\cos$, $\sin$ $B$rMQ$$$F1_$rIA$$$F$$$k(B. |
$BCf?4(B, $BH>7B$rJQ99$7$?$j(B, $B?'$rJQ99$7$?$j$7$J$,$i$?$/$5$s$N1_$rIA$/$K$O(B, |
$BCf?4(B, $BH>7B$rJQ99$7$?$j(B, $B?'$rJQ99$7$?$j$7$J$,$i$?$/$5$s$N1_$rIA$/$K$O(B, |
$B$I$N$h$&$K$9$l$P$h$$$G$"$m$&$+(B? |
$B$I$N$h$&$K$9$l$P$h$$$G$"$m$&$+(B? |
``$B4X?t(B'' $B$rMQ$$$k$H$=$l$,MF0W$K$G$-$k(B. |
``$B4X?t(B'' $B$rMQ$$$k$H$=$l$,MF0W$K$G$-$k(B. |
Line 1223 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$rLa$9F/$-$r;}$D(B. |
|
{\tt print} $BJ8$G$O(B, $B4X?t$NCM$rLa$9$3$H$O$G$-$J$$(B. |
|
|
|
``$BLa$jCM(B''(return value) $B$H$$$&8@$$J}$O7W;;5!8@8lFCM-$N8@$$$^$o$7$G$"$k(B. |
|
``$B4X?t(B {\tt twotimes} $B$O0z?t$N(B2$BG\$r7W;;$7$F7k2L$rLa$9(B'' $B$_$?$$$K;H$&(B. |
|
$B>e$NNc$G$$$($P(B {\tt A=twotimes(10)} $B$H$7$?$H$-(B, |
|
$BLa$jCM$,4X?t$NCM$H$7$FJQ?t(B {\tt A} $B$KBeF~$5$l$k(B. |
|
|
|
|
|
$B4X?t$N$J$+$GMxMQ$5$l$F$$$kJQ?t$H0z?t$O(B, |
|
$B$=$N4X?t$N<B9TCf$N$_@8@.$5$l$kJQ?t$G$"$j(B, |
|
$B$5$i$K$=$N4X?t30It$NF1L>$NJQ?t$NCM$rJQ$($J$$(B. |
|
$B$3$N$h$&$K0l;~E*$K@8@.$5$l$kJQ?t$r6I=jJQ?t(B (local variable) $B$H$h$V(B. |
|
$B4X?t$NCf$GJQ?t$NCM$rJQ99$7$?$i(B, $B$=$N4X?t$N30$NF1$8L>A0$NJQ?t$N(B |
|
$BCM$b$+$o$C$F$7$^$&$H$7$?$i(B, $B=hM}$rJ,3d$7$?MxE@$,$9$/$J$$(B. |
|
$B$=$3$G$G$F$-$?35G0$,$3$N(B ``$B6I=jJQ?t(B'' |
|
$B$N35G0$G$"$k(B. |
|
$B>e$N%W%m%0%i%`Nc$G$O(B, |
|
{\tt N}, {\tt S} $B$,6I=jJQ?t$G$"$k(B. |
|
$B6I=jJQ?t$O$=$N4X?t$N$J$+$@$1$GM-8z$JJQ?t$G$"$k(B. |
|
$B$3$l$r(B, ``$B6I=jJQ?t$N%9%3!<%W$O$=$N4X?t$N$J$+$@$1(B'' $B$H$$$&(B |
|
$B8@$$$+$?$r$9$k(B. |
|
$B6I=jJQ?t$N9M$(J}$O(B, $B7W;;5!8@8l$NNr;K$G$OBgH/L@$N0l$D$G$"$k(B. |
|
|
|
\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 1234 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 1262 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 1287 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} |
|
|
\section{$BD6F~Lg(B, $BBh(B2$B$N4XLg(B: $BA22=<0$G$-$^$k?tNs$N7W;;(B} |
\section{$BD6F~Lg(B, $BBh(B2$B$N4XLg(B: $BA22=<0$G$-$^$k?tNs$N7W;;(B} |
Line 1300 $a$ $B$r@5$N?t$H$9$k$H$-(B, |
|
Line 1511 $a$ $B$r@5$N?t$H$9$k$H$-(B, |
|
\end{eqnarray*} |
\end{eqnarray*} |
$B$G$-$^$k?tNs(B $x_0, x_1, x_2, \ldots $ |
$B$G$-$^$k?tNs(B $x_0, x_1, x_2, \ldots $ |
$B$O(B $\sqrt{a}$ $B$K$I$s$I$s6aIU$/$3$H(B($B<}B+$9$k$3$H(B)$B$,CN$i$l$F$$$k(B. |
$B$O(B $\sqrt{a}$ $B$K$I$s$I$s6aIU$/$3$H(B($B<}B+$9$k$3$H(B)$B$,CN$i$l$F$$$k(B. |
$a=2$ $B$N;~(B, $x_1, x_2, \ldots, x_4$ $B$r7W;;$9$k%W%m%0%i%`$r=q$$$F$_$h$&(B. |
$a=2$ $B$N;~(B, $x_1, x_2, \ldots, x_4, x_5$ $B$r7W;;$9$k%W%m%0%i%`$r=q$$$F$_$h$&(B. |
%%Prog: cfep/tests/2006-03-11-sqrt.rr |
%%Prog: cfep/tests/2006-03-11-sqrt.rr |
\begin{screen} |
\begin{screen} |
\begin{verbatim} |
\begin{verbatim} |
Line 1351 $$ \mbox{{\bf $BJQ?tL>(B}} {\tt = } \mbox{{\bf $B |
|
Line 1562 $$ \mbox{{\bf $BJQ?tL>(B}} {\tt = } \mbox{{\bf $B |
|
$B$3$l$,$O$C$-$jM}2r$G$-(B, $B1~MQLdBj$,<+M3$K2r$1$k$h$&$K$J$C$?(B, $BD6F~LgB46H$G$"$k(B. |
$B$3$l$,$O$C$-$jM}2r$G$-(B, $B1~MQLdBj$,<+M3$K2r$1$k$h$&$K$J$C$?(B, $BD6F~LgB46H$G$"$k(B. |
\index{$B$@$$$K$e$&(B@$BBeF~(B} |
\index{$B$@$$$K$e$&(B@$BBeF~(B} |
|
|
|
\begin{problem} \rm |
|
$BJQ?t(B {\tt I}, {\tt X}, {\tt Y} $B$NCM$O(B {\tt for} $B%k!<%WFb$G$I$N$h$&$K(B |
|
$BJQ2=$9$k$+(B? |
|
{\tt Y= (X+A/X)/2} $B$N9T$,<B9T$5$l$kA0$N$3$l$i$NJQ?t$NCM$rI=$K$7$F(B |
|
$B$^$H$a$h(B. {\tt print([I,X,Y])} $B$r$O$5$`$3$H$K$h$j$3$NI=$,@5$7$$$3$H$r(B |
|
$B$?$7$+$a$h(B. |
|
\end{problem} |
|
$BI=$O<!$N$h$&$J7A<0$G=q$/(B. |
|
\begin{tabular}{|c|c|c|c|c|c|} |
|
\hline |
|
{\tt I} & 0&1&2&3&4 \\ \hline |
|
{\tt X} & &&&& \\ \hline |
|
{\tt Y} & &&&& \\ \hline |
|
\end{tabular} |
|
|
|
\begin{problem} \rm |
|
$B%W%m%0%i%`$N%P%0(B(bug)$B$H$O$J$K$+(B? |
|
\end{problem} |
|
|
\section{$B1_$rIA$/?tNs(B} |
\section{$B1_$rIA$/?tNs(B} |
|
|
$B?tNs$N7W;;$rMQ$$$k$H(B, $\cos$ $B$d(B $\sin$ $B$N7W;;$r$d$i$:$K1_$rIA$/$3$H$,(B |
$BA0$N>O$G1_$rIA$/4X?t$r>R2p$7$?(B. |
$B$G$-$k(B. |
$\sin$,$\cos$ $B$N7W;;$K;~4V$,$+$+$k7W;;5!$G$O(B, $B$J$k$Y$/(B |
|
$B$3$l$i;03Q4X?t$rMQ$$$J$$$G1_$rIA2h$9$kI,MW$,$"$k(B. |
|
|
|
$B0l$D$NJ}K!$O(B $s=\tan \frac{t}{2}$ $B$H$*$/$H(B |
|
$\cos t = \frac{1+s^2}{1-s^2}$, |
|
$\sin t = \frac{2s}{1-s^2}$ |
|
$B$H=q$1$k$H$$$&8x<0$r;H$&J}K!$G$"$k(B. |
|
$s$ $B$O%?%s%8%'%s%H$GDj5A$5$l$F$$$k$3$H$rK:$l$F$7$^$($P$h$$(B. |
|
|
|
$B$b$&0l$D$O(B |
|
$B?tNs$N7W;;$rMQ$$$F(B, $\cos$ $B$d(B $\sin$ $B$N7W;;$r$d$i$:$K1_$rIA$/(B |
|
$BJ}K!$G$"$k(B. |
%%Prog: cfep/tests/2006-03-11-circle-dda.rr |
%%Prog: cfep/tests/2006-03-11-circle-dda.rr |
\begin{screen} |
\begin{screen} |
\begin{verbatim} |
\begin{verbatim} |
Line 1386 for (T=0; T<=deval(2*@pi); T = T+E) { |
|
Line 1627 for (T=0; T<=deval(2*@pi); T = T+E) { |
|
|
|
-----$B%W%m%0%i%`$N2r@b$^$@=q$$$F$J$$(B. |
-----$B%W%m%0%i%`$N2r@b$^$@=q$$$F$J$$(B. |
|
|
|
$B%R%s%H(B: |
|
$BHyJ,J}Dx<0(B $d^2 x/dt^2 = -x, d^2 y/dt^2 = -y$ $B$r(B $t$ $B$r%i%8%"%s$H$7$F(B |
|
$B:9J,K!$G6a;wE*$K2r$$$F$$$k(B. |
|
|
$B$3$NOCBj$O(B, $B?tNs$N7W;;$H:9J,J}Dx<0$K$h$k%7%_%e%l!<%7%g%s$KB3$/(B. |
$B$3$NOCBj$O(B, $B?tNs$N7W;;$H:9J,J}Dx<0$K$h$k%7%_%e%l!<%7%g%s$KB3$/(B. |
$B$3$l$K$D$$$F$O$^$?9F$r$"$i$?$a$F=q$$$F$_$?$$(B. |
$B$3$l$K$D$$$F$O$^$?9F$r$"$i$?$a$F=q$$$F$_$?$$(B. |
|
|
$B0J>e$GD6F~Lg$O=*N;$G$"$k(B. $BB3$-$O(B ``Asir $B%I%j%k(B'' $B$rFI$s$G$M(B. |
$B0J>e$GD6F~Lg$O=*N;$G$"$k(B. $BB3$-$O(B ``Asir $B%I%j%k(B'' $B$rFI$s$G$M(B. |
|
$BFC$KG[Ns$H4X?t$r%^%9%?!<$9$k$H?t3X%W%m%0%i%`$K$O=EJu$9$k(B. |
|
|
|
$B$J$*(B, asir $B%I%j%k$K>R2p$7$F$"$k%W%m%0%i%`$O(B \verb@ end$ @ %$ |
|
$B$^$?$O(B \verb@ end; @ $B$,:G8e$K=q$$$F$"$k>l9g$,B?$$$,(B, |
|
cfep/asir $B$G$O$3$N(B {\tt end} $B$r=q$$$F$O$$$1$J$$(B. |
|
{\tt end } $B$O7W;;%(%s%8%s$NDd;_L?Na$G$"$j(B, $B<B9T$5$l$k$H(B ``$B7W;;Cf$NI=<((B'' $B$,$G$FL51~Ez$H$J$k(B. |
|
($B0l1~(B, $B9TF,$K$"$k$3$l$i$NL?Na$O<+F0E*$K:o=|$9$k$h$&$K$J$C$F$O$$$k(B.) |
|
%% kxx/ox_texmacs.c |
|
|
|
\begin{problem} \rm |
|
($B%l%]!<%HLdBj$NNc(B) \\ |
|
$B$J$K$+?^$rIA$/%W%m%0%i%`$r=q$-$J$5$$(B. ($BDjHV%I%i%(%b%s$G$b$h$$(B) |
|
\end{problem} |
|
|
|
\noindent |
|
\fbox{$B%N!<%H(B}. |
|
$BCx<T$N>l9g(B, $B=5$K(B1$B%3%^9V5A(B, $B1i=,(B1$B%3%^$G$O(B, $B$3$3$^$G$G(B3$B=5$G$"$k(B. |
|
$B>e$N%l%]!<%HLdBj$,:G=i$N%l%]!<%H(B. |
|
3$B=5L\$N1i=,$N;~4V$+$i$H$j$+$+$j(B, 5$B=5L\$N1i=,$N;~4V$KH/I=(B. |
|
4$B=5L\$+$i$O(B asir$B%I%j%k(B. |
|
|
\chapter{cfep $B>e5iJT(B} |
\chapter{cfep $B>e5iJT(B} |
|
|
\section{\TeX $B$K$h$k%?%$%W%;%C%H(B($B<B83E*(B)} |
\section{\TeX $B$K$h$k%?%$%W%;%C%H(B($B<B83E*(B)} |
Line 1400 for (T=0; T<=deval(2*@pi); T = T+E) { |
|
Line 1665 for (T=0; T<=deval(2*@pi); T = T+E) { |
|
{\tt latex}, {\tt dvipng} $B$,%$%s%9%H!<%k$5$l$F$$(B |
{\tt latex}, {\tt dvipng} $B$,%$%s%9%H!<%k$5$l$F$$(B |
$B$J$$$HF0:n$7$J$$(B. |
$B$J$$$HF0:n$7$J$$(B. |
$B$3$l$i$O$?$H$($P(B {\tt fink} $B$+$i(B \TeX $B$r%$%s%9%H!<%k$7$?$j(B, |
$B$3$l$i$O$?$H$($P(B {\tt fink} $B$+$i(B \TeX $B$r%$%s%9%H!<%k$7$?$j(B, |
{\tt ptex\_package\_2005v2.1.dmg} $B$J$I$G(B Mac $BMQ$N(B pTeX $B$r%$%s%9%H!<%k$7$F$*$1$P$h$$(B. |
{\tt ptex\_package\_2005v2.1.dmg} ($B:G6a$N>u67$O(B ptex package macosx $B$G8!:w(B) |
|
$B$J$I$G(B Mac $BMQ$N(B pTeX $B$r%$%s%9%H!<%k$7$F$*$1$P$h$$(B. |
\TeX $B$rMQ$$$?;E>e$jNc$O?^(B\ref{fig:sl2}$B$r8+$h(B. |
\TeX $B$rMQ$$$?;E>e$jNc$O?^(B\ref{fig:sl2}$B$r8+$h(B. |
$B$J$*(B, \TeX $B$G%?%$%W%;%C%H$9$k>l9g%[!<%`$N2<$K(B |
$B$J$*(B, \TeX $B$G%?%$%W%;%C%H$9$k>l9g%[!<%`$N2<$K(B |
\verb@OpenXM_tmp@ $B$J$k:n6HMQ$N%U%)%k%@$,:n@.$5$l$k(B. |
\verb@OpenXM_tmp@ $B$J$k:n6HMQ$N%U%)%k%@$,:n@.$5$l$k(B. |
Line 1569 import("cfep-opengl.rr"); |
|
Line 1835 import("cfep-opengl.rr"); |
|
opengl.glib3DefaultScene("cfep demo/icosahedron"); |
opengl.glib3DefaultScene("cfep demo/icosahedron"); |
\end{verbatim} |
\end{verbatim} |
\end{screen} |
\end{screen} |
|
|
|
\section{asir $B0J30$N7W;;%(%s%8%s$NMxMQ(B} |
|
|
|
cfep$B$+$i(B asir $B0J30$N(B OpenXM $B=`5r$N7W;;%(%s%8%s$bMxMQ$G$-$^$9(B. |
|
$B$?$H$($P(B, $B<B9T(B, $B7W;;%(%s%8%s$NA*Br$G(B, kan/sm1 $B$rMxMQ$9$k$3$H$b2DG=$G$9(B. |
|
cfep, {\tt ox\_texmacs}, {\tt ox\_sm1} $B$,Aj8_$KDL?.$7$J$,$i7W;;$7$F$$$^$9(B. |
|
|
|
$B$J$*(B kan/sm1 $B$N(B {\tt run} $B%3%^%s%I$O;H$($^$;$s(B. |
|
\begin{verbatim} |
|
[(parse) ($B%U%!%$%kL>(B) pushfile] extension |
|
\end{verbatim} |
|
$B$GBeMQ$7$F2<$5$$(B. |
|
|
\cleardoublepage |
\cleardoublepage |
\flushbottom |
\flushbottom |