回答編集履歴
1
d
test
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
```pythonimport numpy as np
|
8
8
|
|
9
9
|
import matplotlib.pyplot as plt
|
10
|
+
|
11
|
+
import numpy as np
|
10
12
|
|
11
13
|
|
12
14
|
|
@@ -22,9 +24,9 @@
|
|
22
24
|
|
23
25
|
|
24
26
|
|
25
|
-
plt.plot(x, s1, 'bo
|
27
|
+
plt.plot(x, s1, 'bo', label='$1^x$', ms=3)
|
26
28
|
|
27
|
-
plt.plot(x, s2, 'go
|
29
|
+
plt.plot(x, s2, 'go', label='$(-1)^x$', ms=3)
|
28
30
|
|
29
31
|
plt.xlabel('x')
|
30
32
|
|