Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please Use in MATLAB and show me the code Please use MATALB and show me the code CHEN 3170-APPLIED MATH METHODS HW#4 MAASE, SPRING 2019
Please Use in MATLAB and show me the code
Please use MATALB and show me the code
CHEN 3170-APPLIED MATH METHODS HW#4 MAASE, SPRING 2019 Assignment #4-Due March 4th 1) Volume in cylindrical vessels The company you now work for just bought a horizontal cylindrical tank to store a liquid that your length of the tank, L, and the height of the liquid in the tank, h, is given by Your company's tank has a radius of 3.0 feet and a length of 7.0 feet, and you currently have 140.0 cubic feet of liquid that needs to go into the tank. Your boss wants you to implement an algorithm for finding the liquid height, h, given all the other parameters. Your boss, however, is old-school and doesn't trust Matlab's built-in wizardry (i.e., existing functions). Do the following. Recast the Equation as a root finding problem. In other words, identify a functionJh) such that h) -0 when h is the height of the liquid in your tank. This is your first real engineering job, so to be sure that you get the right answer you use the bisection and newton's functions to solve for the liquid height. You also decide to use a tolerance equal to machine precision. (Maybe overkill, but perhaps you use this tidbit to impress your boss.) Note: Using both that you really have the right answer. To show your boss that you could have used Matlab to generate the same result, you also solve for the liquid height using Matlab's fzero function. Tabulate your results, showing (1) the liquid height, h, that you calculated for each of the three methods, (2) a calculation of liquid volume using the value of h that you calculated for each of the three methods (another verification check), and (3) the value of the function /Ah) using the value of h from each of the three methods (yet another verification check). You are now really confident that you have the right answer! Meuton metod the bisection and the newtons functions serves as double-check(ie, verification) CHEN 3170-APPLIED MATH METHODS HW#4 MAASE, SPRING 2019 Assignment #4-Due March 4th 1) Volume in cylindrical vessels The company you now work for just bought a horizontal cylindrical tank to store a liquid that your length of the tank, L, and the height of the liquid in the tank, h, is given by Your company's tank has a radius of 3.0 feet and a length of 7.0 feet, and you currently have 140.0 cubic feet of liquid that needs to go into the tank. Your boss wants you to implement an algorithm for finding the liquid height, h, given all the other parameters. Your boss, however, is old-school and doesn't trust Matlab's built-in wizardry (i.e., existing functions). Do the following. Recast the Equation as a root finding problem. In other words, identify a functionJh) such that h) -0 when h is the height of the liquid in your tank. This is your first real engineering job, so to be sure that you get the right answer you use the bisection and newton's functions to solve for the liquid height. You also decide to use a tolerance equal to machine precision. (Maybe overkill, but perhaps you use this tidbit to impress your boss.) Note: Using both that you really have the right answer. To show your boss that you could have used Matlab to generate the same result, you also solve for the liquid height using Matlab's fzero function. Tabulate your results, showing (1) the liquid height, h, that you calculated for each of the three methods, (2) a calculation of liquid volume using the value of h that you calculated for each of the three methods (another verification check), and (3) the value of the function /Ah) using the value of h from each of the three methods (yet another verification check). You are now really confident that you have the right answer! Meuton metod the bisection and the newtons functions serves as double-check(ie, verification)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started