SlideShare a Scribd company logo
Kelompok 2
Antonious putu
Aziz albarri
Bagus permadi
David samuel
Dicky ihsan
Toni nugraha
Contoh program diferensial
• function q=diffgen(func,n,x,h);
• if ((n=1)|(n==2)|(n==3)|(n==4))
• c=zeros(4,7);
• c(1,:)=[ 0 1 -8 0 8 -1 0];
• c(2,:)=[0 -1 16 -30 16 -1 0];
• c(3,:)=[1.5 -12 19.5 0 -19.5 12 -1.5];
• c(4,:)=[-2 24 -78 112 -78 24 -2];
• y=feval(func,x+ [-3:3]*h);
• q=c(n,:)*y' ; q = q/(12*h^n);
• else
• disp('n harus 1, 2, 3 atau 4 ');break
• end
output
• >> hasil=diffgen('cos',2,1.2,.01)
• hasil =
• -0.3624

More Related Content

What's hot

đạI số tổ hợp chương 5 ( p1)
đạI số tổ hợp chương 5 ( p1)đạI số tổ hợp chương 5 ( p1)
đạI số tổ hợp chương 5 ( p1)Thế Giới Tinh Hoa
 
Ejercicios De Sistemas De Ecuaciones 3 X3
Ejercicios De Sistemas De Ecuaciones 3 X3Ejercicios De Sistemas De Ecuaciones 3 X3
Ejercicios De Sistemas De Ecuaciones 3 X3titimartinez07
 
metodo simplex
metodo simplex metodo simplex
metodo simplex
Jossy Yambay
 
Manual de practicas
Manual de practicasManual de practicas
Manual de practicas
jacqueline de kikas
 
Equações 1º grau simples e com parenteses
Equações 1º grau   simples e com parentesesEquações 1º grau   simples e com parenteses
Equações 1º grau simples e com parentesesRita Sousa
 
Da toan d
Da toan dDa toan d
Da toan d
Hung Ho
 
المعادلات المتراجحات-النظمات
المعادلات المتراجحات-النظماتالمعادلات المتراجحات-النظمات
المعادلات المتراجحات-النظمات
rachid abkar
 
Psr calculation matlab code
Psr calculation matlab codePsr calculation matlab code
Psr calculation matlab code
SONURATHI1
 
Manual
ManualManual
Toan dh aa1_ct_14_da_2
Toan dh aa1_ct_14_da_2Toan dh aa1_ct_14_da_2
Toan dh aa1_ct_14_da_2dominhvuong
 

What's hot (12)

đạI số tổ hợp chương 5 ( p1)
đạI số tổ hợp chương 5 ( p1)đạI số tổ hợp chương 5 ( p1)
đạI số tổ hợp chương 5 ( p1)
 
Ejercicios De Sistemas De Ecuaciones 3 X3
Ejercicios De Sistemas De Ecuaciones 3 X3Ejercicios De Sistemas De Ecuaciones 3 X3
Ejercicios De Sistemas De Ecuaciones 3 X3
 
metodo simplex
metodo simplex metodo simplex
metodo simplex
 
Manual de practicas
Manual de practicasManual de practicas
Manual de practicas
 
Equações 1º grau simples e com parenteses
Equações 1º grau   simples e com parentesesEquações 1º grau   simples e com parenteses
Equações 1º grau simples e com parenteses
 
0006
00060006
0006
 
Números decimais gabarito
Números decimais  gabaritoNúmeros decimais  gabarito
Números decimais gabarito
 
Da toan d
Da toan dDa toan d
Da toan d
 
المعادلات المتراجحات-النظمات
المعادلات المتراجحات-النظماتالمعادلات المتراجحات-النظمات
المعادلات المتراجحات-النظمات
 
Psr calculation matlab code
Psr calculation matlab codePsr calculation matlab code
Psr calculation matlab code
 
Manual
ManualManual
Manual
 
Toan dh aa1_ct_14_da_2
Toan dh aa1_ct_14_da_2Toan dh aa1_ct_14_da_2
Toan dh aa1_ct_14_da_2
 

Viewers also liked

Elizabet Arocena saioaren aurkezpena
Elizabet Arocena saioaren aurkezpenaElizabet Arocena saioaren aurkezpena
Elizabet Arocena saioaren aurkezpena
bnhizkuntzak
 
1892274 635106617173888714
1892274 6351066171738887141892274 635106617173888714
1892274 635106617173888714Pavan Kalyan
 
Bn hizkuntza taldea
Bn hizkuntza taldeaBn hizkuntza taldea
Bn hizkuntza taldea
bnhizkuntzak
 
Positives and negative impacts of choices
Positives and negative impacts of choicesPositives and negative impacts of choices
Positives and negative impacts of choicesavandac
 
Privacy - Useful resources for department staff
Privacy - Useful resources for department staffPrivacy - Useful resources for department staff
Privacy - Useful resources for department staff
NSWCESE
 
Rolling Photos
Rolling PhotosRolling Photos
Rolling Photosclaraesber
 
Introduction to weebly
Introduction to weeblyIntroduction to weebly
Introduction to weeblytmjordan
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmltmjordan
 
Rationale Powerpoint Slides
Rationale Powerpoint SlidesRationale Powerpoint Slides
Rationale Powerpoint Slidesclaraesber
 
Wet chemical processing with megasonics assist for micro-bump resist stripping
Wet chemical processing with megasonics assist for micro-bump resist strippingWet chemical processing with megasonics assist for micro-bump resist stripping
Wet chemical processing with megasonics assist for micro-bump resist strippingJohn Tracy
 
20130705SchleicherSydney
20130705SchleicherSydney20130705SchleicherSydney
20130705SchleicherSydney
NSWCESE
 
Onset and rime powerpoint
Onset and rime powerpointOnset and rime powerpoint
Onset and rime powerpoint
Southern University
 
CEIPS La inmaculada Hijas de Jesús
CEIPS La inmaculada Hijas de JesúsCEIPS La inmaculada Hijas de Jesús
CEIPS La inmaculada Hijas de Jesús
bnhizkuntzak
 
IES Egape BHI
IES Egape BHI IES Egape BHI
IES Egape BHI
bnhizkuntzak
 

Viewers also liked (15)

Elizabet Arocena saioaren aurkezpena
Elizabet Arocena saioaren aurkezpenaElizabet Arocena saioaren aurkezpena
Elizabet Arocena saioaren aurkezpena
 
1892274 635106617173888714
1892274 6351066171738887141892274 635106617173888714
1892274 635106617173888714
 
Bn hizkuntza taldea
Bn hizkuntza taldeaBn hizkuntza taldea
Bn hizkuntza taldea
 
Positives and negative impacts of choices
Positives and negative impacts of choicesPositives and negative impacts of choices
Positives and negative impacts of choices
 
Privacy - Useful resources for department staff
Privacy - Useful resources for department staffPrivacy - Useful resources for department staff
Privacy - Useful resources for department staff
 
Rolling Photos
Rolling PhotosRolling Photos
Rolling Photos
 
Introduction to weebly
Introduction to weeblyIntroduction to weebly
Introduction to weebly
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Rationale Powerpoint Slides
Rationale Powerpoint SlidesRationale Powerpoint Slides
Rationale Powerpoint Slides
 
Wet chemical processing with megasonics assist for micro-bump resist stripping
Wet chemical processing with megasonics assist for micro-bump resist strippingWet chemical processing with megasonics assist for micro-bump resist stripping
Wet chemical processing with megasonics assist for micro-bump resist stripping
 
20130705SchleicherSydney
20130705SchleicherSydney20130705SchleicherSydney
20130705SchleicherSydney
 
Onset and rime powerpoint
Onset and rime powerpointOnset and rime powerpoint
Onset and rime powerpoint
 
Askep hipertiroid
Askep hipertiroidAskep hipertiroid
Askep hipertiroid
 
CEIPS La inmaculada Hijas de Jesús
CEIPS La inmaculada Hijas de JesúsCEIPS La inmaculada Hijas de Jesús
CEIPS La inmaculada Hijas de Jesús
 
IES Egape BHI
IES Egape BHI IES Egape BHI
IES Egape BHI
 

Kelompok 2 slideshare rk

  • 1. Kelompok 2 Antonious putu Aziz albarri Bagus permadi David samuel Dicky ihsan Toni nugraha
  • 2. Contoh program diferensial • function q=diffgen(func,n,x,h); • if ((n=1)|(n==2)|(n==3)|(n==4)) • c=zeros(4,7); • c(1,:)=[ 0 1 -8 0 8 -1 0]; • c(2,:)=[0 -1 16 -30 16 -1 0]; • c(3,:)=[1.5 -12 19.5 0 -19.5 12 -1.5]; • c(4,:)=[-2 24 -78 112 -78 24 -2]; • y=feval(func,x+ [-3:3]*h); • q=c(n,:)*y' ; q = q/(12*h^n); • else • disp('n harus 1, 2, 3 atau 4 ');break • end