未分類

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 で ξ 記号を表示する

ξ はギリシャ文字のクシー(xi)である。ゼータ(ζ)と間違えないように注意。 例 $\xi$ 結果

no image

matplotlib で縦横の罫線を出力する

罫線を出力するには、pyplot.grid を使う。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2 …

no image

tex で和集合を入力する方法

\bigcup を使う。 例 $\displaystyle \bigcup _ {i \in \Lambda} A_i $ 結果

no image

c言語で文字をつなげる方法

sprintf 関数を使って、result 変数に文字列 s1 と文字列 s2 を結合した文字列を出力することができる。 例 #include<stdio.h> int main(void) { …

no image

c++ で文字列(string)の foreach 操作を行う方法

string の各文字に対して操作を行うには、「iterator」(イテレータ)を使ってループを作る方法がある。iterator の変数名は、it としておくと分かりやすい。 例 #include&l …