Ask Civil Engineering Expert

This problem is from Numerical Methods for Engineers andScientist from Amos Gilat and Vish Subramaniam.

Cramster doesn't have this book here so this is the closest Icould get.

According to Archimede's principle, the buoyancy force actingon that object that is partially immersed in a fluid is equal tothe weight that is displaced by the portion of the object that issubmerged.

A spherical float with mass of mf = 70kg and adiametre of 90cm is placed in the ocean ( density of sea water isapproximately ?=1030kg/m3 . The height, h, of theportion of the float that is over the water can be determined bysolving an equation that equates the mass of the float to the massofthe water that is displaced by the portion of the float that issubmerged:

                           ?Vcap=mf                   (Equation3.59)

where for a pshere of radius r, the volume of a cap of depth,d, is given by:

                           Vcap= (1/3)pd2(3r-d)

 

Write equation (3.59) in terms of h and solve for husing:

(a) the user defined function NEWTONROOT. Use 0.0001for Err, and 0.8 for Xest

(b) MATLAB's built-in fzero function

NEWROOT is:

function Xs= NewtonRoot(Fun,FunDer,Xest,Err,imax)

%NewtonRoot finds the root of Fun=0 near the point Xest usingNewton's method.

%Input variables:

%Fun Name(string) of a function file that calculates Funfor a given x.

%FunDer Name(string) of a function that calculates thederivative of Fun for a given x.

%Xest Initial estimate of the solution.

%Err Maximum error.

%Output variable:

%Xs   Solution

for i = 1:imax

Xi= Xest-feval(Fun,Xest)/feval(FunDer,Xest);

if abs((Xi-Xest)/Xest) < Err

Xs=Xi;

break

end

Xest=Xi

end

if i == imax

fprintf('Solution was not obtained in %iiterations.\n',imax)

Xs= ('No Answer');

end

Civil Engineering, Engineering

  • Category:- Civil Engineering
  • Reference No.:- M91077271

Have any Question?


Related Questions in Civil Engineering

Assignment -ewb design report format - cover page - the as

Assignment - EWB Design Report Format - Cover page - The as EWB project Table of content Introduction about -EWB and CRDT (Cambodian Rural development team) Background about Cambodia - Economic, Weather, People - living ...

Assessment taskpractical investigationinstructions- it is

Assessment Task Practical Investigation Instructions: - It is very important that you read these instructions. - The hardcopy of the Assignment report, with the Assignment cover sheet, should be submitted to the Assignme ...

Task details the client is doing masters in civil

Task Details: The client is doing Masters in Civil Engineering. He needs a Technical Paper on Earthquake pertaining to Geology and Rock Mechanics. There should be a through discussion of Earthquake in relation to the men ...

Aimthis assignment aims to demonstrate the structural

Aim: This assignment aims to demonstrate the structural design requirements of a glazed façade in a multi-storey building. Among other requirements, the glazed façade is required to comply with Australian Standard AS 204 ...

Masonry design assignmentquestion 1 - derivation of seismic

MASONRY DESIGN ASSIGNMENT Question 1 - Derivation of seismic actions on building a) Determine the storey seismic weights (Wi) for each suspended level of the building, hence the seismic weight (Wt) of the entire building ...

Masonry design assignmentquestion 1 - derivation of seismic

MASONRY DESIGN ASSIGNMENT Question 1 - Derivation of seismic actions on building a) Determine the storey seismic weights (Wi) for each suspended level of the building, hence the seismic weight (Wt) of the entire building ...

Aimthis assignment aims to demonstrate the structural

Aim: This assignment aims to demonstrate the structural design requirements of a glazed façade in a multi-storey building. Among other requirements, the glazed façade is required to comply with Australian Standard AS 204 ...

Assignmenta continuous three spans beam with

Assignment A continuous three spans beam with centre-to-centre distance of 6 m supports 150 mm thick one-way slabs as shown below. The beams have clear spans of 8 m, 9 m, and 8 (face-to-face of 400 mm square columns). Th ...

The drainage system of a cantilever wall shown in below

The drainage system of a cantilever wall shown in below figure, became blocked after a heavy rainstorm and the groundwater level, which was originallybelow the base, rose to1.5 (m) below the surface. Determine the stabil ...

Civilyou are provided with bill of quantities prepared

Civil You are provided with bill of quantities prepared separately, priced and submitted by 3 con- tractors (A,B,C found on LMS) in respect of a proposed project (see appendix for drawings). The site is located on Mt. Al ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As