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 horsepower of the device

water flows from a lake as is shown in fig. p8.40 at a rate of 4.0 cfs. is the device inside the building a pump or a turbine? Explain and determine the horsepower of the device. neglect all minor losses and assume the friction factor is .025

  Determine the arrival rate assuming that it is unchanged

Determine the arrival rate assuming that it is unchanged over the duration of the observation period. An approach to a pretimed signal with a 60second cycle has nine vehicles in the queue at the beginning of the effective green.

  Determine the number of revolutions exected by gear a

A load is to be raised 20 ft by the hoisting system. Assuming Gear A is initially at rest, accelerates uniformly to a speed of 120 rpm , determine (a) the number of revolutions exected by gear A in raising the load. (b) The time required to raise ..

  How sustainability and green engineering can be integrated

Discussion on how sustainability and green engineering can be integrated in the four components of materials science and engineering?

  Compare with the allowable stresses on a simple span

A 4 X 12 (S4S) hem-fir timber beam carries a superimposed uniformly distributed load of 325 lb/ft on a simple span of 12ft. Determine the maximum bending stress and the maximum shear stress

  Determine mass flowrate through boiler needed to produce

Determine the mass flowrate through boiler needed to produce 5000KW of power.

  Determine what is the maximum steady speed in mph

A vehicle of mass 2000 kg coasts along a horizontal track against a drag force Fd (in N) on the automobile given by the following Fd=kV^2 where k= 1.25 kg/m and V is the speed in m/s.

  Determine what would be the total consolidation settlement

A normally consolidated clay layer in the field has a thickness of 3.2 m with an average effective stress of 70 kN/m^2. A laboratory consolidation test on the clay gave the following results: Pressure (kN/m^2)=100, 200 Void Ratio=0.905, 0.815

  Magnitude of shaft work obtained from the turbine

If the amount of heat transfer in the HE unit is 2460 kJ per kg of steam, what is the magnitude of shaft work obtained from the turbine in kW?

  Determine the distance traveled and the time elasped

It accelerates wibt constant tangential accleration of at= 0.75 m/s^2. Determine the distance traveled and the time elasped when the magnitude of the car's totale acceleration is 0.9 m/s^2.

  Find the minimum dimension of the other side

The modulus of elasticity of the wood is 13GPa. If one side of the column is 25cm across, find the minimum dimension of the other side to keep the column's deformatin under 1.3 mm

  What is significant difference between free jets and flows

What is the most significant difference between "free" jets and flows in confined structures (nozzles, pipes, etc.) in terms of formulation of force terms ÓF(i.e. left hand side) of the momentum equation

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