基本演算

加算演算子[addition operator]

>>> 1+2
3
>>> 1+3
4

減算演算子[subtraction operator]

>>> 8-2
6
>>> 10-6
4

乗算演算子[multiplication operator]

>>> 2*3
6
>>> 4*5
20

除算演算子[division operator]

>>> 6/3
2
>>> 7/5
1.4

整除算演算子[floor division operator]

>>> 5//2
2
>>> 7//2
3
>>> -7//2
-4

整除算演算子は,除算演算子の結果を超えない最小の整数を返すので,最後の例の場合は $-7/2=-3.5$ を超えない最小の整数 $-4$ が返ってきます.

Mathematics is the language with which God has written the universe.





















二項分布とポアソン分布の関係 インストール 確率変数 亜群 正規方程式 予測誤差