Fix indentation
This commit is contained in:
parent
09df534f35
commit
111ae51feb
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ def Miguel_S5_Aufg2(x, y, xx):
|
|||
A[i][i] = 2 * (h[i] + h[i + 1])
|
||||
z[i] = 3 * (((y[i + 2] - y[i + 1]) / h[i + 1]) - ((y[i + 1] - y[i]) / h[i]))
|
||||
|
||||
if i < n - 3:
|
||||
A[i][i + 1] = h[i + 1]
|
||||
if i < n - 3:
|
||||
A[i][i + 1] = h[i + 1]
|
||||
|
||||
c[1:n - 1,:] = linalg.solve(A, z)
|
||||
|
||||
|
|
Loading…
Reference in a new issue