回答編集履歴
2
参照を追加
answer
CHANGED
@@ -6,4 +6,6 @@
|
|
6
6
|
Traceback (most recent call last):
|
7
7
|
File "<stdin>", line 1, in <module>
|
8
8
|
ValueError: math domain error
|
9
|
-
```
|
9
|
+
```
|
10
|
+
|
11
|
+
わからなければ、[対数関数のグラフについて](http://www2.edu-ctr.pref.okayama.jp/math/204/20412.html) を見てください。
|
1
例を追加
answer
CHANGED
@@ -1,1 +1,9 @@
|
|
1
|
-
ゼロの対数はマイナス無限大なので、エラーが起こって当然です。
|
1
|
+
ゼロの対数はマイナス無限大なので、エラーが起こって当然です。
|
2
|
+
|
3
|
+
以下を見てください。
|
4
|
+
```python
|
5
|
+
>>> math.log(0)
|
6
|
+
Traceback (most recent call last):
|
7
|
+
File "<stdin>", line 1, in <module>
|
8
|
+
ValueError: math domain error
|
9
|
+
```
|