Persamaan Differensial Biasa (Ordinary Differential Equation) dengan metode hemming.
Hasil Running Program
Cara run Program di command windows MATLAB
>> clear, clf
>> a = 0; b = 5; y0 = 1; %batas atas/bawah nilai awal
>> N = 25; %number of segments
>> f = inline('-2*x*y^2','x','y'); % fungsi
>> f_s = inline('1./(x.^2 + 1)','x'); % fungsi sejati
>> [t,yH] = ode_Ham(f,[a b],y0,N);
>> yt1=f_s(t);
Hasil Running Program
Cara run Program di command windows MATLAB
>> clear, clf
>> a = 0; b = 5; y0 = 1; %batas atas/bawah nilai awal
>> N = 25; %number of segments
>> f = inline('-2*x*y^2','x','y'); % fungsi
>> f_s = inline('1./(x.^2 + 1)','x'); % fungsi sejati
>> [t,yH] = ode_Ham(f,[a b],y0,N);
>> yt1=f_s(t);
Referensi
Comments
Post a Comment