Jawab
1. Integral Reimann
Integral Riemann ( N = 10)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 10
Lebar = 0,3142857143
GRAFIK
120 100
100
80
JUMLAH N
50
60
40 20
10
20
0
0 0.05 0.1 0.15 0.2
LUAS
2. Integral Trapezoida
Integral Trapezoida ( N = 10)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 10
Lebar = 0,3142857143
No. lebar (x) f(x) f(x)+2*f(x)+f(n)
1 0 - -
2 0,314285714 0,983618529 0,983618529
3 0,628571429 0,935438369 1,870876739
4 0,942857143 0,858284754 1,716569507
5 1,257142857 0,756646461 1,513292922
6 1,571428571 0,636363509 1,272727018
7 1,885714286 0,504223678 1,008447357
8 2,2 0,367498365 0,734996731
9 2,514285714 0,233452608 0,466905216
10 2,828571429 0,108865716 0,217731432
11 3,142857143 -0,00040234 -0,000402337
TOTAL 5,383989653 9,784763114
h = 0,031429
) ∑ ) ))
Integral Trapezoida ( N = 20)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 20
Lebar = 0,157142857
No. lebar (x) f(x) f(x)+2*f(x)+f(n)
1 0 - -
2 0,157142857 0,995889432 0,995889432
3 0,314285714 0,983618529 1,967237058
4 0,471428571 0,963368619 1,926737238
5 0,628571429 0,935438369 1,870876739
6 0,785714286 0,900238536 1,800477071
7 0,942857143 0,858284754 1,716569507
8 1,1 0,810188509 1,620377018
9 1,257142857 0,756646461 1,513292922
10 1,414285714 0,69842832 1,396856639
11 1,571428571 0,636363509 1,272727018
12 1,728571429 0,571326871 1,142653743
13 1,885714286 0,504223678 1,008447357
14 2,042857143 0,435974235 0,87194847
15 2,2 0,367498365 0,734996731
16 2,357142857 0,299700065 0,599400129
17 2,514285714 0,233452608 0,466905216
18 2,671428571 0,169584384 0,339168769
19 2,828571429 0,108865716 0,217731432
20 2,985714286 0,051996897 0,103993793
21 3,142857143 -0,00040234 -0,000402337
TOTAL 11,28068552 21,56588395
h = 0,007857
) ∑ ) ))
Integral Trapezoida ( N = 50)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 50
Lebar = 0,062857143
) ∑ ) ))
h = 0,000314
) ∑ ) ))
Grafik Hasil
GRAFIK
120
100
100
80
JUMLAH N
60 50
40
20
20 10
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18
LUAS
3. Integral Simpson
Integral Simpson 1/3 ( N = 10)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 10
Lebar = 0,3142857143
h = 0,031429
(( ) ∑ ) ∑ ) ))
Integral Simpson 1/3 ( N = 20)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 20
Lebar = 0,157142857
h = 0,007857
(( ) ∑ ) ∑ ) ))
Integral Simpson 1/3 ( N = 50)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 50
Lebar = 0,062857143
h = 0,001257
(( ) ∑ ) ∑ ) ))
Integral Simpson 1/3 ( N = 100 )
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 100
Lebar = 0,031428571
h = 0,000314
(( ) ∑ ) ∑ ) ))
Grafik Hasil
GRAFIK
120
100
100
80
JUMLAH N
60 50
40
20
20 10
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18
LUAS
Tampilan program scilab
PROGRAMNYA
a=0
b=2
n=256
h=(b-a)/n
x=a
sigmaganjil=0
sigmagenap=0
in1= ((4*0)-(0^3))*exp(0^2)
printf('%2d \t %11.6f \t %11.6f \n',1,a,in1);
for i=1:n-1;
x=x+h
fr=((4*x)-(x^3))*exp(x^2)
printf('%2d \t %11.6f \t %11.6f \n',i,x,fr);
if modulo(i,2) ==0 then
sigmagenap=sigmagenap+2*((4*x)-(x^3))*exp(x^2)
else
sigmaganjil=sigmaganjil+4*((4*x)-(x^3))*exp(x^2)
end
end
inakhir= ((4*2)-(2^3))*exp(2^2)
printf('%2d \t %11.6f \t %11.6f \n',n,2,inakhir);
jumlah=(in1+sigmaganjil+sigmagenap+inakhir)/3
disp("Hasil perhitungan simpson=")
printf('%11.6f',jumlah)
a=0
b=2
n=256
h=(b-a)/n
x=a
sigma=0
in1= ((4*0)-(0^3))*exp(0^2)
printf('%2d \t %11.6f \t %11.6f \n',1,a,in1);
for i=1:n-1;
x=x+h
fr=((4*x)-(x^3))*exp(x^2)
printf('%2d \t %11.6f \t %11.6f \n',i,x,fr);
sigma=sigma+2*((4*x)-(x^3))*exp(x^2)
end
inakhir= ((4*2)-(2^3))*exp(2^2)
printf('%2d \t %11.6f \t %11.6f \n',n,2,inakhir);
jumlah=(in1+sigma+inakhir)/2
disp("Hasil perhitungan trapesium=")
printf('%11.6f',jumlah)
TAMPILAN PADA SCILAB