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 m and a density of The water has a density of Note that the volume of the above water portion of the sphere can be computed as:
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 m determine the height of the portion that is above water. Continue performing iterations until the solution converges to decimal places. State the converged value of and the number of iterations required to converge. Plot the iterations of to show convergence.
Verify your answers by plugging result back into original equation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
