%%
%% macro.tex
%%

\newcommand{\N}{{\boldsymbol{N}}}
\newcommand{\Z}{{\boldsymbol{Z}}}
\newcommand{\Q}{{\boldsymbol{Q}}}
\newcommand{\R}{{\boldsymbol{R}}}
\newcommand{\C}{{\boldsymbol{C}}}
\newcommand{\K}{{\boldsymbol{K}}}

%%
%%
%%

\newcommand{\zero}{{\boldsymbol{0}}}

\newcommand{\avec}{{\boldsymbol{a}}}
\newcommand{\bvec}{{\boldsymbol{b}}}
\newcommand{\cvec}{{\boldsymbol{c}}}
\newcommand{\evec}{{\boldsymbol{e}}}
\newcommand{\fvec}{{\boldsymbol{f}}}
\newcommand{\gvec}{{\boldsymbol{g}}}
\newcommand{\pvec}{{\boldsymbol{p}}}
\newcommand{\qvec}{{\boldsymbol{q}}}

\newcommand{\uvec}{{\boldsymbol{u}}}
\newcommand{\vvec}{{\boldsymbol{v}}}
\newcommand{\wvec}{{\boldsymbol{w}}}
\newcommand{\xvec}{{\boldsymbol{x}}}
\newcommand{\yvec}{{\boldsymbol{y}}}
\newcommand{\zvec}{{\boldsymbol{z}}}

%%
%%
%%

\newcommand{\VEC}[1]{\overrightarrow{#1}}

%%
%%
%%

\newcounter{toi}
\newcommand{\toi}{\quad \stepcounter{toi}\thetoi .\quad}

%%
%%
%%

\newtheorem{Problem}{����}
\newenvironment{problem}{\begin{Problem}\quad \rm }{\setcounter{toi}{0}\end{Problem}}

\newtheorem{Answer}{����}
\newenvironment{answer}{\begin{Answer}\quad \rm }{\setcounter{toi}{0}\end{Answer}}

%\newcommand{\AnsField}[1]{ & #1 & \\    &   & \\ \cline{2-3} }

%%
%%
%%

\newcommand{\Empty}[1]{\hspace{12cm}}
%\newcommand{\Empty}[1]{#1}

\newcommand{\AnsField}[2]{ & #1 & \Empty{#2} \\ \cline{2-3} }
\newcommand{\AnsFieldEnd}[2]{ & #1 & \Empty{#2} \\ \hline }

\newcommand{\FracStyle}{\displaystyle\rule[-5mm]{0cm}{13mm}}

\newcommand{\Deg}[1]{\mbox{deg}\  #1}

\pagestyle{empty}
\unitlength 1mm

%%
%%
%%

\newcommand{\DA}[4]{
\left(\begin{array}{rr}%
#1&#2 \\ #3&#4%
\end{array}\right)}

\newcommand{\DD}[4]{
\left|\begin{array}{rr}%
#1&#2 \\ #3&#4%
\end{array}\right|}

\newcommand{\Rot}[1]{\DA{\cos{#1}}{-\sin{#1}}{\sin{#1}}{\cos{#1}}}

\newcommand{\DAM}[1]{\DA{#1_{11}}{#1_{12}}{#1_{21}}{#1_{22}}}
\newcommand{\DDM}[1]{\DD{#1_{11}}{#1_{12}}{#1_{21}}{#1_{22}}}

\newcommand{\DAMt}[1]{\DA{#1_{11}}{#1_{21}}{#1_{12}}{#1_{22}}}

%%
%%
%%

\newcommand{\VDVec}[2]{
\left(\begin{array}{r}%
#1\\#2%
\end{array}\right)}

%%

\newcommand{\VTVec}[3]{
\left(\begin{array}{r}%
#1\\#2\\#3%
\end{array}\right)}

\newcommand{\TA}[9]{
\left(\begin{array}{rrr}%
#1&#2&#3 \\ #4&#5&#6 \\ #7&#8&#9%
\end{array}\right)}

\newcommand{\TAt}[9]{
\left(\begin{array}{rrr}%
#1&#4&#7 \\ #2&#5&#8 \\ #3&#6&#9%
\end{array}\right)}

\newcommand{\TD}[9]{
\left|\begin{array}{rrr}%
#1&#2&#3 \\ #4&#5&#6 \\ #7&#8&#9%
\end{array}\right|}

\newcommand{\TDc}[9]{
\left|\begin{array}{ccc}%
#1&#2&#3 \\ #4&#5&#6 \\ #7&#8&#9%
\end{array}\right|}


\newcommand{\TAM}[1]{\TA{#1_{11}}{#1_{12}}{#1_{13}}{#1_{21}}{#1_{22}}{#1_{23}}{#1_{31}}{#1_{32}}{#1_{33}}}

\newcommand{\TDM}[1]{\TD{#1_{11}}{#1_{12}}{#1_{13}}{#1_{21}}{#1_{22}}{#1_{23}}{#1_{31}}{#1_{32}}{#1_{33}}}

\newcommand{\TAMt}[1]{\TA{#1_{11}}{#1_{21}}{#1_{31}}{#1_{12}}{#1_{22}}{#1_{32}}{#1_{13}}{#1_{23}}{#1_{33}}}

%%
%%
%%

\newcommand{\DAIAGA}[4]{%
\left(\begin{array}{ccccc}%
  #1     & 0      & 0      & \cdots & 0      \\%
  0      & #2     & 0      & \cdots & 0      \\%
  0      & 0      & #3     & \ddots & \vdots \\%
  \vdots & \vdots & \ddots & \ddots & 0      \\%
  0      & 0      & \cdots & 0      & #4     \\%
\end{array}\right)%
}

\newcommand{\DAIAGAt}[2]{\DAIAGA{#1_1}{#1_2}{#1_3}{#1_{#2}}}

%%
%%
%%

\newcommand{\Shom}[3]{
\begin{problem}
�齬��� p.#1 �� #2 �Ϥ����� #2.#3 ��򤭤ʤ�����
\end{problem}
}

\newcommand{\Rui}[3]{
\begin{problem}
�齬��� p.#1 �� #2 �Ϥ����� #3 ��򤭤ʤ�����
\end{problem}
}

%%
%%
%%

\newcommand{\Rank}[1]{\mbox{\rm rank}(#1)}

%%
%%
%%

\newif\ifQprint

\newcommand{\Ques}[3]{\ifQprint\item[Q.#1]#2\else\item[A.#1]#3\fi}
\newcommand{\QA}[2]{\ifQprint #1\else\begin{description}\item[Q.] #1\item[A.] #2\end{description}\fi}
\newcommand{\QAE}[2]{\ifQprint$#1$\else$#1=#2$\fi}

\newcommand{\QQA}[3]{\ifQprint\item #2\else\item \setcounter{toi}{0}#3\fi}

%%
%%
%%

\newcommand{\RE}[1]{{\mathrm Re}(#1)}
\newcommand{\IM}[1]{{\mathrm Im}(#1)}

%%
%%
%%

\newcommand{\OBar}[1]{\overline{#1}}
\newcommand{\Frac}[2]{{\FracStyle \frac{#1}{#2}}}

%%
%%
%%

\newcommand{\Title}[5]{%
  \noindent{\Large ��� I #1 [#2] (#3)}%

  \medskip

  #4%
  #5%
}

%%
%%
%%

\newcommand{\CTitle}[4]{\Title{�׻��齬}{#1}{#2}{#3}{#4}}
\newcommand{\CQTitle}[2]{\CTitle{����}{#1}{��. #2}{\Qprinttrue\setcounter{Problem}{0}}}
\newcommand{\CATitle}[1]{\CTitle{����}{#1}{}{\Qprintfalse\setcounter{Problem}{0}}}

%%
%%
%%

\newcommand{\MTitle}[4]{\Title{���ƥ���}{#1}{#2}{#3}{#4}}
\newcommand{\MQTitle}[1]{\MTitle{����}{#1}{}{\Qprinttrue\setcounter{Problem}{0}}}
\newcommand{\MATitle}[1]{\MTitle{����}{#1}{}{\Qprintfalse\setcounter{Problem}{0}}}

%%
%%
%%

\newcommand{\DEF}{\stackrel{\mbox{\scriptsize def}}{\Leftrightarrow}}

%%
%%
%%

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "exer2002"
%%% End: 
