1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leya [2.2K]
3 years ago
13

The "divide and average" method, an old-time method for approximating the square root of any positive number a, can be formulate

d as:
x= (x +a/x)/2

Write a well-structured M-file function based on the while...break loop structure to implement this algorithm. Use proper indentation so that the structure is clear. At each step estimate the error in your approximation as:

ε= |x^new- x^old/x^new|

Repeat the loop until ε is less than or equal to a specified value. Design your program so that it returns both the result and the error. Make sure that it can evaluate the square root of numbers that are equal to and less than zero. For the latter case, display the result as an imaginary number. For example, the square root of -4 would return 2i. Test your program by evaluating a = 0,2, 10 and-4 for ε = 10^-4

Engineering
1 answer:
Shalnov [3]3 years ago
4 0

Answer:

<u>note:</u>

find the attachment:

You might be interested in
A worker's hammer is accidentally dropped from the 20th floor of a building under construction. With what velocity does it strik
Illusion [34]

Answer:

Final Velocity (Vf)= 139.864 ft/s

Time (t)= 4,34 s

Explanation:

This is a free fall problem, to solve it we will apply free  fall concepts:

In a free fall the acceletarion is gravity (g) = 9,81 m/s2, if we convert it to ft/s^2 = g= 32.174 ft/s^2

  • Final velocity is Vf= Vo+ g*t[tex]Vf^{2} = Vo^{2} +2*g*h

where h is height (304 ft in this case).

Vo =0 since the hammer wasn't moving when it stared to fall

Then Vf^2= 0 + 2* 32.174 ft/s^2 *304 ft

          Vf^2= 19,561.8224  ft^2/s^2

          Vf=[sqrt{19561.8224 ft^2/s^2}

          Vf=139.864 ft/s

Time t= (Vf-Vo)/g => (139.864 ft/s-0)/32.174 ft/s^2 = 4.34 sec

Good luck!

8 0
3 years ago
A person has driven a car 180 m in 40 seconds. What is the car’s speed?
777dan777 [17]

Answer:

  4.5 m/s = 16.2 km/h

Explanation:

The speed is the ratio of distance to time:

  speed = (180 m)/(40 s) = 4.5 m/s

4 0
3 years ago
You want to plate a steel part having a surface area of 160 with a 0.002--thick layer of lead. The atomic mass of lead is 207.19
Pepsi [2]

Answer:

<u><em>To answer this question we assumed that the area units and the thickness units are given in inches.</em></u>

The number of atoms of lead required is 1.73x10²³.    

Explanation:

To find the number of atoms of lead we need to find first the volume of the plate:

V = A*t

<u>Where</u>:

A: is the surface area = 160

t: is the thickness = 0.002

<u><em>Assuming that the units given above are in inches we proceed to calculate the volume: </em></u>

V = A*t = 160 in^{2}*0.002 in = 0.32 in^{3}*(\frac{2.54 cm}{1 in})^{3} = 5.24 cm^{3}    

Now, using the density we can find the mass:

m = d*V = 11.36 g/cm^{3}*5.24 cm^{3} = 59.5 g

Finally, with the Avogadros number (N_{A}) and with the atomic mass (A) we can find the number of atoms (N):

N = \frac{m*N_{A}}{A} = \frac{59.5 g*6.022 \cdot 10^{23} atoms/mol}{207.19 g/mol} = 1.73 \cdot 10^{23} atoms    

Hence, the number of atoms of lead required is 1.73x10²³.

I hope it helps you!

3 0
3 years ago
A gear box’s shaft is made of a hollow circular steel tube with allowable yield stress equal to σa????????o???? . The shaft is l
Leni [432]

Answer:

See explaination

Explanation:

The failure theory asserts that Material failure theory is the science of predicting the conditions under which solid materials fail under the action of external loads. The failure of a material is usually classified into brittle failure or ductile failure.

See attachment for the step by step solution.

3 0
4 years ago
What color in the visible spectrum has the longest wavelength?<br> yellow<br> red<br> blue<br> green
trapecia [35]

Answer:

red

Explanation:

6 0
2 years ago
Other questions:
  • What torque specs to heads bolts need to be at for a 76 small block chevy
    9·1 answer
  • The 500 lb load is being hoisted at a constant speed using the motor M, which has a weight of 50 lb. The beam has a weight of 40
    8·1 answer
  • The gear lube level is being checked in a manual transmission. Technician A says it should run out when the plug is removed. Tec
    6·1 answer
  • Match the car part to the system
    7·1 answer
  • Three possible career opportunities in embedded systems engineering
    11·1 answer
  • Water is leaking out of an inverted conical tank at a rate of 11700.0 cubic centimeters per min at the same time that water is b
    11·1 answer
  • Which of the following actions by farmers contributes to desertification?
    6·1 answer
  • Which of the following can effect LRO?
    12·1 answer
  • List 6 different mechanisms in the Rube Goldberg cartoon and predict the purpose of each. Does the mechanism change speed, force
    11·1 answer
  • Engineering includes making things that already exist, except making them better. * true or false
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!