SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
Using Taylor ' s Series method taking algorithm of order 3. solve the initial value problem y'
=1 + y ; y(0)=0 h = 0.5 At X=1
Solution
%% % taylororder 3 rule
%%
clear all
fork=1:2
h=0.5/k ;
tmax=1;
n=tmax /h;
x(1)= 0;
y(1)= 0;
tout=x(1);
yout=y(1).';
true(1) = 0;
ero(1) =0;
trout=true(1).';
erout=ero(1);
ero(1) =0;
disp(' x actual Taylor(order3)error ')
disp('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
fori=1:(n + 1 )
x(i+1) = x(1)+ i*h;
T3 = (1+y(i)+(h/2)*(1+y(i)+x(i) )+h^2*(1+x(i)+y(i)) );
y(i+1) = y(i) + h*T3;
%
true(i+1) = exp(x(i)) -1;
ero(i+1) =abs( y(i) -true(i+1) );
%
tout=[tout;x(i)];
yout=[yout,y(i).'];
trout=[trout,true(i).'];
erout=[erout,ero(i).'];
%
ifrem(i-1 ,k) ==0% x(i)<= 0.1 %rem(i-1,10) == 0
fprintf('%5.2f%12.7f%12.7f%15.7f ' ,x(i),true(i+1),y(i), ero(i+1) );
end% if
end% i

Contenu connexe

Similaire à Using Taylor s Series method taking algorithm of order 3. solve th.pdf

question 1a) tm=0.0089b) the tab.docx
question 1a) tm=0.0089b) the tab.docxquestion 1a) tm=0.0089b) the tab.docx
question 1a) tm=0.0089b) the tab.docx
makdul
 
Tarea De Scilab By Sebastian Vasquez
Tarea De Scilab By Sebastian VasquezTarea De Scilab By Sebastian Vasquez
Tarea De Scilab By Sebastian Vasquez
Sebastian Vasquez
 
X01 Supervised learning problem linear regression one feature theorie
X01 Supervised learning problem linear regression one feature theorieX01 Supervised learning problem linear regression one feature theorie
X01 Supervised learning problem linear regression one feature theorie
Marco Moldenhauer
 
07 chap3
07 chap307 chap3
07 chap3
ELIMENG
 

Similaire à Using Taylor s Series method taking algorithm of order 3. solve th.pdf (20)

501 lecture8
501 lecture8501 lecture8
501 lecture8
 
Ch07 7
Ch07 7Ch07 7
Ch07 7
 
Trapezoidal Method IN Numerical Analysis
Trapezoidal Method IN  Numerical AnalysisTrapezoidal Method IN  Numerical Analysis
Trapezoidal Method IN Numerical Analysis
 
Introduction to Differential Equations
Introduction to Differential EquationsIntroduction to Differential Equations
Introduction to Differential Equations
 
Power Series,Taylor's and Maclaurin's Series
Power Series,Taylor's and Maclaurin's SeriesPower Series,Taylor's and Maclaurin's Series
Power Series,Taylor's and Maclaurin's Series
 
Contemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manualContemporary communication systems 1st edition mesiya solutions manual
Contemporary communication systems 1st edition mesiya solutions manual
 
Sary
SarySary
Sary
 
Taylors series
Taylors series Taylors series
Taylors series
 
stochastic processes assignment help
stochastic processes assignment helpstochastic processes assignment help
stochastic processes assignment help
 
160511 hasegawa lab_seminar
160511 hasegawa lab_seminar160511 hasegawa lab_seminar
160511 hasegawa lab_seminar
 
Numerical Method for UOG mech stu prd by Abdrehman Ahmed
Numerical Method for UOG mech stu prd by Abdrehman Ahmed Numerical Method for UOG mech stu prd by Abdrehman Ahmed
Numerical Method for UOG mech stu prd by Abdrehman Ahmed
 
question 1a) tm=0.0089b) the tab.docx
question 1a) tm=0.0089b) the tab.docxquestion 1a) tm=0.0089b) the tab.docx
question 1a) tm=0.0089b) the tab.docx
 
Crib Sheet AP Calculus AB and BC exams
Crib Sheet AP Calculus AB and BC examsCrib Sheet AP Calculus AB and BC exams
Crib Sheet AP Calculus AB and BC exams
 
Ejercicios Scilab Completo
Ejercicios Scilab CompletoEjercicios Scilab Completo
Ejercicios Scilab Completo
 
Advanced Engineering Mathematics
Advanced Engineering MathematicsAdvanced Engineering Mathematics
Advanced Engineering Mathematics
 
Tarea De Scilab By Sebastian Vasquez
Tarea De Scilab By Sebastian VasquezTarea De Scilab By Sebastian Vasquez
Tarea De Scilab By Sebastian Vasquez
 
Sect5 4
Sect5 4Sect5 4
Sect5 4
 
X01 Supervised learning problem linear regression one feature theorie
X01 Supervised learning problem linear regression one feature theorieX01 Supervised learning problem linear regression one feature theorie
X01 Supervised learning problem linear regression one feature theorie
 
Ch08 3
Ch08 3Ch08 3
Ch08 3
 
07 chap3
07 chap307 chap3
07 chap3
 

Plus de admaniimran

What are the main techniques of capital budgeting Can you briefl.pdf
 What are the main techniques of capital budgeting Can you briefl.pdf What are the main techniques of capital budgeting Can you briefl.pdf
What are the main techniques of capital budgeting Can you briefl.pdf
admaniimran
 
What are the differences between PSK and DPSKSolutionThe fol.pdf
 What are the differences between PSK and DPSKSolutionThe fol.pdf What are the differences between PSK and DPSKSolutionThe fol.pdf
What are the differences between PSK and DPSKSolutionThe fol.pdf
admaniimran
 
What are the current asset financing strategies that firms adopt Fi.pdf
 What are the current asset financing strategies that firms adopt  Fi.pdf What are the current asset financing strategies that firms adopt  Fi.pdf
What are the current asset financing strategies that firms adopt Fi.pdf
admaniimran
 
What are the areas in Transportation Engineering, where Civil Eng.pdf
 What are the areas in Transportation Engineering, where Civil Eng.pdf What are the areas in Transportation Engineering, where Civil Eng.pdf
What are the areas in Transportation Engineering, where Civil Eng.pdf
admaniimran
 

Plus de admaniimran (20)

What is the difference to be found between surface waters and the.pdf
 What is the difference to be found between surface waters and the.pdf What is the difference to be found between surface waters and the.pdf
What is the difference to be found between surface waters and the.pdf
 
What is the area of the parallelogram (5,6) (-7,6) 5, 4 7, 4 Sol.pdf
 What is the area of the parallelogram (5,6) (-7,6) 5, 4 7, 4 Sol.pdf What is the area of the parallelogram (5,6) (-7,6) 5, 4 7, 4 Sol.pdf
What is the area of the parallelogram (5,6) (-7,6) 5, 4 7, 4 Sol.pdf
 
What is return on equity What is net profit margin What is total as.pdf
 What is return on equity What is net profit margin What is total as.pdf What is return on equity What is net profit margin What is total as.pdf
What is return on equity What is net profit margin What is total as.pdf
 
What is on a classified balance sheet What is on a classified b.pdf
 What is on a classified balance sheet What is on a classified b.pdf What is on a classified balance sheet What is on a classified b.pdf
What is on a classified balance sheet What is on a classified b.pdf
 
What is depreciation What is depreciation Solu.pdf
 What is depreciation  What is depreciation Solu.pdf What is depreciation  What is depreciation Solu.pdf
What is depreciation What is depreciation Solu.pdf
 
What industry controlled California politics in the late 1800s and .pdf
 What industry controlled California politics in the late 1800s and .pdf What industry controlled California politics in the late 1800s and .pdf
What industry controlled California politics in the late 1800s and .pdf
 
what functions were intergrates into the microfluidic chip projec.pdf
 what functions were intergrates into the microfluidic chip projec.pdf what functions were intergrates into the microfluidic chip projec.pdf
what functions were intergrates into the microfluidic chip projec.pdf
 
What does a Geothermal heating and cooling do (I appreciate it if yo.pdf
 What does a Geothermal heating and cooling do (I appreciate it if yo.pdf What does a Geothermal heating and cooling do (I appreciate it if yo.pdf
What does a Geothermal heating and cooling do (I appreciate it if yo.pdf
 
What does the acronym GIS stands for List any 4 (four) componentss.pdf
 What does the acronym GIS stands for  List any 4 (four) componentss.pdf What does the acronym GIS stands for  List any 4 (four) componentss.pdf
What does the acronym GIS stands for List any 4 (four) componentss.pdf
 
What distribution does the F distribution approach as the sample .pdf
 What distribution does the F distribution approach as the sample .pdf What distribution does the F distribution approach as the sample .pdf
What distribution does the F distribution approach as the sample .pdf
 
What communication skills do business value What communication.pdf
 What communication skills do business value What communication.pdf What communication skills do business value What communication.pdf
What communication skills do business value What communication.pdf
 
What assumptions are made about the population from which indepen.pdf
 What assumptions are made about the population from which indepen.pdf What assumptions are made about the population from which indepen.pdf
What assumptions are made about the population from which indepen.pdf
 
What are the various sources of conflict and politics that have p.pdf
 What are the various sources of conflict and politics that have p.pdf What are the various sources of conflict and politics that have p.pdf
What are the various sources of conflict and politics that have p.pdf
 
What are the two new civilian codes added to the modernized satellite.pdf
 What are the two new civilian codes added to the modernized satellite.pdf What are the two new civilian codes added to the modernized satellite.pdf
What are the two new civilian codes added to the modernized satellite.pdf
 
What are the main techniques of capital budgeting Can you briefl.pdf
 What are the main techniques of capital budgeting Can you briefl.pdf What are the main techniques of capital budgeting Can you briefl.pdf
What are the main techniques of capital budgeting Can you briefl.pdf
 
What are the different ways of loading a code into an AYR chipSo.pdf
 What are the different ways of loading a code into an AYR chipSo.pdf What are the different ways of loading a code into an AYR chipSo.pdf
What are the different ways of loading a code into an AYR chipSo.pdf
 
What are the differences between PSK and DPSKSolutionThe fol.pdf
 What are the differences between PSK and DPSKSolutionThe fol.pdf What are the differences between PSK and DPSKSolutionThe fol.pdf
What are the differences between PSK and DPSKSolutionThe fol.pdf
 
What are some factors used to determine whether an individual is an e.pdf
 What are some factors used to determine whether an individual is an e.pdf What are some factors used to determine whether an individual is an e.pdf
What are some factors used to determine whether an individual is an e.pdf
 
What are the current asset financing strategies that firms adopt Fi.pdf
 What are the current asset financing strategies that firms adopt  Fi.pdf What are the current asset financing strategies that firms adopt  Fi.pdf
What are the current asset financing strategies that firms adopt Fi.pdf
 
What are the areas in Transportation Engineering, where Civil Eng.pdf
 What are the areas in Transportation Engineering, where Civil Eng.pdf What are the areas in Transportation Engineering, where Civil Eng.pdf
What are the areas in Transportation Engineering, where Civil Eng.pdf
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Dernier (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Using Taylor s Series method taking algorithm of order 3. solve th.pdf

  • 1. Using Taylor ' s Series method taking algorithm of order 3. solve the initial value problem y' =1 + y ; y(0)=0 h = 0.5 At X=1 Solution %% % taylororder 3 rule %% clear all fork=1:2 h=0.5/k ; tmax=1; n=tmax /h; x(1)= 0; y(1)= 0; tout=x(1); yout=y(1).'; true(1) = 0; ero(1) =0; trout=true(1).'; erout=ero(1); ero(1) =0; disp(' x actual Taylor(order3)error ') disp('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') fori=1:(n + 1 ) x(i+1) = x(1)+ i*h; T3 = (1+y(i)+(h/2)*(1+y(i)+x(i) )+h^2*(1+x(i)+y(i)) ); y(i+1) = y(i) + h*T3; % true(i+1) = exp(x(i)) -1; ero(i+1) =abs( y(i) -true(i+1) ); % tout=[tout;x(i)]; yout=[yout,y(i).']; trout=[trout,true(i).']; erout=[erout,ero(i).']; %
  • 2. ifrem(i-1 ,k) ==0% x(i)<= 0.1 %rem(i-1,10) == 0 fprintf('%5.2f%12.7f%12.7f%15.7f ' ,x(i),true(i+1),y(i), ero(i+1) ); end% if end% i