質問編集履歴
3
改善
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
下記のコードを書くとなぜa5の部分で表題のようなタイトルのエラーが発生するのでしょうか?
|
|
2
|
+

|
|
3
|
+
|
|
2
4
|
```
|
|
3
5
|
import numpy as np
|
|
4
6
|
import pandas as pd
|
2
改善
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
a2 = dec.Decimal(data[i+103][j])
|
|
20
20
|
a3 = dec.Decimal(data[i+104][j])
|
|
21
21
|
a4 = dec.Decimal(data[i+105][j])
|
|
22
|
-
|
|
22
|
+
a5 = dec.Decimal(data[i+106][j])
|
|
23
|
-
|
|
23
|
+
a6 = dec.Decimal(data[i+2][j])
|
|
24
|
-
|
|
24
|
+
a7 = dec.Decimal(data[i+53][j])
|
|
25
|
-
|
|
25
|
+
a8 = dec.Decimal(data[i+155][j])
|
|
26
|
-
|
|
26
|
+
a9 = dec.Decimal(data[i+206][j])
|
|
27
|
-
|
|
27
|
+
a10 = dec.Decimal(data[i+2][j])
|
|
28
|
-
|
|
28
|
+
x = a3 + a*((-b + 16*a4 - 60*a3 + 16*a2 - a1 - a9 + 16*a8 + 16*a7 - a6)/(deltax*deltax)) + b*((a5 - 4*a4 - 12*a3 - 4*a2 + a1 + a9 -4*a8 -4*a7 + a10)/(deltay*deltay))
|
|
29
29
|
|
|
30
30
|
list.append(x)
|
|
31
31
|
|
1
改善
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
下記のコードを書くとなぜa5の部分で表題のようなタイトルのエラーが発生するのでしょうか?
|
|
2
|
-
|
|
2
|
+
```
|
|
3
3
|
import numpy as np
|
|
4
4
|
import pandas as pd
|
|
5
5
|
import decimal as dec
|
|
@@ -29,4 +29,5 @@
|
|
|
29
29
|
|
|
30
30
|
list.append(x)
|
|
31
31
|
|
|
32
|
-
np.savetxt('sampletest.csv', list, delimiter=',')
|
|
32
|
+
np.savetxt('sampletest.csv', list, delimiter=',')
|
|
33
|
+
```
|