The volume of liquid, V, in a partially filled, horizontal, cylindrical tank of radius r and length L is related to the depth of the liquid, h, at the center line of the cylinder by the formula r- v=[r³²cos ¹ (1 = " - (r-h)√2rh-h² ]-L V Develop a Python function to create a plot of liquid volume versus depth. Here are the first few lines: import numpy as np. def cyltank (r, L, plot_title): create a plot of the volume of liquid in a horizontal, cylindrical tank from empty to full tank inputs: 11 11 11 r = inside radius of tank L = length plot_title= string for title of plot Test your program with cyltank (3,5, 'Volume vs. Depth for Horizontal Cylindrical Tank')
The volume of liquid, V, in a partially filled, horizontal, cylindrical tank of radius r and length L is related to the depth of the liquid, h, at the center line of the cylinder by the formula r- v=[r³²cos ¹ (1 = " - (r-h)√2rh-h² ]-L V Develop a Python function to create a plot of liquid volume versus depth. Here are the first few lines: import numpy as np. def cyltank (r, L, plot_title): create a plot of the volume of liquid in a horizontal, cylindrical tank from empty to full tank inputs: 11 11 11 r = inside radius of tank L = length plot_title= string for title of plot Test your program with cyltank (3,5, 'Volume vs. Depth for Horizontal Cylindrical Tank')
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 7PP: (Numerical) Heron’s formula for the area, A, of a triangle with sides of length a, b, and c is...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr