Docsity

Computer Applications in Engineering and Constructions - Assignment 5 | CVEN 302, Assignments of Civil Engineering

Toggle sidebar
bg1
CVEN 302-501
Computer Applications in Engineering and Construction
Homework #5 Root Finding
Date distributed : 2.13.2006
Date due : 2.20.2006 at 5:00 pm
Return your solution either in class or in my mail box (WERC Rm. 235-F) by the date
shown above. Please show all your work and follow the rules outlined in the course syllabus.
1 Bracketing methods
Given
f(x) = −2x6
−1.5x4+ 10x+ 2 (1)
Use bisection and false-position to determine the maximum of this function. Employ initial
guesses of xl= 0 and xu= 1, and perform iterations until the approximate relative error
falls below 5%. Taken from Chapra & Canale (2002)
2 Open methods
Do problems 6.3 (only parts a, b, c, and e), 6.9 and 6.15 on page 120 in Chapra (2005).
You can do any parts requiring “graphical” analysis using Matlab and the plot command.
You can do problem 6.15 using the Matlab built-in function fzero.
3 Root finding in ocean engineering
In ocean engineering, the equation for a reflected standing wave in a harbor is given by:
h=h0sin 2πx
λcos 2πtv
λ+e−x(2)
For a certain harbor, the parameters are λ= 16, t= 12, v= 48. Solve for the lowest positive
value of xif h= 0.5h0by doing the following steps:
CIVIL College Station, Texas 77843-31363136 TAMU (979) 845-4517 FAX (979) 862-8162
pf2

Partial preview of the text

Download Computer Applications in Engineering and Constructions - Assignment 5 | CVEN 302 and more Assignments Civil Engineering in PDF only on Docsity!

CVEN 302-

Computer Applications in Engineering and Construction Homework #5 Root Finding

Date distributed : 2.13. Date due : 2.20.2006 at 5:00 pm

Return your solution either in class or in my mail box (WERC Rm. 235-F) by the date shown above. Please show all your work and follow the rules outlined in the course syllabus.

1 Bracketing methods

Given

f (x) = − 2 x^6 − 1. 5 x^4 + 10x + 2 (1)

Use bisection and false-position to determine the maximum of this function. Employ initial guesses of xl = 0 and xu = 1, and perform iterations until the approximate relative error falls below 5%. Taken from Chapra & Canale (2002)

2 Open methods

Do problems 6.3 (only parts a, b, c, and e), 6.9 and 6.15 on page 120 in Chapra (2005). You can do any parts requiring “graphical” analysis using Matlab and the plot command. You can do problem 6.15 using the Matlab built-in function fzero.

3 Root finding in ocean engineering

In ocean engineering, the equation for a reflected standing wave in a harbor is given by:

h = h 0

[

sin

2 πx λ

cos

2 πtv λ

  • e−x

]

For a certain harbor, the parameters are λ = 16, t = 12, v = 48. Solve for the lowest positive value of x if h = 0. 5 h 0 by doing the following steps:

CIVIL 3136 TAMU College Station, Texas 77843-3136 (979) 845-4517 FAX (979) 862-

  1. Rewrite equation (2) by substituting h = 0. 5 h 0 and rearranging the equation to define a root-finding problem.
  2. Plot the equation obtained in step 1 between x = 0 and x = 20 to determine its shape and get a graphical estimate to the solution.
  3. Based on your graphical solution, what initial values of x 0 for the Newton-Raphson method would be poor choices for finding the lowest root?
  4. Find the value of the root using fzero in Matlab.

Turn in your hand notes, hand calculations, Matlab session files and a copy of your figure. Be sure you labeled all your axes and solved all parts of the problem. Adapted from Chapra & Canale (2002).

References

Chapra, S. C. & Canale, R. P. (2002), Numerical Methods for Engineers, Fourth edn, Mc- Graw Hill, Boston.