Fix incorrect matrix size
This commit is contained in:
parent
0d8f8ef6cc
commit
5e7027974f
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ def Miguel_S5_Aufg2(x, y, xx):
|
|||
n = len(x)
|
||||
a = empty((n - 1, 1))
|
||||
b = empty((n - 1, 1))
|
||||
c = empty((n + 1, 1))
|
||||
c = empty((n, 1))
|
||||
d = empty((n - 1, 1))
|
||||
h = empty((n - 1, 1))
|
||||
|
||||
|
@ -16,7 +16,7 @@ def Miguel_S5_Aufg2(x, y, xx):
|
|||
h[i] = x[i + 1] - x[i]
|
||||
|
||||
c[0] = 0
|
||||
c[n] = 0
|
||||
c[n - 1] = 0
|
||||
|
||||
A = zeros((n - 2, n - 2))
|
||||
z = empty((n - 2, 1))
|
||||
|
|
Loading…
Reference in a new issue