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...
icon
Related questions
Question
The volume of liquid, V, in a partially filled, horizontal, cylindrical tank of radius v and length L is
related to the depth of the liquid, h, at the center line of the cylinder by the formula
r-h
V
v=[r ² cos ¹ (1=^) - -(r-h)√√2rh-h² ·L
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):
11 11 11
create a plot of the volume of liquid
in a horizontal, cylindrical tank
from empty to full tank
inputs:
r
L = length
plot_title
I
inside radius of tank
=
string for title of plot
Test your program with
cyltank (3, 5, 'Volume vs. Depth for Horizontal Cylindrical Tank')
Transcribed Image Text:The volume of liquid, V, in a partially filled, horizontal, cylindrical tank of radius v and length L is related to the depth of the liquid, h, at the center line of the cylinder by the formula r-h V v=[r ² cos ¹ (1=^) - -(r-h)√√2rh-h² ·L 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): 11 11 11 create a plot of the volume of liquid in a horizontal, cylindrical tank from empty to full tank inputs: r L = length plot_title I inside radius of tank = string for title of plot Test your program with cyltank (3, 5, 'Volume vs. Depth for Horizontal Cylindrical Tank')
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Hiring Problem
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr