Docsity

Numerical Methods HW 4 - UC Davis, EAD 115, Spring 2008 - Prof. David M. Rocke, Assignments of Engineering

Toggle sidebar
bg1
University of California, Davis
Department of Applied Science
Spring 2008
David M. Rocke
Numerical Methods EAD 115
April 24, 2008
Homework Assignment 4
Due May 1, 2008
1. Do problems 13.2–13.6 from the text. Note that concave means that the
second derivative is everywhere negative, and implies that there is at most
one maximum and no minimum.
2. Do problem 14.7 from the text.
3. Using the function from problem 14.7, and the starting point of (0, 0), perform
one iteration of Newton’s method and compute the function value.
4. Using the function fminsearch from Matlab, find the maximum of the function
from 14.7. Be sure to negate the function when you define the M-file since
fminsearch finds minima. To define the function choose File/New and type
the function in as in the examples in the book on pages 394 and 395, then save
the file with the default name. Compare the function value at the optimum to
the function values from the first iterations of steepest ascent and Newton’s
method.

Partial preview of the text

Download Numerical Methods HW 4 - UC Davis, EAD 115, Spring 2008 - Prof. David M. Rocke and more Assignments Engineering in PDF only on Docsity!

University of California, Davis

Department of Applied Science

Spring 2008 David M. Rocke

Numerical Methods EAD 115

April 24, 2008

Homework Assignment 4 Due May 1, 2008

  1. Do problems 13.2–13.6 from the text. Note that concave means that the second derivative is everywhere negative, and implies that there is at most one maximum and no minimum.
  2. Do problem 14.7 from the text.
  3. Using the function from problem 14.7, and the starting point of (0, 0), perform one iteration of Newton’s method and compute the function value.
  4. Using the function fminsearch from Matlab, find the maximum of the function from 14.7. Be sure to negate the function when you define the M-file since fminsearch finds minima. To define the function choose File/New and type the function in as in the examples in the book on pages 394 and 395, then save the file with the default name. Compare the function value at the optimum to the function values from the first iterations of steepest ascent and Newton’s method.