comment

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

関連記事

no image

tex でゼロベクトルを表示する方法

ゼロベクトルは、 数字の 0 の上部にベクトルであることを表す「矢印」をつける。短い矢印の場合は \vec 、長い矢印をつけたい場合は \overrightarrow を使えば良い。 例 $\vec{ …

no image

tex で数式モード内に普通の文字列を入力する方法

\textrm を使う。 例 $$y = f (x) \hspace{1cm} \textrm{This is a function.}$$ 結果

no image

c++ で文字列を「区切り文字」を使って分ける方法

string の find を使って、区切り文字の場所を取得し、その位置で区切る。 例 #include <iostream> #include <string> using namesp …

no image

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

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

no image

c++ で文字列をファイルに保存する方法

result.txt というファイルに “data1 data2 data3” という内容を保存する。ofstream を使って書き出す。 例 #include<iost …