comment

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

関連記事

no image

tex でブロック行列を入力する方法

ゼロの成分が多いブロック行列を tex で出力する。 \usepackage{amsmath} を使う。 例 \usepackage{amsmath} \begin{document} $$ \lef …

no image

matplotlib で複数のグラフを並べて表示する方法

plot.subplots() でグラフの縦方向と横方向の数を指定する。 例 import numpy as np from matplotlib import pyplot as plt x1 = …

no image

python でリストに、コロン演算子2つ(::)を使う

リストのコロンで指定できるパラメータには、「start, end, step」という意味がある。 以下の例では、:: 5 とした場合には、5 をステップとして、次に進んでいく。 ::-5 とした場合に …

no image

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

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

no image

C言語で printf の行頭に戻る方法

\r を使うと、行の最初の文字に戻ることができる。 例 #include <stdio.h> int main() { printf(“あいうえお”); printf(“\rかきくけこ\n”); …