回答編集履歴
1
修正
test
CHANGED
@@ -50,9 +50,9 @@
|
|
50
50
|
|
51
51
|
```python
|
52
52
|
|
53
|
-
m=
|
53
|
+
m=3
|
54
54
|
|
55
|
-
X=np.array([x**k for k in range(0,m)]).T
|
55
|
+
X=np.array([x**k for k in range(0,m+1)]).T
|
56
56
|
|
57
57
|
z=np.linalg.solve(X.T@X,X.T@y)
|
58
58
|
|