Question
A spherical float with a mass of mf = 70 kg and a diameter of 90 cm is placed in the ocean (density of sea
A spherical float with a mass of mf = 70 kg and a diameter of 90 cm is placed in the ocean (density of sea water is approximately p = 1030 kg/m3. The height, h, of the portion of the float that is above water can be determined by solving the following equation (according to Archimedes' principle):
where, for a sphere of radius r, the volume of a cap Vcap of depth d is
Write the equation in terms of h and solve for h. Use the MATLAB userdefined function, which you already created, to utilize the Newton-Raphson method. The initial guess is h1 = 80 cm and the stopping criteria should be 10 iterations. The answer should include the commands to setup the problem on MATLAB, call the user-defined function, and the tabulated results for each iteration. Plot the estimated relative error vs. the iteration number. Also, write a code that uses the MATLAB built-in function to solve for h. Use this answer as the true value and compute the true relative error.
cap m cap m
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started