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= sum {i = 0}{n} x_{i} B_{n , i}( t )

y = sum {i = 0}{n} y_{i} B_{n , i}( t )
$BC"$7!"(B

B_{n , i}(t) = _{n} C _{i} t^{i} ( 1 - t )^{n - i}

8-2. $B@6=q(B(3)TeX, pLateX(2)

$B%;%s%?%j%s%0(B

$B:84s$;!"Cf1{B7$(!"1&4s$;$O

\begin{flushleft}
abc\\
def
\end{flushleft}
\begin{center}
abc\\
def
\end{center}
\begin{flushright}
abc\\
def
\end{flushright}

$B;2>H(B

LaTeX $B$O(B section $B$d(B enumerate $B$J$I$GHV9f$r<+F0@8@.$7$^$9$,!"$3$NCM$r;2>H$G$-$^$9!#(B section $B$d(B item $B$ND>8e$K(B \label{$B%i%Y%kL>(B} $B$rCV$/$H!"(B\ref{$B%i%Y%kL>(B} $B$G(B $B%i%Y%k$NCM$r;2>H$G$-$^$9!#(B

$B<0$KHV9f$rIU$1$k$K$O(B \begin{equation} \end{equation} $B$r;H$$$^$9!#Cf$K(B $BF~$l$?<0$O(B display $B%b!<%I$GI=<($5$l$^$9!#(B \end{equation} $B$NH$G$-$^$9!#(B $B$5$i$KJXMx$J$b$N$K(B \begin{eqnarray} \end{eqnarray} $B$,$"$j$^$9!#(B $B$3$l$O<0$r(B 3 $BNs$NI=$H$_$J$7!"Cf1{$NItJ,$rB7$($k$h$&$K$7$^$9!#(B

\begin{eqnarray}
$B:8JU(B & $BEy9f(B & $B1&JU(B \\
$B:8JU(B & $BEy9f(B & $B1&JU(B \\
\end{eqnarray}

$B$3$N$h$&$K$9$k$HEy9f$rB7$($?<0JQ7A$J$I$r@bL@$70W$/$J$j$^$9!#(B $BC"$7!"$3$l$G$O$9$Y$F$N<0$KHV9f$,$D$$$F$7$^$$$^$9!#(B $BFCDj$N9T$@$1HV9f$rIU$1$J$$$h$&$K$9$k$K$O2~9T$N

$B?^$NA^F~(B

$B?^$r;2>H$9$k;~$O(B \begin{figure}[hbtp] \caption{}\end{figure}$B$r;HMQ$7(B $B$^$9!#(B caption $B$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3%s%T%e!<%?$N?^(B ($B?^(B \ref{comp}) $B$r<($9!#(B
\begin{figure}[hbt]
\begin{center}
\epsfig{file=computer.eps,width=6cm}
\end{center}
\caption{$B%3%s%T%e!<%?(B}
\label{comp}
\end{figure}

$B%W%m%0%i%`$NA^F~(B

$B%W%m%0%i%`$rK\J8$KF~$l$k$K$O(B listings $B%Q%C%1!<%8$r%$%s%9%H!<%k$9$kI,MW(B $B$,$"$j$^$9!#(B $B$3$l$r%$%s%9%H!<%k$9$k$H%W%m%0%i%`$rA^F~$G$-$k$@$1$G$J$/!"M=Ls8l$r6/D4(B $B$G$-$^$9!#(B

listings $B%Q%C%1!<%8$r;H$&$K$O!"(B\documentclass $B$ND>8e$K(B \usepackage{listings} $B$r=q$-$^$9!#(B $B$=$7$F!"K\J8Cf$K$O

\lstset{language=C,numbers=left,numberstyle=\tiny}
\begin{lstlisting}
#include <stdio.h>
main(){
  printf("Hello World!");
}
\end{lstlisting}

$BJ8;z(B

$BDL>o;H$&J8;z$N

$B$^$?(B \begin{large} \end{large} $B$d(B \begin{Large} \end{Large} $B$G;z$,Bg$-(B $B$/$J$j$^$9!#(B

$BL\

$BL\H$J$I$,$&$^$/$$$+$J$$>l9g$,$"$j$^$9!#(B

$B;29MJ88%%j%9%H$r:n$k$K$O!"J88%%G!<%?%Y!<%9$r:n$j(B bibtex $B$r;HMQ$9$kJ}K!(B $B$H!"K\J8$K=q$-9~$`J}K!$,$"$j$^$9!#(B $B$3$3$G$OK\J8$K=q$-9~$`J}K!$r@bL@$7$^$9!#(B $B4pK\E*$K$O(B description $B4D6-$HF1$8$h$&$K=q$-$^$9!#(B

\begin{thebibliography}{9}
\bibitem{$B;2>HL>(B1}$B;29MJ88%(B1$B$N=PE8(B
\bibitem{$B;2>HL>(B2}$B;29MJ88%(B2$B$N=PE8(B
\end{thebibliography}

$B$O$8$a$N(B 9 $B$OJ88%%j%9%H$,0l7e$N;~;XDj$7$^$9!#(B $B;2>HL>$O2hLL$K$OI=<($5$l$^$;$s$,!"(B\cite{$B;2>HL>(B} $B$rK\J8Cf$K=q$/$H<+F0E*$K@8@.$5$l$?;29MJ88%HV9f$rI=<($7$^$9!#(B

$BNc(B8-2

C $B8@8l$N4pK\9=J8(B
\begin{thebibliography}{9}
\bibitem{KandR}
B.W.$B%+!<%K%O%s!"(BD.M.$B%j%C%A!

$B1i=,(B8-2

  1. $B$GJ]B8$7$J$5$$!#(B
    \documentclass[12pt]{jarticle}
    \usepackage{epsfig}
    \usepackage{listings}
    \usepackage{vmargin}
    \setpapersize{A4}
    \setmargnohfrb{20mm}{20mm}{20mm}{20mm}
    \begin{document}
    \begin{center}
    \begin{LARGE}
    \LaTeX\ $B$N$5$i$J$k9bEY$J;H$$J}(B
    \end{LARGE}
    \end{center}
    \begin{flushright}
    03kc999\\
    $BL>L5$7$N8"J<1R(B
    \end{flushright}
    \section{$B?t<0$N;2>H(B}
    $B?t<0$KHV9f$r$D$1$F;2>H$9$k$K$OO$G$O!"?^7A$NA^F~$NNc$r<($7$^$9!#(B \begin{figure}[hbt] \begin{center} \epsfig{file=computer.eps,width=6cm} \end{center} \caption{$B%3%s%T%e!<%?(B} \label{comp} \end{figure}  \section{$B%W%m%0%i%`$NA^F~(B} \label{sansho} \ref{sansho} $B>O$G$O%W%m%0%i%`$NI=<($r$7$^$9!#(B $B;29MJ88%(B \cite{KandR} $B$K$O(B C $B8@8l$NJ8K!$,=q$+$l$F$$$^$9!#(B \lstset{language=C,numbers=left,numberstyle=\tiny} \begin{lstlisting} #include <stdio.h>
    main(){
      printf("Hello World!");
    }
    \end{lstlisting}
    \nocite{masuda}
    \begin{thebibliography}{9}
    \bibitem{KandR}
    B.W.$B%+!<%K%O%s!"(BD.M.$B%j%C%A!
    
  2. platex $B$r;HMQ$7$F!">e$NFbMF$r2hLL$KI=<($7$J$5$$!#(B
  3. $B>e5-$NFbMF$rJQ99$7$F!"JQ997k2L$rI=<($7$J$5$$!#(B

8-3. if$BJ8(B

if $BJ8$N4pAC(B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7$/$J$$(B
a < b
a $B$O(B b $B$h$j>.$5$$(B
a > b
a $B$O(B b $B$h$jBg$-$$(B
a <= b
a $B$O(B b $B0J2<(B
a >= b
a $B$O(B b $B0J>e(B

$B1i=,(B8-3

$Bax+b=0 $B$r2r$/$h$&$K8+$($^(B $B$9$,!"$*$+$7$$$H$3$m$,A4It$G(B 5 $B2U=j$"$k$N$G@5$7$$Ez$r5a$a$i$l$^$;$s!#(B $B$3$N%W%m%0%i%`$r@5$7$/F0$/$h$&$KD>$7$F!"

  1. 2x-4=0
  2. -2x+1=0
  3. 0x+3=0
  4. 0x+0=0
#include <stdio.h>
main(){
  int a,b,x;
  a=2;
  b=-4;
  if(a=0){
    if(b=0){
      printf("x $B$OG$0U$N?t(B\n");
    }else{
      printf("$B2r$J$7(B\n");
    }
  }else{
    x=b/a;
    printf("x = %d\n",x);
  }
}
$B%R%s%H(B

$B$=$l$>$l$N2r$r$^$:

$B1i=,(B8-4

$BFsx2+bx+c=0 (a$B!b(B0) $B$N2r$r5a(B $B$a$k%W%m%0%i%`$r=q$-$J$5$$!#(B

$B$=$7$F!":n$C$?%W%m%0%i%`$G

  1. 2x2-5x-3=0
  2. x2+2x+1=0
  3. x2-2x+5=0

$BO@M}1i;;(B

$B>r7o(B A $B$H(B B $B$,$"$C$?;~!"$=$NN>J}$,@.N)$7$F$$$k;~$@$1J8(B X $B$r

if(A){
  if(B){
    X;
  }
}

$B0lJ}!">r7o(B A $B$H(B B $B$N$I$A$i$+0lJ}$,@.N)$7$F$$$l$P(B X $B$r

if(A){
  X;
}else{
  if(B){
    X;
  }
}

$B$3$N$h$&$K(B if $BJ8$G$"$l$PJ#?t$N>r7o$NAH9g$;$r=hM}$9$k$3$H$,$G$-$^$9!#(B $B$7$+$7!"$3$l$rO@M}1i;;$rMQ$$$F0l$D$N>r7oJ8$K$^$H$a$k$3$H$,$G$-$^$9!#(B $B$3$3$G$O(B C $B8@8l$G$NO@M}1i;;$NI=8=$r3X$S$^$9!#(B

C $B8@8l$K$*$$$F!">r7o(B A $B$H(B B $B$KBP$7$F!"N>J}$,@.N)$7$?;~$K$@[email protected])$9$k$3(B $B$H$rI=$9$K$O(B (A)&&(B) $B$H=q$-$^$9!#(B $B!V(Ba $B$,(B 0 $B$G(B b $B$b(B 0 $B!W$H$$$&>r7oJ8$rI=$9$K$O(B (a==0)&&(b==0) $B$H=q$-$^$9!#(B $B$3$l$O0lHL$K$O(BAND $B1i;;(B$B$H8F$P$l$F$^$9!#(B

ABA AND B
mail protected])(Bmail protected])(Bmail protected])(B
mail protected])(Bmail protected])(Bmail protected])(B
mail protected])(Bmail protected])(Bmail protected])(B
mail protected])(Bmail protected])(Bmail protected])(B

$B0lJ}!"(BC $B8@8l$K$*$$$F!">r7o(B A $B$H(B B $B$KBP$7$F!"$I$A$i$+0lJ}$,@.N)$9$l$P@.(B $BN)$9$k$3$H$rI=$9$K$O(B (A)||(B) $B$H=q$-$^$9!#(B $B!V(Ba $B$^$?$O(B b $B$N$$$:$l$+$,(B 0 $B!W$H$$$&>r7oJ8$rI=$9$K$O(B (a==0)||(b==0) $B$H=q$-$^$9!#(B $B$3$l$O0lHL$K$O(BOR $B1i;;(B$B$H8F$P$l$F$^$9!#(B

ABA OR B
mail protected])(Bmail protected])(Bmail protected])(B
mail protected])(Bmail protected])(Bmail protected])(B
mail protected])(Bmail protected])(Bmail protected])(B
mail protected])(Bmail protected])(Bmail protected])(B

$B$5$i$K!"(BC $B8@8l$K$*$$$F!">r7o(B A $B$KBP$7$F!"(BA $B$,[email protected])$N$H$-$@$1@.(B $BN)$9$k$3$H$rI=$9$K$O(B !(A) $B$H=q$-$^$9!#(B $B!V(Ba $B$,(B 0 $B$G$J$$;~!W$O(B a!=0 $B$H$b=q$1$^$9$,!"(B!(a==0) $B$H$b=q$1$^$9!#(B $B$3$l$O0lHL$K$O(BNOT $B1i;;(B$B$H8F$P$l$F$^$9!#(B

ANOT A
mail protected])(Bmail protected])(B
mail protected])(Bmail protected])(B

$B>e5-$NNc$r$b$&0lEY$H$j$"$2$^$9!#(B A $B$H(B B $B$NN>J}$,@.N)$7$F$$$k;~(B X $B$r

if((A)&&(B)){ X; }

$BF1$8$h$&$K!V(BA $B$H(B B $B$N$I$A$i$+0lJ}$,@.N)$7$F$$$k;~(B X $B$r

if((A)||(B)){ X; }

$B1i=,(B8-5

$BJ}Dx<0(B ax+b=0 $B$N2r$r5a$a$k2<$N%W%m(B $B%0%i%`$r40@.$5$;$J$5$$!#(B $B$^$?!"40@.$5$;$?%W%m%0%i%`$rMQ$$$F!"

  1. 2x+1 = 0
  2. 5x+0 = 0
  3. 0x+3 = 0
  4. 0x+0 = 0
#include <stdio.h>
main(){
  float a,b;
  float x;

  a=10;
  b=20;
  printf("%fx+%f=0 $B$N2r$O(B",a,b);
  if(/* a $B$b(B b $B$b(B 0 */){
    printf("$BG$0U$NCM(B\n");
  }
  if(/* a $B$O(B 0 $B$@$,!"(B b $B$O(B 0 $B$G$J$$(B*/){
    printf("$B$J$$(B\n");
  }
  if(/* a $B$O(B 0 $B$G$J$$(B */){
    /* x $B$N7W;;(B */
   printf("%f\n",x);
  }
}

$B1i=,(B8-6

$B0J2<$OM?$($i$l$??t$,(B 2 $B$NG\?t!"(B 3 $B$NG\?t!"(B 6 $B$NG\?t$N$I$l$+$rH=Dj$9$k(B $B%W%m%0%i%`$G$9!#(B $B%W%m%0%i%`$r40@.$5$;$J$5$$!#(B $B$=$7$F!"x % y $B$O(B x $B$r(B y $B$G3d$C$?M>$j$r5a$a$^$9!#(B

  1. 60
  2. 15
  3. 32
  4. 35
# include <stdio.h>
main(){
  int n,d2,d3;

  n = 100;
  d2 = n % 2;
  d3 = n % 3;
  printf("%d $B$O(B",n);
  if((d2!=0)&&(d3!=0)){
    printf("2 $B$G$b(B 3 $B$G$b3d$l$J$$(B\n");
  }else{ 
    if(/* 2 $B$NG\?t$NH=Dj(B */){
      printf("2 $B$NG\?t(B\n");
    }else{ 
      if(/* 3 $B$NG\?t$NH=Dj(B */){
        printf("3 $B$NG\?t(B\n");
      }else{if(/* 6 $B$NG\?t$NH=Dj(B){
            printf("6 $B$NG\?t(B\n");
           }else{
              /*$B$=$NB>(B*/
           }
      }  
    }
  }
}

8-4. $B=IBj(B

Circuit Maker $B$r%@%&%s%m!<%I$7$F$*$$$F2<$5$$!#(B $B$^$?!"6=L#$,$"$l$P!"(B$B2CF#$?$@$7!V(BCD-ROM$BIUEE;R2sO)%7%_%e%l!<%?F~Lg!W(B $B%V%k!<%P%C%/%9(B B-1344$B!"9VCL$B$rGc$C$FM==,$7$F$*$$$F2<$5$$!#(B


$B:dK\D>;V(B <[email protected]>
$BEl5~EE5!Bg3X9)3XIt>pJsDL?.9)3X2J(B