Está en la página 1de 1

clc clear all; y0=0; y10=1e-5; l number as said in shooting method. e=0; y assumed n=100; od h=1/n; ene=secant_h(e,0.

01,1e-10,100,y0,y10,h); y eigen values y=runge_kutta(y0,y10,h,ene); function for i=1:n+1 x(i)=(i-1)*h; end plot(x,y,'-') ion ene e

%The value y1(0) % value of y2(0), a smal % initial value of energ % no of grids in RK meth % grid width %evaluation of the energ %calcualtion of the wave

% plot of the wave funct %display the energy valu

También podría gustarte