Question: Could you great me a Schrodinger code that I can use it in the Matlab program? Like in the picture, STC 4G 7:05 PM o
Could you great me a Schrodinger code that I can use it in the Matlab program? Like in the picture,
STC 4G 7:05 PM o google.com /Iprogram to solve 1D infinite well problem by Mahesha M G lude #de fine pi 3.14159 main() int i,j,n,m float y[1000],y2[1000], x0-0,xl,h, sum2-1,x; FILE *fp; fp fopen("particle.dat","w") printf("Enter energy state n: ") scanf("%d" ,&n) ; printf("Enter length of the well(in nm): scanf ( "%f",6x1 ) ; printf("Enter stepsize: ) scanf("f",&h) m (xl-x0)/h x-x0; y[0]#0; y[m]#0; y11-1; for(12;1 #de fine pi 3.14159 main() int i,j,n,m float y[1000],y2[1000], x0-0,xl,h, sum2-1,x; FILE *fp; fp fopen("particle.dat","w") printf("Enter energy state n: ") scanf("%d" ,&n) ; printf("Enter length of the well(in nm): scanf ( "%f",6x1 ) ; printf("Enter stepsize: ) scanf("f",&h) m (xl-x0)/h x-x0; y[0]#0; y[m]#0; y11-1; for(12;1