SlideShare a Scribd company logo
1 of 6
YEDITEPE UNIVERSITY
MECHANICAL ENGINEERING DEPARTMENT
ME 372 COMPUTER AIDED MECHANICAL ENGINEERING
ASSIGNMENT I
ALPER ERAL
280705037
I. INTRODUCTION
At the laboratory hour of ME 372 the task given was to investigate some
characteristics of a single degree-of-freedom system. While doing the
investigation, concepts such as Euler’s method, finding the exact solution and
taking derivatives were used. In order to solve the problem in a modular and
flexible way, operations, which were dealing with ordinary differential equations
and initial value problems, stated in the report were made. Throughout the report
detailed information about the process will be given via diagrams and MATLAB
codes.
II. RESULTS AND DISCUSSION
Functions exact.m and derive.m given during the laboratory hour were
changed into the forms stated below.
function [yexact] = exact(t, y0)
m=0.6297;
c=0.05;
I=0.7176E-2;
g=9.81;
lg=0.8446E-2;
T=c/(2*I*wn);
wn=sqrt((m*g*lg)/I);
w=wn*sqrt(1-(T^2));
c1=y0(1);
c2=-(T*wn*c1)/w;
yexact=exp(-T*wn*t))*(c1*cos(w*t)+c2*sin(w*t);
end
function f = deriv(tk, yk)
c=0.01;
lg=0.8446E-2
m=0.6297;
I=0.7176E-2;
c=0.01;
g=9.81;
f = [yk(2);(-c/I)*yk(2)-((m*g*lg)/I)*yk(1)];
After changing some parts of the function lab1_main.m, following diagrams
were drawn via MATLAB. In order to understand the affects of the c and h
variables, different values for them were used.
2
Figure 2: Diagram drawn when h=0.05
Figure 3: Diagram drawn when h=0.1
3
Figure 4: Diagram drawn when h=0.2
Figure 5: Diagram drawn when h=0.1 and c=0
Figure 6: Diagram drawn when h=0.1 and c=0.005
Figure 7: Diagram drawn when h=0.1 and c=0.02
4
Figure 8: Diagram drawn when h=0.1 and c=0.05
Throughout the trials, it can be commented that changes in c cause changes
approximate function and the changes in h affects the exact function. When
observed, it can be recognized that, using greater values for c and h have negative
effects on performance of the methods such as lack of accuracy and stability.
When c= 0.005 and h=0.1, the results are in harmony. They match accurately. The
optimum values for c can be considered between 0.005 and 0.05 and for h between
0.05 and 0.1.
III. CONCLUSION
After conducting numerous trials, it can be concluded great values for c and h
makes the function unstable and not accurate. While choosing the values for that
kind of an operation, this fact should be taken into account. One of the finest
results were observed for c= 0.005 and h=0.1. To have optimum results, h can be
taken between 0.05 and 0.1 and c between 0.005 and 0.05.
5
Figure 8: Diagram drawn when h=0.1 and c=0.05
Throughout the trials, it can be commented that changes in c cause changes
approximate function and the changes in h affects the exact function. When
observed, it can be recognized that, using greater values for c and h have negative
effects on performance of the methods such as lack of accuracy and stability.
When c= 0.005 and h=0.1, the results are in harmony. They match accurately. The
optimum values for c can be considered between 0.005 and 0.05 and for h between
0.05 and 0.1.
III. CONCLUSION
After conducting numerous trials, it can be concluded great values for c and h
makes the function unstable and not accurate. While choosing the values for that
kind of an operation, this fact should be taken into account. One of the finest
results were observed for c= 0.005 and h=0.1. To have optimum results, h can be
taken between 0.05 and 0.1 and c between 0.005 and 0.05.
5

More Related Content

What's hot

Application's of Numerical Math in CSE
Application's of Numerical Math in CSEApplication's of Numerical Math in CSE
Application's of Numerical Math in CSEsanjana mun
 
Relational algebra
Relational algebraRelational algebra
Relational algebraHuda Alameen
 
Matrix operations in MATLAB
Matrix operations in MATLABMatrix operations in MATLAB
Matrix operations in MATLABSaloni Singhal
 
5 1c Graphing lines from a point and slope
5 1c Graphing lines from a point and slope5 1c Graphing lines from a point and slope
5 1c Graphing lines from a point and slopeBitsy Griffin
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmlilyMalar1
 
Chapter 3 Solving By Graph
Chapter 3 Solving By GraphChapter 3 Solving By Graph
Chapter 3 Solving By Graphswartzje
 
DiffCalcFirstPartialReview
DiffCalcFirstPartialReviewDiffCalcFirstPartialReview
DiffCalcFirstPartialReviewCarlos Vázquez
 
Greatest integer
Greatest integerGreatest integer
Greatest integerdmidgette
 
Mathematical modelling
Mathematical modellingMathematical modelling
Mathematical modellingSadia Zareen
 
Honor's portfolio graphic organizer
Honor's portfolio graphic organizerHonor's portfolio graphic organizer
Honor's portfolio graphic organizerbbwilks
 
Limits and the motion of objects ii
Limits and the motion of objects iiLimits and the motion of objects ii
Limits and the motion of objects iibgustin53
 

What's hot (19)

2 r algebra
2 r algebra2 r algebra
2 r algebra
 
Math
MathMath
Math
 
Application's of Numerical Math in CSE
Application's of Numerical Math in CSEApplication's of Numerical Math in CSE
Application's of Numerical Math in CSE
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
 
Aslam
AslamAslam
Aslam
 
Matrix operations in MATLAB
Matrix operations in MATLABMatrix operations in MATLAB
Matrix operations in MATLAB
 
5 1c Graphing lines from a point and slope
5 1c Graphing lines from a point and slope5 1c Graphing lines from a point and slope
5 1c Graphing lines from a point and slope
 
Numerical Method
Numerical Method Numerical Method
Numerical Method
 
Difcalc10week2
Difcalc10week2Difcalc10week2
Difcalc10week2
 
Matlab Files
Matlab FilesMatlab Files
Matlab Files
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Chapter 3 Solving By Graph
Chapter 3 Solving By GraphChapter 3 Solving By Graph
Chapter 3 Solving By Graph
 
DiffCalcFirstPartialReview
DiffCalcFirstPartialReviewDiffCalcFirstPartialReview
DiffCalcFirstPartialReview
 
Greatest integer
Greatest integerGreatest integer
Greatest integer
 
Mathematical modelling
Mathematical modellingMathematical modelling
Mathematical modelling
 
Extreme point
Extreme pointExtreme point
Extreme point
 
Honor's portfolio graphic organizer
Honor's portfolio graphic organizerHonor's portfolio graphic organizer
Honor's portfolio graphic organizer
 
Limits and the motion of objects ii
Limits and the motion of objects iiLimits and the motion of objects ii
Limits and the motion of objects ii
 

Viewers also liked

Beyond tokenism draft 1
 Beyond tokenism draft 1 Beyond tokenism draft 1
Beyond tokenism draft 1markfriedman10
 
Iseb
IsebIseb
Isebiseb
 
Our class in the future, debate activity
Our class in the future, debate activityOur class in the future, debate activity
Our class in the future, debate activitynadinedib
 
Beyond tokenism training v30 peac
Beyond tokenism training v30 peacBeyond tokenism training v30 peac
Beyond tokenism training v30 peacmarkfriedman10
 
Iseb
IsebIseb
Isebiseb
 
Iseb
IsebIseb
Isebiseb
 
Refomasi pentadbiran awam
Refomasi pentadbiran awamRefomasi pentadbiran awam
Refomasi pentadbiran awamemzeka1987
 
CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10
CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10
CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10Fitriah Hassan
 
CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21
CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21
CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21Fitriah Hassan
 
CAPTAIN NOBODY FORM 5 NOVEL chapters 6-8
CAPTAIN NOBODY FORM 5 NOVEL  chapters 6-8CAPTAIN NOBODY FORM 5 NOVEL  chapters 6-8
CAPTAIN NOBODY FORM 5 NOVEL chapters 6-8Fitriah Hassan
 
CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2
CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2
CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2Fitriah Hassan
 
The Charge of the Light Brigade Form 4 2015 pdf
The Charge of the Light Brigade Form 4 2015 pdfThe Charge of the Light Brigade Form 4 2015 pdf
The Charge of the Light Brigade Form 4 2015 pdfFitriah Hassan
 

Viewers also liked (13)

Beyond tokenism draft 1
 Beyond tokenism draft 1 Beyond tokenism draft 1
Beyond tokenism draft 1
 
Iseb
IsebIseb
Iseb
 
Our class in the future, debate activity
Our class in the future, debate activityOur class in the future, debate activity
Our class in the future, debate activity
 
Assignment 3
Assignment 3Assignment 3
Assignment 3
 
Beyond tokenism training v30 peac
Beyond tokenism training v30 peacBeyond tokenism training v30 peac
Beyond tokenism training v30 peac
 
Iseb
IsebIseb
Iseb
 
Iseb
IsebIseb
Iseb
 
Refomasi pentadbiran awam
Refomasi pentadbiran awamRefomasi pentadbiran awam
Refomasi pentadbiran awam
 
CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10
CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10
CAPTAIN NOBODY FORM 5 NOVEL chapters 9-10
 
CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21
CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21
CAPTAIN NOBODY FORM 5 NOVEL chapters 20-21
 
CAPTAIN NOBODY FORM 5 NOVEL chapters 6-8
CAPTAIN NOBODY FORM 5 NOVEL  chapters 6-8CAPTAIN NOBODY FORM 5 NOVEL  chapters 6-8
CAPTAIN NOBODY FORM 5 NOVEL chapters 6-8
 
CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2
CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2
CAPTAIN NOBODY FORM 5 NOVEL CHAPTERS 1-2
 
The Charge of the Light Brigade Form 4 2015 pdf
The Charge of the Light Brigade Form 4 2015 pdfThe Charge of the Light Brigade Form 4 2015 pdf
The Charge of the Light Brigade Form 4 2015 pdf
 

Similar to Assignment i

Temperature measurement erdi karaçal
Temperature measurement erdi karaçalTemperature measurement erdi karaçal
Temperature measurement erdi karaçalErdi Karaçal
 
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdfSEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdfKRISHNADANI4
 
A simple finite element solver for thermo-mechanical problems - margonari eng...
A simple finite element solver for thermo-mechanical problems - margonari eng...A simple finite element solver for thermo-mechanical problems - margonari eng...
A simple finite element solver for thermo-mechanical problems - margonari eng...Scilab
 
MATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docx
MATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docxMATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docx
MATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docxandreecapon
 
Iterative Determinant Method for Solving Eigenvalue Problems
Iterative Determinant Method for Solving Eigenvalue ProblemsIterative Determinant Method for Solving Eigenvalue Problems
Iterative Determinant Method for Solving Eigenvalue Problemsijceronline
 
Numerical disperison analysis of sympletic and adi scheme
Numerical disperison analysis of sympletic and adi schemeNumerical disperison analysis of sympletic and adi scheme
Numerical disperison analysis of sympletic and adi schemexingangahu
 
Sheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docx
Sheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docxSheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docx
Sheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docxmaoanderton
 
Multivariate Regression Analysis
Multivariate Regression AnalysisMultivariate Regression Analysis
Multivariate Regression AnalysisKalaivanan Murthy
 
Mathematical modelling
Mathematical modellingMathematical modelling
Mathematical modellingNandiniNandus
 
Isen 614 project report
Isen 614 project reportIsen 614 project report
Isen 614 project reportVanshaj Handoo
 
Some Engg. Applications of Matrices and Partial Derivatives
Some Engg. Applications of Matrices and Partial DerivativesSome Engg. Applications of Matrices and Partial Derivatives
Some Engg. Applications of Matrices and Partial DerivativesSanjaySingh011996
 
Introduction to particle swarm optimization
Introduction to particle swarm optimizationIntroduction to particle swarm optimization
Introduction to particle swarm optimizationMrinmoy Majumder
 
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
Cauchy’s Inequality based study of the Differential Equations and the Simple ...Cauchy’s Inequality based study of the Differential Equations and the Simple ...
Cauchy’s Inequality based study of the Differential Equations and the Simple ...IRJET Journal
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docxsmile790243
 
Choice of weighting function and expansion function in cem
Choice of weighting function and expansion function in cemChoice of weighting function and expansion function in cem
Choice of weighting function and expansion function in cemMohit Chimankar
 

Similar to Assignment i (20)

Temperature measurement erdi karaçal
Temperature measurement erdi karaçalTemperature measurement erdi karaçal
Temperature measurement erdi karaçal
 
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdfSEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
SEMINAR 03 KRISHNA KUMAR (22EE62R01) - 003.pdf
 
A simple finite element solver for thermo-mechanical problems - margonari eng...
A simple finite element solver for thermo-mechanical problems - margonari eng...A simple finite element solver for thermo-mechanical problems - margonari eng...
A simple finite element solver for thermo-mechanical problems - margonari eng...
 
ANSYS Project
ANSYS ProjectANSYS Project
ANSYS Project
 
MATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docx
MATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docxMATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docx
MATLAB sessions Laboratory 3MAT 275 Laboratory 3Numeric.docx
 
Iterative Determinant Method for Solving Eigenvalue Problems
Iterative Determinant Method for Solving Eigenvalue ProblemsIterative Determinant Method for Solving Eigenvalue Problems
Iterative Determinant Method for Solving Eigenvalue Problems
 
Numerical disperison analysis of sympletic and adi scheme
Numerical disperison analysis of sympletic and adi schemeNumerical disperison analysis of sympletic and adi scheme
Numerical disperison analysis of sympletic and adi scheme
 
Sheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docx
Sheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docxSheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docx
Sheet1Washer ThicknessKevinYuxuanBolt DimensionsKevinYuxuanSample .docx
 
Multivariate Regression Analysis
Multivariate Regression AnalysisMultivariate Regression Analysis
Multivariate Regression Analysis
 
FEA Report
FEA ReportFEA Report
FEA Report
 
Mathematical modelling
Mathematical modellingMathematical modelling
Mathematical modelling
 
Isen 614 project report
Isen 614 project reportIsen 614 project report
Isen 614 project report
 
Some Engg. Applications of Matrices and Partial Derivatives
Some Engg. Applications of Matrices and Partial DerivativesSome Engg. Applications of Matrices and Partial Derivatives
Some Engg. Applications of Matrices and Partial Derivatives
 
Final_paper
Final_paperFinal_paper
Final_paper
 
Introduction to particle swarm optimization
Introduction to particle swarm optimizationIntroduction to particle swarm optimization
Introduction to particle swarm optimization
 
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
Cauchy’s Inequality based study of the Differential Equations and the Simple ...Cauchy’s Inequality based study of the Differential Equations and the Simple ...
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
 
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docxLab 5 template  Lab 5 - Your Name - MAT 275 Lab The M.docx
Lab 5 template Lab 5 - Your Name - MAT 275 Lab The M.docx
 
Matlab lab.pdf
Matlab lab.pdfMatlab lab.pdf
Matlab lab.pdf
 
Choice of weighting function and expansion function in cem
Choice of weighting function and expansion function in cemChoice of weighting function and expansion function in cem
Choice of weighting function and expansion function in cem
 
Book
BookBook
Book
 

More from Ersin Tukenmez

İDARE 2 VİZE-FİNAL-kilidi açıldı.pdf
İDARE 2   VİZE-FİNAL-kilidi açıldı.pdfİDARE 2   VİZE-FİNAL-kilidi açıldı.pdf
İDARE 2 VİZE-FİNAL-kilidi açıldı.pdfErsin Tukenmez
 
ÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdf
ÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdfÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdf
ÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdfErsin Tukenmez
 
İCRA HUKUKU 15 KASIM 2021.docx
İCRA HUKUKU  15 KASIM 2021.docxİCRA HUKUKU  15 KASIM 2021.docx
İCRA HUKUKU 15 KASIM 2021.docxErsin Tukenmez
 
İCRA HUKUKU 15 KASIM 2021 (1).docx
İCRA HUKUKU  15 KASIM 2021 (1).docxİCRA HUKUKU  15 KASIM 2021 (1).docx
İCRA HUKUKU 15 KASIM 2021 (1).docxErsin Tukenmez
 
İDARE HUKUKU PRATİK CEVAPLARI.docx
İDARE HUKUKU PRATİK CEVAPLARI.docxİDARE HUKUKU PRATİK CEVAPLARI.docx
İDARE HUKUKU PRATİK CEVAPLARI.docxErsin Tukenmez
 
İCRA HUKUKU 16 KASIM (1).docx
İCRA HUKUKU 16 KASIM (1).docxİCRA HUKUKU 16 KASIM (1).docx
İCRA HUKUKU 16 KASIM (1).docxErsin Tukenmez
 
İCRA HUKUKU 16 KASIM.docx
İCRA HUKUKU 16 KASIM.docxİCRA HUKUKU 16 KASIM.docx
İCRA HUKUKU 16 KASIM.docxErsin Tukenmez
 
Tüm hasta Eğitim Formları Cerrahi.docx
Tüm hasta Eğitim Formları Cerrahi.docxTüm hasta Eğitim Formları Cerrahi.docx
Tüm hasta Eğitim Formları Cerrahi.docxErsin Tukenmez
 
Eğitim Planı Formu.docx
Eğitim Planı Formu.docxEğitim Planı Formu.docx
Eğitim Planı Formu.docxErsin Tukenmez
 
Eğitim Planı Formu (1).docx
Eğitim Planı Formu (1).docxEğitim Planı Formu (1).docx
Eğitim Planı Formu (1).docxErsin Tukenmez
 
Egitim plani formu(dilara2).docx
Egitim plani formu(dilara2).docxEgitim plani formu(dilara2).docx
Egitim plani formu(dilara2).docxErsin Tukenmez
 
Egitim plani formu(dilara2) (1).docx
Egitim plani formu(dilara2) (1).docxEgitim plani formu(dilara2) (1).docx
Egitim plani formu(dilara2) (1).docxErsin Tukenmez
 
Eğitim Planı Formu Dahiliye.docx
Eğitim Planı Formu Dahiliye.docxEğitim Planı Formu Dahiliye.docx
Eğitim Planı Formu Dahiliye.docxErsin Tukenmez
 
Eğitim Planı Formu Dahiliye (1).docx
Eğitim Planı Formu Dahiliye (1).docxEğitim Planı Formu Dahiliye (1).docx
Eğitim Planı Formu Dahiliye (1).docxErsin Tukenmez
 
Bizim_Toptan_Satis_Magazalari_AS.docx
Bizim_Toptan_Satis_Magazalari_AS.docxBizim_Toptan_Satis_Magazalari_AS.docx
Bizim_Toptan_Satis_Magazalari_AS.docxErsin Tukenmez
 
Ise 455 2021 midterm question 3
Ise 455 2021 midterm   question 3Ise 455 2021 midterm   question 3
Ise 455 2021 midterm question 3Ersin Tukenmez
 
Ise 455 2021 final question 1 and 2
Ise 455 2021 final question 1 and 2Ise 455 2021 final question 1 and 2
Ise 455 2021 final question 1 and 2Ersin Tukenmez
 

More from Ersin Tukenmez (20)

İDARE 2 VİZE-FİNAL-kilidi açıldı.pdf
İDARE 2   VİZE-FİNAL-kilidi açıldı.pdfİDARE 2   VİZE-FİNAL-kilidi açıldı.pdf
İDARE 2 VİZE-FİNAL-kilidi açıldı.pdf
 
ÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdf
ÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdfÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdf
ÇOCUKLUK ÇAĞININ DÖKÜNTÜLÜ HASTALIKLARI.pdf
 
İCRA HUKUKU 15 KASIM 2021.docx
İCRA HUKUKU  15 KASIM 2021.docxİCRA HUKUKU  15 KASIM 2021.docx
İCRA HUKUKU 15 KASIM 2021.docx
 
İCRA HUKUKU 15 KASIM 2021 (1).docx
İCRA HUKUKU  15 KASIM 2021 (1).docxİCRA HUKUKU  15 KASIM 2021 (1).docx
İCRA HUKUKU 15 KASIM 2021 (1).docx
 
İDARE HUKUKU PRATİK CEVAPLARI.docx
İDARE HUKUKU PRATİK CEVAPLARI.docxİDARE HUKUKU PRATİK CEVAPLARI.docx
İDARE HUKUKU PRATİK CEVAPLARI.docx
 
İCRA HUKUKU 16 KASIM (1).docx
İCRA HUKUKU 16 KASIM (1).docxİCRA HUKUKU 16 KASIM (1).docx
İCRA HUKUKU 16 KASIM (1).docx
 
İCRA HUKUKU 16 KASIM.docx
İCRA HUKUKU 16 KASIM.docxİCRA HUKUKU 16 KASIM.docx
İCRA HUKUKU 16 KASIM.docx
 
Tüm hasta Eğitim Formları Cerrahi.docx
Tüm hasta Eğitim Formları Cerrahi.docxTüm hasta Eğitim Formları Cerrahi.docx
Tüm hasta Eğitim Formları Cerrahi.docx
 
Eğitim Planı Formu.docx
Eğitim Planı Formu.docxEğitim Planı Formu.docx
Eğitim Planı Formu.docx
 
Eğitim Planı Formu (1).docx
Eğitim Planı Formu (1).docxEğitim Planı Formu (1).docx
Eğitim Planı Formu (1).docx
 
Egitim plani formu(dilara2).docx
Egitim plani formu(dilara2).docxEgitim plani formu(dilara2).docx
Egitim plani formu(dilara2).docx
 
Egitim plani formu(dilara2) (1).docx
Egitim plani formu(dilara2) (1).docxEgitim plani formu(dilara2) (1).docx
Egitim plani formu(dilara2) (1).docx
 
Eğitim Planı Formu Dahiliye.docx
Eğitim Planı Formu Dahiliye.docxEğitim Planı Formu Dahiliye.docx
Eğitim Planı Formu Dahiliye.docx
 
Eğitim Planı Formu Dahiliye (1).docx
Eğitim Planı Formu Dahiliye (1).docxEğitim Planı Formu Dahiliye (1).docx
Eğitim Planı Formu Dahiliye (1).docx
 
Bizim_Toptan_Satis_Magazalari_AS.docx
Bizim_Toptan_Satis_Magazalari_AS.docxBizim_Toptan_Satis_Magazalari_AS.docx
Bizim_Toptan_Satis_Magazalari_AS.docx
 
Quiz 1 solutions
Quiz 1 solutionsQuiz 1 solutions
Quiz 1 solutions
 
Ise 455 lecture 10
Ise 455 lecture 10Ise 455 lecture 10
Ise 455 lecture 10
 
Ise 455 2021 midterm question 3
Ise 455 2021 midterm   question 3Ise 455 2021 midterm   question 3
Ise 455 2021 midterm question 3
 
Ise 455 2021 final question 1 and 2
Ise 455 2021 final question 1 and 2Ise 455 2021 final question 1 and 2
Ise 455 2021 final question 1 and 2
 
6 propagation ap
6 propagation ap6 propagation ap
6 propagation ap
 

Assignment i

  • 1. YEDITEPE UNIVERSITY MECHANICAL ENGINEERING DEPARTMENT ME 372 COMPUTER AIDED MECHANICAL ENGINEERING ASSIGNMENT I ALPER ERAL 280705037
  • 2. I. INTRODUCTION At the laboratory hour of ME 372 the task given was to investigate some characteristics of a single degree-of-freedom system. While doing the investigation, concepts such as Euler’s method, finding the exact solution and taking derivatives were used. In order to solve the problem in a modular and flexible way, operations, which were dealing with ordinary differential equations and initial value problems, stated in the report were made. Throughout the report detailed information about the process will be given via diagrams and MATLAB codes. II. RESULTS AND DISCUSSION Functions exact.m and derive.m given during the laboratory hour were changed into the forms stated below. function [yexact] = exact(t, y0) m=0.6297; c=0.05; I=0.7176E-2; g=9.81; lg=0.8446E-2; T=c/(2*I*wn); wn=sqrt((m*g*lg)/I); w=wn*sqrt(1-(T^2)); c1=y0(1); c2=-(T*wn*c1)/w; yexact=exp(-T*wn*t))*(c1*cos(w*t)+c2*sin(w*t); end function f = deriv(tk, yk) c=0.01; lg=0.8446E-2 m=0.6297; I=0.7176E-2; c=0.01; g=9.81; f = [yk(2);(-c/I)*yk(2)-((m*g*lg)/I)*yk(1)]; After changing some parts of the function lab1_main.m, following diagrams were drawn via MATLAB. In order to understand the affects of the c and h variables, different values for them were used. 2
  • 3. Figure 2: Diagram drawn when h=0.05 Figure 3: Diagram drawn when h=0.1 3
  • 4. Figure 4: Diagram drawn when h=0.2 Figure 5: Diagram drawn when h=0.1 and c=0 Figure 6: Diagram drawn when h=0.1 and c=0.005 Figure 7: Diagram drawn when h=0.1 and c=0.02 4
  • 5. Figure 8: Diagram drawn when h=0.1 and c=0.05 Throughout the trials, it can be commented that changes in c cause changes approximate function and the changes in h affects the exact function. When observed, it can be recognized that, using greater values for c and h have negative effects on performance of the methods such as lack of accuracy and stability. When c= 0.005 and h=0.1, the results are in harmony. They match accurately. The optimum values for c can be considered between 0.005 and 0.05 and for h between 0.05 and 0.1. III. CONCLUSION After conducting numerous trials, it can be concluded great values for c and h makes the function unstable and not accurate. While choosing the values for that kind of an operation, this fact should be taken into account. One of the finest results were observed for c= 0.005 and h=0.1. To have optimum results, h can be taken between 0.05 and 0.1 and c between 0.005 and 0.05. 5
  • 6. Figure 8: Diagram drawn when h=0.1 and c=0.05 Throughout the trials, it can be commented that changes in c cause changes approximate function and the changes in h affects the exact function. When observed, it can be recognized that, using greater values for c and h have negative effects on performance of the methods such as lack of accuracy and stability. When c= 0.005 and h=0.1, the results are in harmony. They match accurately. The optimum values for c can be considered between 0.005 and 0.05 and for h between 0.05 and 0.1. III. CONCLUSION After conducting numerous trials, it can be concluded great values for c and h makes the function unstable and not accurate. While choosing the values for that kind of an operation, this fact should be taken into account. One of the finest results were observed for c= 0.005 and h=0.1. To have optimum results, h can be taken between 0.05 and 0.1 and c between 0.005 and 0.05. 5