Docsity

ES 240 Project: Solving Equations & Minimizing Functions - Prof. Uchechukwu Abanulo, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
MONTGOMERY COLLEGE, ROCKVILLE
Physics, Engineering and Geosciences Department
ES 240 – Scientific and Engineering Computation
Spring 2009
PROJECT TWO
Write a Matlab Script and several functions to accomplish the following:
Note: All Matlab codes through which you generated your figures and results must be submitted
No report required for this project
Part A: Theory
1. Find the solution(s) to the following equations using
a) the graphing method
b) the incremental search method
i. x
xcossin3.0 =
ii. y = 0.3*exp(-x+4)+cos(-x);
2. Consider the equation 1520202)( 23 −−+−= xxxxf
a) Determine the root(s) of the equation graphically
b) Determine the roots of the equation using the bisection, false position, fixed-point
iteration, secant and Newton-Raphson Methods
o use -3 and 3 as your initial interval
o for the bisection method, use two different stopping methods to end your
iterations
o For each method, generate a plot of number of iterations versus true
relative error
o Compare the methods
c) Use Matlab’s ‘ROOTS’ function to determine the roots
3. Consider the function: xyy , determine the minimum yxxyxf 37125.18),( 22 −+++−=
a) Graphically,
b) Numerically with the fminsearch function
c) Substitute the results of (b) back into the function to determine the minimum f(x,y).
Page 1 of 1

Partial preview of the text

Download ES 240 Project: Solving Equations & Minimizing Functions - Prof. Uchechukwu Abanulo and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

MONTGOMERY COLLEGE, ROCKVILLE Physics, Engineering and Geosciences Department ES 240 – Scientific and Engineering Computation Spring 2009

PROJECT TWO

Write a Matlab Script and several functions to accomplish the following: Note: All Matlab codes through which you generated your figures and results must be submitted No report required for this project

Part A: Theory

  1. Find the solution(s) to the following equations using a) the graphing method b) the incremental search method

i. 0. 3 sin x =cos x ii. y = 0.3*exp(-x+4)+cos(-x);

  1. Consider the equation f ( x )= − 2 x^3 + 20 x^2 − 20 x − 15

a) Determine the root(s) of the equation graphically b) Determine the roots of the equation using the bisection, false position, fixed-point iteration, secant and Newton-Raphson Methods o use -3 and 3 as your initial interval o for the bisection method, use two different stopping methods to end your iterations o For each method, generate a plot of number of iterations versus true relative error o Compare the methods c) Use Matlab’s ‘ROOTS’ function to determine the roots

  1. Consider the function: f ( x , y )=− 8 x + 1. 5 x^2 + 12 y + 7 y^2 − 3 xy , determine the minimum

a) Graphically, b) Numerically with the fminsearch function c) Substitute the results of (b) back into the function to determine the minimum f(x,y).

Page 1 of 1