LoginSignup
4
1

More than 1 year has passed since last update.

0の0乗は何か?

Posted at

0の0乗は何かを検索するといろいろな意見が出てきます。

「1だ」「いや0だ」「いやそもそも定義できない」など。

そこでpythonでy=0^xのグラフを描いて検証しました。

指数関数のグラフを描くのに下の記事を参考にしました。

コードは以下です。

o^o
import matplotlib.pyplot as plt
import numpy as np
import math
x = np.arange(0, 10, 0.1)
y = 0**x
plt.plot(x, y)
plt.ylim(-1.5, 1.5)
plt.show()

出力結果は下になりました。

0power0.png

pythonによると0の0乗は1らしいですね。

信じるか信じないかはあなた次第です(キリッ

4
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1