\documentclass[12pt]{article}

\usepackage{pstricks}
\usepackage{amsmath,amsfonts,tikz}

% Put these before fancyhdr lest the headers and footers be the wrong length.
\textwidth = 6.5in   % 1in margins all around.
\hoffset = 0in       % These keep left margins at 1in.
\oddsidemargin = 0in
% So that there is one-half inch at top and bottom.
% See Math Into LaTeX, p. 260.
\topmargin = 0pt
\voffset = -0.5in
\textheight = 8.85in

\usepackage{fancyhdr}
\pagestyle{fancy}

\lhead{Mathematics and Digital Art}
\chead{}
\rhead{Due:  2 October 2017}
\lfoot{Matsko}
\cfoot{}
\rfoot{29 September 2017}

\renewcommand{\headrulewidth}{0pt}

\def\dint{\displaystyle\int}

\parskip=\bigskipamount
\parindent=0pt

\def\banner#1{\hrule\begin{center}{\sc #1}\end{center}\bigskip\hrule}

\def\reals{{\mathbb R}}
\def\nat{{\mathbb N}}

\def\pvec#1#2{\left(\begin{matrix}#1\cr#2\end{matrix}\right)}
\def\pvectd#1#2#3{\left(\begin{matrix}#1\cr#2\cr#3\end{matrix}\right)}
\def\bmatrix#1#2#3#4{
\left[\begin{matrix}#1&#2\cr #3&#4\end{matrix}\right]
}
\def\bmatrixtd#1#2#3#4#5#6#7#8#9{
\left[\begin{matrix}#1&#2&#3\cr #4&#5&#6\cr#7&#8&#9\end{matrix}\right]
}


\begin{document}


Perform the following matrix multiplications.  Round all answers to three decimal places.  Caution:  Be sure your calculator or computer application is in {\em degree mode.}  Sometimes the default is radian mode, which will result in incorrect answers!

\def\sk{\vskip 1.4in}

\begin{enumerate}

\item $\bmatrix 3{-1}52 \bmatrix {-4}62{-2}$

\sk

\item $\bmatrix {-4}62{-2}\bmatrix 3{-1}52 $

\sk

\item $\bmatrix 32{-2}4 \bmatrix{\cos(40^\circ)}{-\sin(40^\circ)}{\sin(40^\circ)}{\cos(40^\circ)}$

\sk

\item  $\bmatrix{\cos(70^\circ)}{-\sin(70^\circ)}{\sin(70^\circ)}{\cos(70^\circ)}\bmatrix {0.75}00{0.5} $

%\item What affine transformations would you need to use in an iterated function system to create the following fractals?
%\begin{enumerate}
%\item \includegraphics[height=6cm]{fractals/newsierpinski} \hskip 1cm\includegraphics[height=6cm]{fractals/Ltriomino}
%\end{enumerate}



\end{enumerate}

%Answers:

%\begin{enumerate}
%\item $\bmatrix {-14}{20}{-16}{26}$
%\item $\bmatrix {18}{16}{-4}{-6}$
%\item $\bmatrix{2.052}{0.889}{-0.889}{2.052}$
%\item $\bmatrix{0.257}{-0.705}{0.470}{0.171}$
%\end{enumerate}

\end{document}

