2. A semi-circular trough has length L and radius R. It is filled with water to a height h from the top, as depicted in the figure below. 2R L h The volume of water V and the height h are related by the expression, V = L L[R² arcsin - h√√R² - h² (2) For a given V, the nonlinearity of this expression makes it impossible to solve for h exactly. Numerical techniques must be employed in such scenarios. For a trough with dimensions L = 10 and R = 1, write a MATLAB livescript to compute h to six decimal places, given that the trough is filled to 90% of its capacity. You are to use (i) the bisection method, (ii) the Regula-Falsi method. To begin, you must rearrange equation (2) into the form f(h) = 0. You must then split the interval [0, R] into subintervals of length 0.1, and use the Intermediate Value Theorem to find in which subin- terval the zero exists. The bracketing methods above are then to be employed on that subinterval. The example output below is for 70% capacity and three decimal place accuracy. Use it to guide the format of your output. Both root finding methods will begin on the interval [0.200000, 0.300000] The bisection method steps = 1, epsilon = steps - = 2, epsilon 0.2350, c = 0.2500 0.2507, c = 0.2250 steps 3, epsilon = 0.0074, c = 0.2375 steps = = 4, epsilon 0.1139, c = 0.2437 steps 5, epsilon = 0.0533, c = 0.2406 6, epsilon = 0.0229, c = 0.2391 = steps = steps = steps = 7, epsilon = 0.0077, c = 0.2383 8, epsilon = 0.0002, c = 0.2379 With a tolerance of le-03, after 8 steps the root is h = 0.238 The regula-falsi method = steps 1, epsilon = 0.0060, c = 0.2382 steps = 2, epsilon = 0.0000, c = 0.2379 With a tolerance of le-03, after 2 steps the root is h = 0.238
2. A semi-circular trough has length L and radius R. It is filled with water to a height h from the top, as depicted in the figure below. 2R L h The volume of water V and the height h are related by the expression, V = L L[R² arcsin - h√√R² - h² (2) For a given V, the nonlinearity of this expression makes it impossible to solve for h exactly. Numerical techniques must be employed in such scenarios. For a trough with dimensions L = 10 and R = 1, write a MATLAB livescript to compute h to six decimal places, given that the trough is filled to 90% of its capacity. You are to use (i) the bisection method, (ii) the Regula-Falsi method. To begin, you must rearrange equation (2) into the form f(h) = 0. You must then split the interval [0, R] into subintervals of length 0.1, and use the Intermediate Value Theorem to find in which subin- terval the zero exists. The bracketing methods above are then to be employed on that subinterval. The example output below is for 70% capacity and three decimal place accuracy. Use it to guide the format of your output. Both root finding methods will begin on the interval [0.200000, 0.300000] The bisection method steps = 1, epsilon = steps - = 2, epsilon 0.2350, c = 0.2500 0.2507, c = 0.2250 steps 3, epsilon = 0.0074, c = 0.2375 steps = = 4, epsilon 0.1139, c = 0.2437 steps 5, epsilon = 0.0533, c = 0.2406 6, epsilon = 0.0229, c = 0.2391 = steps = steps = steps = 7, epsilon = 0.0077, c = 0.2383 8, epsilon = 0.0002, c = 0.2379 With a tolerance of le-03, after 8 steps the root is h = 0.238 The regula-falsi method = steps 1, epsilon = 0.0060, c = 0.2382 steps = 2, epsilon = 0.0000, c = 0.2379 With a tolerance of le-03, after 2 steps the root is h = 0.238
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
--- Please answer the question fully that is attached ---
--- Thanks for your help in advance ---
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education