- #1
naruto365
- 10
- 0
I am trying to solve the potential barrier problem numerically in Mathematica
I am giving the following command but it is showing error which i could not figure out
a = 2;
s = NDSolve[{y1''[x] + k1*y1[x] == 0, y2''[x] + k2*y2[x] == 0,
y3''[x] + k1*y3[x] == 0}, {y1[0] == y2[0], y2[a] == y3[a],
y1'[0] == y2'[0], y2'[a] == y3'[a]}, {y1, y2, y3}, {x, -a, 2*a}]
Or is there any other way to do this numerically in mathematica
I am giving the following command but it is showing error which i could not figure out
a = 2;
s = NDSolve[{y1''[x] + k1*y1[x] == 0, y2''[x] + k2*y2[x] == 0,
y3''[x] + k1*y3[x] == 0}, {y1[0] == y2[0], y2[a] == y3[a],
y1'[0] == y2'[0], y2'[a] == y3'[a]}, {y1, y2, y3}, {x, -a, 2*a}]
Or is there any other way to do this numerically in mathematica