Create a flow chart-pseudo code or outline of algorithms

Assignment Help Civil Engineering
Reference no: EM13319018

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

Reference no: EM13319018

Questions Cloud

How to draw and label a flowchart for the system : The temperature of steam at the inlets of both turbines is 500 C, and the enthalpy of steam is 3027 kJ/kg at the exit of high pressure turbine, and 2385 kJ/kg at the exti of the low pressure turbine.
How many molecules of carbon are in it : Carbon 12 is defined such that 12g is one mole. So if a diamond is 37.5 g, how many moles of carbon are in it? How many molecules of carbon are in it
How could you support michelle to deal with any issues : How would you support Michelle to satisfactorily perform the role and how could you support Michelle to deal with any issues and concerns that she might have?
Societies have rules and regulations in place to maintain co : All societies have rules and regulations in place to maintain control and order over their population. Violations of those rules and regulations result in the application of sanctions. Think of a recent time when you used informal negative sanc..
Create a flow chart-pseudo code or outline of algorithms : 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).
Find the displacement of the plate : A square steel plate is 0:20 m on a side and 4:00 mm thick. Find the displacement of the plate
Determine critical crack length to assure plate wont fail : A 1047 steel plate is subjected to a tensile stress of 120 MPa. Given its fracture toughness is 45 MPa?m and Y = 1, (a) Determine the critical crack length to assure the plate will not fail under static loading.
How would you support michelle : How would you support Michelle to satisfactorily perform the role and how could you support Michelle to deal with any issues and concerns that she might have?
A very prestigious events planning firm : A very prestigious events planning firm

Reviews

Write a Review

Civil Engineering Questions & Answers

  Determine the coordinates of intersection of line of action

Replace the given forces by a wrench and determine the coordinates of the intersection of its line of action (the coordinate of point P) with the plate. With a Force Fca=(100i+100j)N coming off of point C

  Compute the ratio of the nominal flexural strength

Compute the ratio of the nominal flexural strength of the beam to the maximum service load moment, and compare your findings to the ACI load factors and strength reduction factor.

  Determine the specfic work required in kj per kg

Saturated water vapor at 150 deg C is compressed in a reversible steady-flow device to 1000 kPa while its specific volume remains constant. Determine the specfic work required in kJ/kg. The heat transfer is not negligible.

  Find pipe diameter if it is to be full with steady rainfall

Rainwater runoff from a 200 x 500 ft parking lot is to drain through a circular concrete pipe that is laid on a slope of 5 ft/mi. Determine the pipe diameter if it is to be full with a steady rainfall of 1.5 in/hr

  Sketch process on p-v diagram clearly labeling final states

5 Kg of water at 1.2 MPa, 120oC is contained in a frictionless piston-cylinder device. The water is heated until its temperature reaches 250oC. a) a)Determine the work performed in kJ

  Determine euler buckling stress and euler buckling load

A 12 foot W14 X 22 column with pinned ends is axially loaded. The max load it can carry is 34 ksi. Determine (a) Euler buckling stress, (b) Euler buckling load. (A = 6.49 in^2) (ry = 1.04 in) (Iy = 7.00 in^4)

  Determine the value of po

Determine the value of Po, as a funciton of H, for these two investment alternatives to be equivalent at an interest rate of i=15% per year.

  How large must each be to achieve desired level of control

Radon from well water may pose a radiological health hazard. One treatment technique is simply to hold the water in storage, allowing the radon to decay. how large must each be to achieve the desired level of control.

  Estimate the moisture content and moist density

A 0.4m^3 moist soil sample has the following: Moist mass = 711.2 kg, Dry mass 623.9 kg, Specific gravity of soil solids = 2.68 Estimate: a). Moisture content. b). Moist density.

  Determine the total dead load

determine the total dead load, per foot of length, each beam must support.

  What is the probability that the channel will be overtopped

If the channel is overtopped for 2 years in a row, renovation cost will increase too much. What is the probability that the channel will be overtopped for only 2 years in a row in a 4 year period

  Probelm relating to fire a bullet

A bullet is fired from a height of 150m at a velocity of 300kmph at an angle of 35 upward. Neglecting air resistance. Find: a) total time of flight b) horizontal range

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd