回答編集履歴
2
test
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
import numpy as np
|
4
4
|
import matplotlib.pyplot as plt
|
5
5
|
|
6
|
-
x = np.arange(1
|
6
|
+
x = np.arange(11)
|
7
|
-
y = 1.5 * x ** 2
|
7
|
+
y = 1.5 * x ** 2 # ∫3x dx == 3*(x**2/2)
|
8
8
|
|
9
9
|
plt.plot(x, y)
|
10
10
|
plt.gcf().tight_layout()
|
11
11
|
plt.show()
|
12
12
|
```
|
13
|
-

|
1
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
import matplotlib.pyplot as plt
|
5
5
|
|
6
6
|
x = np.arange(1, 11)
|
7
|
-
y = 1.5 * x ** 2
|
7
|
+
y = 1.5 * x ** 2 # ∫3x dx == 3*(x**2/2)
|
8
8
|
|
9
9
|
plt.plot(x, y)
|
10
10
|
plt.gcf().tight_layout()
|