Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Civil Engineering Expert

One method of finding roots of an equation on a computer is the false position method. The idea is that for a function f(x), you find two values, f(x1) and f(x2) such that f(x1)* f(x2) is less than zero (think about what that means). We would then approximate a line between the points (x1 , f(x1)) and (x2, f(x2)), and then calculate where that line crosses the x axis at x3. We then look at f(x3) and determine if the root is between x1 and x3 or x2 and x3, and repeat the process. The algorithm finds x1 and x2 through trial and error or a coarse search. You are allowed to put in guesses for x1 and x2, but you are not allowed to call any other MATLAB commands to generate these guesses. Your assignment is to do the following:

1. Create a flow chart, pseudo code, or other outline of the algorithm you need to implement. This will need to be turned in with your MATLAB code.

2.Create a MATLAB script that implements this algorithm. You are not allowed to use any MATLAB functions that implement this algorithm. The mathematical function that you intend to find the roots of should be assumed to be in a function of the form function y = mathroots(x) So, for example, if you wish to find the roots of a simple quadratic equation, you would create the function function y = mathroots(x) y = 3*x^2 + 2 * x + 1; and store it in the file mathroots.m.

3. Test your script with one or two functions, and include the results of those tests in your code as comments

Civil Engineering, Engineering

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

Have any Question?


Related Questions in Civil Engineering

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

1 aimthe assignment aims to develop the ability to analyse

1. Aim The assignment aims to develop the ability to analyse, evaluate, research plan and manage a major building project through individual and group participation (ideally 4-6 people).Refer to vUWS for the DA plans and ...

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 ...

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 ...

  • 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