The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 4 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I really need help with this EGR 102 question. I am required to use the Newton-Raphson Method in solving but I am not sure of where to start.Â
Â
Â
EGR 102 Introduction to Engineering ModelingLab 08B Homework1.Lab Assignment (10 pts)Part 1:A spherical storage tank containing oil has a known radius(r). You are tasked with calculating the height (h) to which thedipstick would be wet with oil when immersed in the storage tankwhen it contains a specified volume of oil. For a given volumeV(m3)of oil and tank radiusr (m), the following equation can beused to find the heighth (m)of the liquid in the spherical tank.°(ℎ) =±3ℎ2(3² − ℎ) − ³ = 0Createa MATLABfunctionto calculate the height of the oil in the tank by making use of theNewton-Raphson Method with the equation provided.[h_final,n]=YourLastName_OilDepth(r,V,h_guess, accRelErr)1.The function should take as(4) inputstheradiusof the sphere (r),volumeof oil (V), the initialguess for the height (h_guess),and theacceptable relative percent error (accRelErr).2.Use awhile loopto repeat your calculations until the percent relative error isbelowtheacceptable value. All calculations relevant to the height of the oil in the tank and the Newton-Raphson Method should be within this loop. Recall that the general form of the Newton-Raphson Method is:´µ+1= ´µ−¶(·¸)¶′(·¸)Hint:The general setup for a Newton-Raphson problem doesn’t change. The example from theslides can serve as a general structure for you.3.The function should have(2) outputs:the converged solution for the height (h_final) and thenumber of iterations it took to reach this solution (n).4.Setup a script file called YourLastName_OilDepthScript that will run your function. You will havethree pairs of values to use being:r1 = 2.8 m and V1 = 17.1 m3, r2 = 1.5 m and V2 = 6.2 m3, r3 = 3.3 m and V3 = 29.6 m3Use aninitial guessofh=0.75 m, and an acceptable relative percent error of0.001%.2.Reading Assignment (1 pt per question)Read chapter 18.4 from the text in preparation for the next lab. Complete the associatedassignment 8B in-lab assignment on MEL before lab 9A.Write your name, EGR 102, Section #, Lab HW #, and Fall 2016 in your .m files.Provide the name(s) of anyone you worked with in the comments for the dropbox.Provide descriptive comments where appropriate in the file.Files should be named:YourLastName_OilDepthYourLastName_OilDepthScriptDue Date: Before the start of Lab 9A
-----------