comment

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

関連記事

no image

python3 で文字列のリストを結合する方法

list に対して、extend を使う。 例 list1 = [1,2,3] list2 = [4,5,6] list1.extend(list2) print(list1) 結果 [1, 2, 3 …

no image

pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。

リストを iter に変えたあと、… next() を使う。 参考リンク https://www.programiz.com/python-programming/methods/buil …

no image

tex の equation 環境で複数行の数式を入力する(\split を使う)

\equation の中で \split を使う。 \tag を使って、自分で定義した式番号を使える。 例 \begin{equation} \begin{split} a \\ b \\ c \en …

no image

tex で、理由や根拠を示す(なぜならば)を入力する

tex で「なぜならば」記号(∵)を入力するには、数式モードで $\because$ と書く。ams のパッケージを使う。 例 \usepackage{amsmath}\usepackage{amss …

no image

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

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