comment

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

関連記事

no image

tex で丸で囲った文字を出力する方法

丸で囲った文字や、丸数字①などを出力したい場合がある。テキストモードにしてから、\textcircled と \raisebox の組み合わせを使って出力できる。 例 \usepackage{amsm …

no image

tex で集合の内部集合(上に丸)を書く方法

集合の「内部」を表す記号を入力するには、\mathring{} を使う。 例 $\mathring{S}$ 結果

no image

python のプロンプトについて

UNIX で python を起動する ターミナルで $ python インタープリターのプロンプトは >>> となっている。 インタープリタを終了させるときは、Ctrl + D を押す。

no image

matplotlib で x軸・y軸ラベルをつける

plt.xlabel と plt.ylabel を使う。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, …

no image

python3 で文字列を区切り文字を指定してリストに変換する方法

split メソッドを使う。 例 str1 = ‘this, is, a, pen’ str2 = str1.split(‘,’) print(str2) 結果 [‘this’, ‘ is’, ‘ a …