Hint for the Charpoly exercise
Hint for the Charpoly exercise
First of all, what is this exercise about? The idea is that you find
yourself writing a document which contains lots of characteristic
polynomials of 2 by 2 matrices, such as
|
ê ê
ê
|
|
ê ê
ê
|
, |
ê ê
ê
|
|
ê ê
ê
|
, and |
ê ê
ê
|
|
ê ê
ê
|
. |
|
These take quite a lot of time to format in LATEX, so you'd like
just to write
\Charpoly{2}{-1}{3}{1}{\lambda}
\Charpoly{4}{0}{2}{-3}{\lambda},
and
\Charpoly{10}{3}{-4}{2}{x}
to produce them quickly.
If you find this exercise difficult, follow these steps:
- Write the LATEX code necessary to produce
.
- Turn this into a command, i.e.
\newcommand{\Charpoly}{your
LATEX code}
- Now replace this command with
\newcommand{\Charpoly}[5]{your
LATEX code}
and, in the LATEX code, replace the particular numbers and the
l for this example with appropriate #1, #2,
etc.