Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB code help GIVEN: You are designing a spherical tank (figure below) to hold water for the City of Townsville. The volume of liquid it

MATLAB code help

image text in transcribed

GIVEN: You are designing a spherical tank (figure below) to hold water for the City of Townsville. The volume of liquid it can hold can be computed as, [3R -h] v=th2 3 where V = volume [m), h= depth of water in tank [m], and R = the tank radius [m]. a) If the mayor of Townsville wants to hold 50 m of water, write a Matlab program to solve for h using the bisection method for a range of R value from 2.5 m to 3.5 m with an increment of 0.1 m. Compute the answer with an absolute approximate error of 105. b) Solution check with Matlab built-in function fzero. ANSWERS: In the command window, output only the answers in column vector form (11% 3). The 1st column being the R value, the 2nd column being answers using bisection method, and the 3rd column being answers using fzero. GIVEN: You are designing a spherical tank (figure below) to hold water for the City of Townsville. The volume of liquid it can hold can be computed as, [3R -h] v=th2 3 where V = volume [m), h= depth of water in tank [m], and R = the tank radius [m]. a) If the mayor of Townsville wants to hold 50 m of water, write a Matlab program to solve for h using the bisection method for a range of R value from 2.5 m to 3.5 m with an increment of 0.1 m. Compute the answer with an absolute approximate error of 105. b) Solution check with Matlab built-in function fzero. ANSWERS: In the command window, output only the answers in column vector form (11% 3). The 1st column being the R value, the 2nd column being answers using bisection method, and the 3rd column being answers using fzero

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago