Professional Documents
Culture Documents
Fungsi @ (T, Y) 4 Exp (0.8 T) - 0.5 T
Fungsi @ (T, Y) 4 Exp (0.8 T) - 0.5 T
5*t
fungsi =
@(t,y)4*exp(0.8*t)-0.5*t
>> a=0
a=
>> b=4
b=
>> n=20
n=
20
>> alfa=2
alfa =
>> [t y]=rk_4(fungsi,a,b,n,alfa)
h=
0.2000
t=
Columns 1 through 12
0 0.2000 0.6000 1.2000 2.0000 3.0000 4.2000 5.6000 7.2000 9.0000 11.0000
13.2000
Columns 13 through 21
y=
1.0e+013 *
Columns 1 through 12
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000
Columns 13 through 21
t=
Columns 1 through 12
0 0.2000 0.6000 1.2000 2.0000 3.0000 4.2000 5.6000 7.2000 9.0000 11.0000
13.2000
Columns 13 through 21
y=
1.0e+013 *
Columns 1 through 12
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000
Columns 13 through 21
>> plot(t,y)