Latihtan Integral Numerik 2023

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

NAMA : Farid Indra Nurcahyanto

NIM : 21045000008
MATAKULIAH : Metode Numerik Dan Komputasi
DOSEN PENGAJAR : Ir. H. ABD. RABI , M.Kom.

Latihan Integral Numerik:


1. Gambarkan serta hitunglah panjang kurva tertutup
a. x = 2cos(t); y = 3sin(t); 0  t  2
b. x = 2cos(2t); y = 3sin(2t); 0t1
c. x = 2cos3(2t); y = 2sin3(2t); 0t1
1. Gambarkan serta hitunglah panjang kurva tertutup
a. x = 2cos(t); y = 3sin(t); 0  t  2
>> t=[0:pi/1000:2*pi]';
>> plot(2*cos(t),3*sin(t));axis equal;grid
𝑑𝑦
 𝑑𝑥 = −2sin(𝑡); = 2cos(𝑡);
𝑑𝑡 𝑑𝑡
𝑑𝑥 2 𝑑𝑦 2
 ds = 𝑑𝑡 + 𝑑𝑡
𝑑𝑡
= 4sin2(𝑡) + 9cos2(𝑡) 𝑑𝑡
2𝜋
s = ʃ0 4sin2(𝑡) + 9cos2(𝑡) 𝑑𝑡

ℎ 𝑓
3 0 +𝑓 +4 𝑘=gasal 𝑓 +2 𝑘=genap 𝑓
2π σ 𝑡𝑘 σ 𝑡𝑘
Jika jumlah pita 10  h = 2π−0 = 0.6283…
10
π 2π 3π 4π 6π 7π 8π 9π
t 0
5
π 2π
5 5 5 5 5 5 5
f(t) 3.0000 2.6968 2.1160 2.1160 2.6968 3.0000 2.6968 2.1160 2.1160 2.6968 3.0000

s  0.6283
3 3 + 3 + 4 2.6968 + 2.1160 + 3 + 2.1160 + 2.6968 + 2(2.1160 + 2.6968 + 2.6968 + 2.1160 )
>> h=(2*pi-0)/10; t=[0:h:2*pi]'; >> s=(h/3)*(f(0)+f(2*pi)
>> f=@(t) sqrt(4*sin(t).^2+9*cos(t).^2); +4*gasal+2*genap)
>> gasal=sum(f(t(2:2:end-1)));
>> genap=sum(f(t(3:2:end-2)));
⇒ s ≈ 15.8657
Jika jumlah pita 100000  h = 2π−0
100000
>> h=(2*pi-0)/100000; t=[0:h:2*pi]';
>> f=@(t) sqrt(4*sin(t).^2+9*cos(t).^2);
 gasal=sum(f(t(2:2:end-1)));
>> s  15.865439589290602
>> genap=sum(f(t(3:2:end-2)));
>> s=(h/3)*(f(0)+f(2*pi)+4*gasal+2*genap)

b. x = 2cos(2t); y = 3sin(2t); 0t1


https://openomnia.com/parametric-curve
𝑑𝑦
 𝑑𝑥 = −4𝜋sin(2𝜋𝑡); = 6cos(2𝜋𝑡);
𝑑𝑡 𝑑𝑡

𝑑𝑥 2 𝑑𝑦 2
 ds = 𝑑𝑡 + 𝑑𝑡
𝑑𝑡
2𝜋
s = ʃ 0 16sin2(𝑡) + 36cos2(𝑡) 𝑑𝑡

ℎ 𝑓
3 0 +𝑓 +4 𝑘=gasal 𝑓 +2 𝑘=genap 𝑓
2π σ 𝑡𝑘 σ 𝑡𝑘
Jika jumlah pita 100000  h = 1−0
100000
>> h=(1-0)/100000; t=[0:h:1]';
>> f=@(t) pi*sqrt(16*sin(2*pi*t).^2+36*cos(2*pi*t).^2);
 gasal=sum(f(t(2:2:end-1)));
>> s  15.86541975251152
>> genap=sum(f(t(3:2:end-2)));
>> s=(h/3)*(f(0)+f(2*pi)+4*gasal+2*genap)
c. x = 2cos3(2t); y = 2sin3(2t); 0t1
https://openomnia.com/parametric-curve

>> h=(1-0)/100000; t=[0:h:1]';


>> f=@(t) pi*sqrt(144*sin(2*pi*t).^4.*sin(2*pi*t).^2+144*pi*sin(2*pi*t) .^4.*cos(2*pi*t).^2);
>> gasal=sum(f(t(2:2:end-1)));
>> genap=sum(f(t(3:2:end-2)));
>> s=(h/3)*(f(0)+f(2*pi)+4*gasal+2*genap)

 s  21.2695

You might also like