回答編集履歴

2

2023/04/21 13:19

投稿

melian
melian

スコア19825

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, 11)
6
+ x = np.arange(11)
7
- y = 1.5 * x ** 2 # ∫3x dx == 3*(x**2/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
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-04-21/f54e8ef0-26f9-4b92-a0b1-1bce2e1eb7c9.png)
13
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-04-21/0a2ff267-0674-47a0-a9f1-4c36413d7240.png)

1

2023/04/21 13:15

投稿

melian
melian

スコア19825

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 // ∫3x dx == 3*(x**2/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()