名前: トノ 日時: 2004-07-08 20:16:07 IPアドレス: 150.35.254.*
>>30192 \MgcSqrLine の定義の中に不用意な空白とおぼしきところが3箇所ほど。 (下記ソース中「<<<」で示してあります) \def\MgcSqrLine#1#2#3#4#5#6{\NN=#1 \K=0% n,c,d,e,f,j \multiply \NN by #1 \edef\ROW{}% {\loop\ifnum\I<#1 %%%%%%%%%%%%%%%%% {\loop\ifnum\K<\NN % for(k=0;k<n*n;k++){ \XK\K \multiply\XK by #2 % xk=c*k \T=\K \divide\T by #1 \multiply\T by #4 % t=(k/n)*e \advance\XK by \T % xk=c*k+(k/n)*e \T=\XK \divide\XK by #1 \multiply\XK by #1 \advance\T by -\XK % (mod n) \ifnum \I=\T % if(xk == i) then \T=#1 \XK=\K \multiply\XK by #3 % xk=d*k \T=\K \divide\T by #1 \multiply\T by #5 % t=(k/n)*f \advance\XK by \T % yk=d*i+(i/n)*f \T=\XK \divide\XK by #1 \multiply\XK by #1 \advance\T by -\XK % (mod n) {\ifnum #6=\T % if(yk == j) then \global\MN=\K \fi}% <<< % return MN \fi \advance\K by1 \repeat}% <<< %%%%%%%%%%%%%%%%% \ifnum \I=0 \global\edef\ROW{\number\MN}% \global がないと{\loop } の中でしか % \typeout{MN=\the\MN} % \ROW の中身が保存されない \else \global\edef\ROW{\ROW & \number\MN}% \fi \advance\I by1 \repeat}% <<< \ROW \\ \hline }
この書き込みへの返事: