未分類

tex で行列の省略した部分を書く方法

投稿日:

斜めの点列を \ddots として書くのがコツ。
\matrix を使うためにパッケージ amsmath を使う。

\usepackage{amsmath}
\begin{document}
$$
\textbf{A} =
\left(
\begin{matrix}{ccc}
A_{11} & \cdots & A_{1n} \\
\vdots & \ddots & \vdots \\
A_{n1} & \cdots & A_{nn}
\end{matrix}\right)
$$
\end{document}

結果

-未分類

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

tex で文章を右寄せにする方法

テキストを \flushright で囲めば良い。 例 \begin{flushright} Lorem, ipsum dolor sit amet consectetur adipisicing e …

no image

tex で「デルタ」δ・Δ を入力する方法

小文字のデルタ:δ大文字のデルタ:Δ 例 $\delta, \Delta$ 結果

no image

tex で期待値記号を入力する方法

\mathbf を使う。 例 $\mathbf{E}(\xi)$ 結果

no image

tex の分数のシグマ記号(和)がつぶれないようにする

分子・分母にシグマ記号(和記号)を使うと、小さくつぶれて見にくいことがある。対策として、\displaystyle を使う。 例 $\frac{\displaystyle \sum_{i=1}^{\i …

no image

matplotlib で x, y軸・タイトルのフォントサイズを調整する

ラベルの fontsize で指定する。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2, 100) …