Difference between revisions of "EGR 103/Spring 2015/Lab 6"

From PrattWiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
Typo: In 6.4.3, there is a comment about "a loop may be the best to go" - which is true, there just isn't a loop in the previous problem...
 
 
 
==Basic Root-Finding Problems==
 
==Basic Root-Finding Problems==
 
* Main thing is to look at [[MATLAB:Fzero]] and the different ways of calling it.
 
* Main thing is to look at [[MATLAB:Fzero]] and the different ways of calling it.

Latest revision as of 18:39, 4 October 2015

Basic Root-Finding Problems

  • Main thing is to look at MATLAB:Fzero and the different ways of calling it.
  • The sign plots are really helpful.
  • The last equation has three sign changes but only two roots

Basic Min/Max Finding Problems

  • Main thing is to look at MATLAB:Fminbnd and the different ways of calling it.

Chapra Problem 6.16

Chapra 6.21

  • This simply requires using fzero twice - just be careful on how you initialize fzero and also be careful about units for the angles.

Chapra 7.19

  • The lab handout pretty much walks you through this one.

Chapra 7.23, 7.24, and 7.25(b/c)

  • These problems will require fminsearch to find the extremes, as well as meshgrid and surfc to make the plots; more on that at Plotting Surfaces