{"id":437,"date":"2010-11-09T19:10:05","date_gmt":"2010-11-10T02:10:05","guid":{"rendered":"http:\/\/mattfife.net\/wordpress\/?p=437"},"modified":"2024-03-01T17:04:22","modified_gmt":"2024-03-02T00:04:22","slug":"cartalk-conundrum","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=437","title":{"rendered":"Cartalk conundrum"},"content":{"rendered":"<p>The guys from Car Talk have weekly puzzlers, but this question wasn&#8217;t a puzzler, but this came from a truck driver who called in.\u00a0 He said (basically):<\/p>\n<p><em>&#8220;I have big cylindrical tanks on my truck that lays sideways under the foot step.\u00a0 Problem is that my gas gauge is broken.\u00a0 I have a stick that I can put in vertically, so if the gas is at the 20&#8243; mark on the stick, it&#8217;s full.\u00a0 If the gas reaches the 10&#8243; mark on the stick, the tank is clearly half full.\u00a0 Where should I put the 1\/4 and 3\/4 marks on the stick?&#8221;<\/em><\/p>\n<p>First you&#8217;d think they should be at 5&#8243; and 15&#8243;, but that&#8217;s not right because the tank is round, which means the bottom and tops have less volume per inch of height.\u00a0\u00a0 Then you think this is a problem is an integration problem &#8211; which it can be &#8211; but the integration becomes extremely hairy.\u00a0 Then, you find you can back up and use a geometric method (and when you can&#8217;t reduce anymore) use a numerical method to solve it.\u00a0 So let&#8217;s get started!<\/p>\n<p>We see that needing the actual volume of the cylinder is unimportant since you can solve this problem with just the cross-section &#8211; which is a circle.\u00a0 What you want is a circle with a chord across it in which the volume between the chord and the outer wall is 1\/4 the capacity of the circle.\u00a0 So, you draw a diagram, and get started!<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/mattfife.net\/special\/tank-solution.png\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" width=\"640\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/mattfife.net\/special\/tank-solution.png?fit=640%2C600\" height=\"600\" \/><\/a><\/p>\n<p>Unfortunately, you see that the equation becomes very difficult to solve analytically &#8211; and one must resort to <a href=\"http:\/\/en.wikipedia.org\/wiki\/Numerical_methods\" target=\"_blank\" rel=\"noopener\">numerical methods <\/a>to get an actual solution.\u00a0 I used the Mathematica online site, but you could easily use the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Newton%27s_method\" target=\"_blank\" rel=\"noopener\">Newton-Raphson<\/a> method as well.\u00a0 Whatever way you use, you find that he should mark the 1\/4 tank line 5.96027 inches from the bottom of the stick.\u00a0 3\/4 and 1\/8th values are also shown.<\/p>\n<p>The value of this equation can quickly be used to calculate 1\/8, 1\/16, and all other desired fill marks by simply changing the 1\/4 * pi * r^2 line whichever fraction you&#8217;d like. In fact, you can graph it to get any value:<br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/mattfife.net\/special\/wolfram-tankgraph.gif?w=640\" \/><\/p>\n<p>Ignoring negative volumes, you see that the tank&#8217;s volume compared to it&#8217;s theta (roughly equivalent to height) forms a S curve, so that you can see that the height changes more rapidly w.r.t. volume when close to full\/empty than in the middle &#8211; just like we&#8217;d expect.<\/p>\n<p>So, that&#8217;s your answer.\u00a0 Turns out, others have solved this since it&#8217;s a common problem with all kinds of other tanks (fuel oil, gas stations, etc).\u00a0 <a href=\"http:\/\/mathworld.wolfram.com\/CircularSegment.html\" target=\"_blank\" rel=\"noopener\">Here<\/a> and <a href=\"http:\/\/mathforum.org\/library\/drmath\/view\/54105.html\" target=\"_blank\" rel=\"noopener\">here<\/a> are other solutions that verify the same process and confirm that the final equation is unsolvable analytically.<\/p>\n<p>Another person pointed out that most semi&#8217;s have TWO tanks &#8211; one on each side &#8211; which are connected by a balancing flow connector.\u00a0 So both tanks fill and empty evenly.\u00a0 Even though this seems to mess up the problem, it actually does not.\u00a0 In order to represent that situation, you simply multiply both sides by two (two tanks, two times the target volume) &#8211; which cancel each other out.\u00a0 You could have ANY number of tanks connected like this and the answer is the same.<\/p>\n<p>It also doesn&#8217;t matter how long the tank is either (so long as the tanks are the same size if you have more than one).\u00a0 Finally, the theta angle you calculate doesn&#8217;t even depend on what <em>radius <\/em>of the tank!\u00a0 So if you calculate the thetas for all the fill points, then you can calculate the 1\/4 mark on ANY size tank.\u00a0 Pretty nifty huh.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The guys from Car Talk have weekly puzzlers, but this question wasn&#8217;t a puzzler, but this came from a truck driver who called in.\u00a0 He said (basically): &#8220;I have big cylindrical tanks on my truck that lays sideways under the foot step.\u00a0 Problem is that my gas gauge is broken.\u00a0 I have a stick that I can put in vertically, so if the gas is at the 20&#8243; mark on the stick, it&#8217;s full.\u00a0 If the gas reaches the 10&#8243;&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/mattfife.com\/?p=437\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-technicalproblemsolutions"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-73","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":2,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":10840,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions\/10840"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}