Anda di halaman 1dari 23

TUGAS 9

SISTEM KOMPUTASI DAN NUMERIK

NAMA : Achmad Khoirudin Abdullah


NIM : 190534646427
PRODI : S1 Pendidikan Teknik Elektro A’19

UNIVERSITAS NEGERI MALANG


FAKULTAS TEKNIK
JURUSAN TEKNIK ELEKTRO
PRODI PENDIDIKAN TEKNIK ELEKTRO
2021
 Soal
Hitung integral

Dengan menggunakan Integral Reiman, Trapezoida, dan Simson


 Bandingkan hasilnya dengan jumlah pembagi (N) yang sama, ambil N = 10, 50, 100,
500, dan 1000
 Lalu gambarkan N dan luas yang dihasilkan.

 Jawab
1. Integral Reimann
 Integral Riemann ( N = 10)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 10
Lebar = 0,3142857143

No. lebar (x) f(x)


1 0 -
2 0,314285714 0,983618529
3 0,628571429 0,935438369
4 0,942857143 0,858284754
5 1,257142857 0,756646461
6 1,571428571 0,636363509
7 1,885714286 0,504223678
h = 0,31429
8 2,2 0,367498365 ∑ ))
9 2,514285714 0,233452608
10 2,828571429 0,108865716
11 3,142857143 -0,00040234
TOTAL 5,383989653
 Integral Riemann ( N = 20)
Batas bawah =0
Batas atas = 3,142857143
Jumlah N = 20
Lebar = 0,157142857
No. lebar (x) f(x)
1 0 -
2 0,157142857 0,995889432 h = 0,007857
0,314285714 0,983618529
∑ ))
3
4 0,471428571 0,963368619
5 0,628571429 0,935438369
6 0,785714286 0,900238536
7 0,942857143 0,858284754
8 1,1 0,810188509
9 1,257142857 0,756646461
10 1,414285714 0,69842832
11 1,571428571 0,636363509
12 1,728571429 0,571326871
13 1,885714286 0,504223678
14 2,042857143 0,435974235
15 2,2 0,367498365
16 2,357142857 0,299700065
17 2,514285714 0,233452608
18 2,671428571 0,169584384
19 2,828571429 0,108865716
20 2,985714286 0,051996897
21 3,142857143 -0,00040234
TOTAL 11,28068552
 Integral Riemann ( N = 50)
Batas bawah =0
Batas atas = 3,142857143
Jumlah N = 50
Lebar = 0,062857143
No. lebar (x) f(x) No. lebar (x) f(x)
1 0 - 26 1,571429 0,636364
2 0,062857143 0,999341627 27 1,634286 0,610655
3 0,125714286 0,997368067 28 1,697143 0,584529
4 0,188571429 0,994083998 29 1,76 0,558042
5 0,251428571 0,989497198 30 1,822857 0,531254 h = 0,001257
𝐿 ∑ 𝑓 𝑥𝑖 ))
6 0,314285714 0,983618529 31 1,885714 0,504224
7 0,377142857 0,976461902 32 1,948571 0,47701 𝑳 𝟎 𝟎𝟒𝟐𝟓𝟕
8 0,44 0,968044239 33 2,011429 0,449672
9 0,502857143 0,958385426 34 2,074286 0,422268
10 0,565714286 0,947508257 35 2,137143 0,394857
11 0,628571429 0,935438369 36 2,2 0,367498
12 0,691428571 0,922204171 37 2,262857 0,340248
13 0,754285714 0,907836761 38 2,325714 0,313163
14 0,817142857 0,892369845 39 2,388571 0,286299
15 0,88 0,875839635 40 2,451429 0,259711
16 0,942857143 0,858284754 41 2,514286 0,233453
17 1,005714286 0,839746122 42 2,577143 0,207575
18 1,068571429 0,820266848 43 2,64 0,18213
19 1,131428571 0,799892104 44 2,702857 0,157165
20 1,194285714 0,778669001 45 2,765714 0,132729
21 1,257142857 0,756646461 46 2,828571 0,108866
22 1,32 0,733875076 47 2,891429 0,08562
23 1,382857143 0,71040697 48 2,954286 0,063032
24 1,445714286 0,686295657 49 3,017143 0,041141
25 1,508571429 0,661595889 50 3,08 0,019985
51 3,142857 -0,0004
TOTAL 33,85957
 Integral Reimann ( N= 100)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 100
Lebar = 0,031428571

No. lebar (x) f(x) No. lebar (x) f(x)


1 0 - 26 0,785714 0,900239
2 0,031428571 0,999835382 27 0,817143 0,89237
3 0,062857143 0,999341627 28 0,848571 0,884235
4 0,094285714 0,998519026 29 0,88 0,87584
5 0,125714286 0,997368067 30 0,911429 0,867188
6 0,157142857 0,995889432 31 0,942857 0,858285
7 0,188571429 0,994083998 32 0,974286 0,849136
8 0,22 0,991952832 33 1,005714 0,839746
9 0,251428571 0,989497198 34 1,037143 0,830121
10 0,282857143 0,986718549 35 1,068571 0,820267
11 0,314285714 0,983618529 36 1,1 0,810189
12 0,345714286 0,980198973 37 1,131429 0,799892
13 0,377142857 0,976461902 38 1,162857 0,789384
14 0,408571429 0,972409526 39 1,194286 0,778669
15 0,44 0,968044239 40 1,225714 0,767755
16 0,471428571 0,963368619 41 1,257143 0,756646
17 0,502857143 0,958385426 42 1,288571 0,745351
18 0,534285714 0,9530976 43 1,32 0,733875
19 0,565714286 0,947508257 44 1,351429 0,722225
20 0,597142857 0,941620692 45 1,382857 0,710407
21 0,628571429 0,935438369 46 1,414286 0,698428
22 0,66 0,928964927 47 1,445714 0,686296
23 0,691428571 0,922204171 48 1,477143 0,674016
24 0,722857143 0,915160071 49 1,508571 0,661596
25 0,754285714 0,907836761 50 1,54 0,649043
No. lebar (x) f(x) No. lebar (x) f(x)
51 1,571429 0,636364 76 2,357143 0,2997
52 1,602857 0,623565 77 2,388571 0,286299
53 1,634286 0,610655 78 2,42 0,272967
54 1,665714 0,597641 79 2,451429 0,259711
55 1,697143 0,584529 80 2,482857 0,246538
56 1,728571 0,571327 81 2,514286 0,233453
57 1,76 0,558042 82 2,545714 0,220463
58 1,791429 0,544682 83 2,577143 0,207575
59 1,822857 0,531254 84 2,608571 0,194795
60 1,854286 0,517766 85 2,64 0,18213
61 1,885714 0,504224 86 2,671429 0,169584
62 1,917143 0,490636 87 2,702857 0,157165
63 1,948571 0,47701 88 2,734286 0,144878
64 1,98 0,463353 89 2,765714 0,132729
65 2,011429 0,449672 90 2,797143 0,120723
66 2,042857 0,435974 91 2,828571 0,108866
67 2,074286 0,422268 92 2,86 0,097163
68 2,105714 0,40856 93 2,891429 0,08562
69 2,137143 0,394857 94 2,922857 0,074241
70 2,168571 0,381168 95 2,954286 0,063032
71 2,2 0,367498 96 2,985714 0,051997
72 2,231429 0,353856 97 3,017143 0,041141
73 2,262857 0,340248 98 3,048571 0,030469
74 2,294286 0,326681 99 3,08 0,019985
75 2,325714 0,313163 100 3,111429 0,009693
101 3,142857 -0,0004
TOTAL 58,42423
 Grafik Hasil

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

No. lebar (x) f(x) f(x)+2*f(x)+f(n)


1 0 - -
No. lebar (x) f(x)
2 0,062857143 0,999341627 0,999341627
26 1,571429 0,636364 1,272727
3 0,125714286 0,997368067 1,994736134
27 1,634286 0,610655 1,221311
4 0,188571429 0,994083998 1,988167995
28 1,697143 0,584529 1,169058
5 0,251428571 0,989497198 1,978994396
29 1,76 0,558042 1,116084
6 0,314285714 0,983618529 1,967237058
30 1,822857 0,531254 1,062508
7 0,377142857 0,976461902 1,952923804
31 1,885714 0,504224 1,008447
8 0,44 0,968044239 1,936088478
32 1,948571 0,47701 0,95402
9 0,502857143 0,958385426 1,916770852
33 2,011429 0,449672 0,899343
10 0,565714286 0,947508257 1,895016514
34 2,074286 0,422268 0,844536
11 0,628571429 0,935438369 1,870876739
35 2,137143 0,394857 0,789715
12 0,691428571 0,922204171 1,844408341
36 2,2 0,367498 0,734997
13 0,754285714 0,907836761 1,815673523
37 2,262857 0,340248 0,680496
14 0,817142857 0,892369845 1,78473969
38 2,325714 0,313163 0,626326
15 0,88 0,875839635 1,75167927
39 2,388571 0,286299 0,572599
16 0,942857143 0,858284754 1,716569507
40 2,451429 0,259711 0,519423
17 1,005714286 0,839746122 1,679492244
41 2,514286 0,233453 0,466905
18 1,068571429 0,820266848 1,640533696
42 2,577143 0,207575 0,41515
19 1,131428571 0,799892104 1,599784208
43 2,64 0,18213 0,36426
20 1,194285714 0,778669001 1,557338003
44 2,702857 0,157165 0,31433
21 1,257142857 0,756646461 1,513292922
45 2,765714 0,132729 0,265457
22 1,32 0,733875076 1,467750152
46 2,828571 0,108866 0,217731
23 1,382857143 0,71040697 1,42081394
47 2,891429 0,08562 0,171239
24 1,445714286 0,686295657 1,372591314
48 2,954286 0,063032 0,126063
25 1,508571429 0,661595889 1,323191778
49 3,017143 0,041141 0,082282
50 3,08 0,019985 0,03997
51 3,142857 -0,0004 -0,0004
TOTAL 33,85957 56,92259
h = 0,001257

) ∑ ) ))

 Integral Trapezoida ( N = 100 )


Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 100
Lebar = 0,031428571
No. lebar (x) f(x) f(x)+2*f(x)+f(n) No. lebar (x) f(x)
1 0 - - 26 0,785714 0,900239 1,800477
2 0,031428571 0,999835382 0,999835382 27 0,817143 0,89237 1,78474
3 0,062857143 0,999341627 1,998683253 28 0,848571 0,884235 1,768471
4 0,094285714 0,998519026 1,997038052 29 0,88 0,87584 1,751679
5 0,125714286 0,997368067 1,994736134 30 0,911429 0,867188 1,734376
6 0,157142857 0,995889432 1,991778865 31 0,942857 0,858285 1,71657
7 0,188571429 0,994083998 1,988167995 32 0,974286 0,849136 1,698272
8 0,22 0,991952832 1,983905664 33 1,005714 0,839746 1,679492
9 0,251428571 0,989497198 1,978994396 34 1,037143 0,830121 1,660243
10 0,282857143 0,986718549 1,973437098 35 1,068571 0,820267 1,640534
11 0,314285714 0,983618529 1,967237058 36 1,1 0,810189 1,620377
12 0,345714286 0,980198973 1,960397945 37 1,131429 0,799892 1,599784
13 0,377142857 0,976461902 1,952923804 38 1,162857 0,789384 1,578767
14 0,408571429 0,972409526 1,944819051 39 1,194286 0,778669 1,557338
15 0,44 0,968044239 1,936088478 40 1,225714 0,767755 1,535509
16 0,471428571 0,963368619 1,926737238 41 1,257143 0,756646 1,513293
17 0,502857143 0,958385426 1,916770852 42 1,288571 0,745351 1,490702
18 0,534285714 0,9530976 1,906195199 43 1,32 0,733875 1,46775
19 0,565714286 0,947508257 1,895016514 44 1,351429 0,722225 1,44445
20 0,597142857 0,941620692 1,883241383 45 1,382857 0,710407 1,420814
21 0,628571429 0,935438369 1,870876739 46 1,414286 0,698428 1,396857
22 0,66 0,928964927 1,857929854 47 1,445714 0,686296 1,372591
23 0,691428571 0,922204171 1,844408341 48 1,477143 0,674016 1,348032
24 0,722857143 0,915160071 1,830320142 49 1,508571 0,661596 1,323192
25 0,754285714 0,907836761 1,815673523 50 1,54 0,649043 1,298085
No. lebar (x) f(x) No. lebar (x) f(x)
51 1,571429 0,636364 1,272727 76 2,357143 0,2997 0,5994
52 1,602857 0,623565 1,247131 77 2,388571 0,286299 0,572599
53 1,634286 0,610655 1,221311 78 2,42 0,272967 0,545935
54 1,665714 0,597641 1,195281 79 2,451429 0,259711 0,519423
55 1,697143 0,584529 1,169058 80 2,482857 0,246538 0,493075
56 1,728571 0,571327 1,142654 81 2,514286 0,233453 0,466905
57 1,76 0,558042 1,116084 82 2,545714 0,220463 0,440926
58 1,791429 0,544682 1,089364 83 2,577143 0,207575 0,41515
59 1,822857 0,531254 1,062508 84 2,608571 0,194795 0,389591
60 1,854286 0,517766 1,035531 85 2,64 0,18213 0,36426
61 1,885714 0,504224 1,008447 86 2,671429 0,169584 0,339169
62 1,917143 0,490636 0,981272 87 2,702857 0,157165 0,31433
63 1,948571 0,47701 0,95402 88 2,734286 0,144878 0,289756
64 1,98 0,463353 0,926705 89 2,765714 0,132729 0,265457
65 2,011429 0,449672 0,899343 90 2,797143 0,120723 0,241446
66 2,042857 0,435974 0,871948 91 2,828571 0,108866 0,217731
67 2,074286 0,422268 0,844536 92 2,86 0,097163 0,194326
68 2,105714 0,40856 0,81712 93 2,891429 0,08562 0,171239
69 2,137143 0,394857 0,789715 94 2,922857 0,074241 0,148482
70 2,168571 0,381168 0,762336 95 2,954286 0,063032 0,126063
71 2,2 0,367498 0,734997 96 2,985714 0,051997 0,103994
72 2,231429 0,353856 0,707712 97 3,017143 0,041141 0,082282
73 2,262857 0,340248 0,680496 98 3,048571 0,030469 0,060938
74 2,294286 0,326681 0,653363 99 3,08 0,019985 0,03997
75 2,325714 0,313163 0,626326 100 3,111429 0,009693 0,019386
101 3,142857 -0,0004 -0,0004
TOTAL 58,42423 115,849

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

No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap TOTAL


GANJIL
GENAP
1 0 -
2 0,314285714 0,983618529 0,983618529
3 0,628571429 0,935438369 3,741753477
4 0,942857143 0,858284754 1,716569507
5 1,257142857 0,756646461 3,026585845
6 1,571428571 0,636363509 1,272727018
7 1,885714286 0,504223678 2,016894713
8 2,2 0,367498365 0,734996731
9 2,514285714 0,233452608 0,933810432
10 2,828571429 0,108865716 0,217731432
11 3,142857143 -0,00040234 -0,000402337
TOTAL 5,383989653 10,70226066 3,942024688 14,6443

h = 0,031429

(( ) ∑ ) ∑ ) ))
 Integral Simpson 1/3 ( N = 20)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 20
Lebar = 0,157142857

No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap TOTAL


GANJIL
GENAP
1 0 -
2 0,157142857 0,995889432 0,995889432
3 0,314285714 0,983618529 3,934474116
4 0,471428571 0,963368619 1,926737238
5 0,628571429 0,935438369 3,741753477
6 0,785714286 0,900238536 1,800477071
7 0,942857143 0,858284754 3,433139015
8 1,1 0,810188509 1,620377018
9 1,257142857 0,756646461 3,026585845
10 1,414285714 0,69842832 1,396856639
11 1,571428571 0,636363509 2,545454037
12 1,728571429 0,571326871 1,142653743
13 1,885714286 0,504223678 2,016894713
14 2,042857143 0,435974235 0,87194847
15 2,2 0,367498365 1,469993461
16 2,357142857 0,299700065 0,599400129
17 2,514285714 0,233452608 0,933810432
18 2,671428571 0,169584384 0,339168769
19 2,828571429 0,108865716 0,435462864
20 2,985714286 0,051996897 0,103993793
21 3,142857143 -0,00040234 -
0,000402337
TOTAL 11,28068552 22,53305506 9,801612872 32,3347

h = 0,007857

(( ) ∑ ) ∑ ) ))
 Integral Simpson 1/3 ( N = 50)
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 50
Lebar = 0,062857143

No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap


1 0 -
2 0,062857143 0,999341627 0,999341627
3 0,125714286 0,997368067 3,989472268
4 0,188571429 0,994083998 1,988167995
5 0,251428571 0,989497198 3,957988792
6 0,314285714 0,983618529 1,967237058
7 0,377142857 0,976461902 3,905847607
8 0,44 0,968044239 1,936088478
9 0,502857143 0,958385426 3,833541704
10 0,565714286 0,947508257 1,895016514
11 0,628571429 0,935438369 3,741753477
12 0,691428571 0,922204171 1,844408341
13 0,754285714 0,907836761 3,631347045
14 0,817142857 0,892369845 1,78473969
15 0,88 0,875839635 3,50335854
16 0,942857143 0,858284754 1,716569507
17 1,005714286 0,839746122 3,358984489
18 1,068571429 0,820266848 1,640533696
19 1,131428571 0,799892104 3,199568415
20 1,194285714 0,778669001 1,557338003
21 1,257142857 0,756646461 3,026585845
22 1,32 0,733875076 1,467750152
23 1,382857143 0,71040697 2,841627881
24 1,445714286 0,686295657 1,372591314
25 1,508571429 0,661595889 2,646383557
No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap
26 1,571429 0,636364 1,272727018
27 1,634286 0,610655 2,442621182
28 1,697143 0,584529 1,169057614
29 1,76 0,558042 2,232168903
30 1,822857 0,531254 1,062508397
31 1,885714 0,504224 2,016894713
32 1,948571 0,47701 0,954019527
33 2,011429 0,449672 1,798686162
34 2,074286 0,422268 0,844535847
35 2,137143 0,394857 1,579429992
36 2,2 0,367498 0,734996731
37 2,262857 0,340248 1,360991956
38 2,325714 0,313163 0,626326086
39 2,388571 0,286299 1,145197057
40 2,451429 0,259711 0,519422616
41 2,514286 0,233453 0,933810432
42 2,577143 0,207575 0,415150474
43 2,64 0,18213 0,728519114
44 2,702857 0,157165 0,314330395
45 2,765714 0,132729 0,530914878
46 2,828571 0,108866 0,217731432
47 2,891429 0,08562 0,342478372
48 2,954286 0,063032 0,126063377
49 3,017143 0,041141 0,164564702
50 3,08 0,019985 0,039969946
51 3,142857 -0,0004 -
0,000402337
TOTAL 33,85957 85,37895658

h = 0,001257

(( ) ∑ ) ∑ ) ))
 Integral Simpson 1/3 ( N = 100 )
Batas bawah = 0
Batas atas = 3,142857143
Jumlah N = 100
Lebar = 0,031428571

No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap


1 0 -
2 0,031428571 0,999835382 0,999835382
3 0,062857143 0,999341627 3,997366507
4 0,094285714 0,998519026 1,997038052
5 0,125714286 0,997368067 3,989472268
6 0,157142857 0,995889432 1,991778865
7 0,188571429 0,994083998 3,97633599
8 0,22 0,991952832 1,983905664
9 0,251428571 0,989497198 3,957988792
10 0,282857143 0,986718549 1,973437098
11 0,314285714 0,983618529 3,934474116
12 0,345714286 0,980198973 1,960397945
13 0,377142857 0,976461902 3,905847607
14 0,408571429 0,972409526 1,944819051
15 0,44 0,968044239 3,872176955
16 0,471428571 0,963368619 1,926737238
17 0,502857143 0,958385426 3,833541704
18 0,534285714 0,9530976 1,906195199
19 0,565714286 0,947508257 3,790033029
20 0,597142857 0,941620692 1,883241383
21 0,628571429 0,935438369 3,741753477
22 0,66 0,928964927 1,857929854
23 0,691428571 0,922204171 3,688816683
24 0,722857143 0,915160071 1,830320142
25 0,754285714 0,907836761 3,631347045
No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap
26 1,571429 0,636364 1,272727018
27 1,634286 0,610655 2,442621182
28 1,697143 0,584529 1,169057614
29 1,76 0,558042 2,232168903
30 1,822857 0,531254 1,062508397
31 1,885714 0,504224 2,016894713
32 1,948571 0,47701 0,954019527
33 2,011429 0,449672 1,798686162
34 2,074286 0,422268 0,844535847
35 2,137143 0,394857 1,579429992
36 2,2 0,367498 0,734996731
37 2,262857 0,340248 1,360991956
38 2,325714 0,313163 0,626326086
39 2,388571 0,286299 1,145197057
40 2,451429 0,259711 0,519422616
41 2,514286 0,233453 0,933810432
42 2,577143 0,207575 0,415150474
43 2,64 0,18213 0,728519114
44 2,702857 0,157165 0,314330395
45 2,765714 0,132729 0,530914878
46 2,828571 0,108866 0,217731432
47 2,891429 0,08562 0,342478372
48 2,954286 0,063032 0,126063377
49 3,017143 0,041141 0,164564702
50 3,08 0,019985 0,039969946
No. lebar (x) f(x) 4*f(x)ganjil 2*f(x)genap TOTAL
GANJIL
GENAP
76 2,357143 0,2997 0,5994
77 2,388571 0,286299 1,145197
78 2,42 0,272967 0,545935
79 2,451429 0,259711 1,038845
80 2,482857 0,246538 0,493075
81 2,514286 0,233453 0,93381
82 2,545714 0,220463 0,440926
83 2,577143 0,207575 0,830301
84 2,608571 0,194795 0,389591
85 2,64 0,18213 0,728519
86 2,671429 0,169584 0,339169
87 2,702857 0,157165 0,628661
88 2,734286 0,144878 0,289756
89 2,765714 0,132729 0,530915
90 2,797143 0,120723 0,241446
91 2,828571 0,108866 0,435463
92 2,86 0,097163 0,194326
93 2,891429 0,08562 0,342478
94 2,922857 0,074241 0,148482
95 2,954286 0,063032 0,252127
96 2,985714 0,051997 0,103994
97 3,017143 0,041141 0,164565
98 3,048571 0,030469 0,060938
99 3,08 0,019985 0,07994
100 3,111429 0,009693 0,019386
101 3,142857 -0,0004 -0,0004
TOTAL 58,42423 116,2178 56,92726 173,145

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

Anda mungkin juga menyukai