1 / 8

Symbolic Math

Symbolic Math. only available in MATLAB. Design Problem:. Surface area of a cylinder= S = rh + 2 p r 2 Volume of a cylinder = V= p r 2 h. Must hold 3 cubic meters of gasoline What is the smallest surface area that will hold 3 cubic meters? (will be cheapest to build). Solution:.

Télécharger la présentation

Symbolic Math

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Symbolic Math only available in MATLAB

  2. Design Problem: Surface area of a cylinder= S = rh + 2pr2 Volume of a cylinder = V= pr2h. Must hold 3 cubic meters of gasoline What is the smallest surface area that will hold 3 cubic meters? (will be cheapest to build)

  3. Solution: • We know: V= pr2h = 3 so h = 3/(pr2), S= 2prh + 2pr2 = 6/r + 2pr2 • We want to find the r that minimizes S • We could plot S vs r • We could find when dS/dr = 0

  4. Plotting S vs r r=[0.1:0.01:2] S=6./r+2*pi*r.^2; plot(r,S) xlabel('r, m'); ylabel('S, m^2'); title('Surface area vs r for cylinder with Volume 3m^3')

  5. Using Symbolic toolbox s = 6/r + 2*pi*r^2 set up polynom s1 = diff(s,1) take derivative solve(s1) find root of deriv pretty(ans) clean up rmin = double(solve(s1)) 0.7816 Smin = subs(s,r,0.7815926) 11.51 hmin = 3/(pi*rmin(1)^2) 1.563

  6. A similar problem • Suppose you have a wire of length L • You cut a length x to make a square • You use remaining L-x to make a circle • Use Matlab to find the length x to maximize the areas enclosed by the square and the circle

  7. End of tutorial

More Related