1. 程式人生 > >latex在ipython jupyter notebook中的使用

latex在ipython jupyter notebook中的使用

# 矩陣
# c表示向中對齊,l表示向左對齊,r表示向右對齊
Latex(r"""The \emph{characteristic polynomial} $\chi(\lambda)$ of the
$3 \times 3$~matrix
\[ \left( \begin{array}{ccc}
a & b & c \\
d & e & f \\
g & h & i \end{array} \right)\]
is given by the formula
\[ \chi(\lambda) = \left| \begin{array}{ccc}
\lambda - a & -b & -c \\ -d & \lambda - e & -f \\ -g & -h & \lambda - i \end{array} \right|.\]""")