Question: write a python code. Write a python code for the problem below. According to Archimedes principle, the buoyancy force is equal to the weight of

write a python code.
Write a python code for the problem below.
According to Archimedes principle, the buoyancy force is equal to the weight of fluid displaced by the submerged portion of an object. The sphere below has a radius of 1 m and a density (s) of 200kgm3. The water has a density (w) of 1000kgm3. Note that the volume of the above water portion of the sphere can be computed as:
V=h23(3r-h)
Use a force balance between the sphere weight and the buoyancy force. Formulate the problem as a root problem. Then, create a while loop program using Newton's method with an initial guess value of 0.4 m , determine the height h of the portion that is above water. Continue performing iterations until the solution converges to 6 decimal places. State the converged value of h and the number of iterations required to converge. Plot the iterations of h to show convergence.
Verify your answers by plugging result back into original equation.
write a python code. Write a python code for the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!