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]
2 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]2 years ago
4 0

Answer:

<u>note:</u>

find the attachment:

You might be interested in
Which of the eight diagnostic steps for locating an engine performance problem is performed first?
Kay [80]

Answer:

D. Perform a thorough visual inspection.

4 0
2 years ago
What are the different types of documents used to communicate engineering designs?
Ipatiy [6.2K]

Answer:

COMMON ENGINEERING DOCUMENTS

Inspection or trip reports.

Research, laboratory, and field reports.

Specifications.

Proposals.

Progress reports.

ect...

Explanation:

7 0
3 years ago
An L2 steel strap having a thickness of 0.125 in. and a width of 2 in. is bent into a circular arc of radius 600 in. Determine t
lesya692 [45]

Answer:

the maximum bending stress in the strap is 3.02 ksi

Explanation:

Given the data in the question;

steel strap thickness = 0.125 in

width = 2 in

circular arc radius = 600 in

we know that, standard value of modulus of elasticity of L2 steel is; E = 29 × 10³ ksi;

Now, using simple theory of bending

1/p = M/EI

solve for M

Mp = EI

M = EI / p ----- let this be equation 1

The maximum bending stress in the strap is;

σ = Mc / I -------let this be equation 2

substitute equation 1 into 2

σ = ( EI / p)c / I

σ = ( c/p )E

so we substitute in our values

σ = ( (0.125/2) / 600 )29 × 10³

σ = 0.00010416666 × 29 × 10³

σ = 3.02 ksi

Therefore, the maximum bending stress in the strap is 3.02 ksi

3 0
2 years ago
Create a variable pounds to store weight in pounds. Convert this to kilograms and assign the result to a variable kilos. The con
vodka [1.7K]

Answer:

>>pounds=13.2

>>kilos=pounds/2.2

Explanation:

Using Matlab to write the program, consider at any time when the weight in pounds is 13.2 lb, this variable of weight is created in MATLAB by typing >>pounds=13.2. To convert it from lb to Kg, we simply divide it by 2.2 hence the second command to created is kilos. For this, the output of the program will be 6 Kg.

5 0
3 years ago
1. In an assembly two flanges are held together by a 1/2"" bolt that is threaded into one of the flanges. (a) If the clearance h
creativ13 [48]

Answer:

The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.

Explanation:

5 0
3 years ago
Other questions:
  • Two well-known NP-complete problems are 3-SAT and TSP, the traveling salesman problem. The 2-SAT problem is a SAT variant in whi
    7·1 answer
  • Please answer the following questions.
    9·2 answers
  • PythonA group of statisticians at a local college has asked you to create a set of functionsthat compute the median and mode of
    9·1 answer
  • In which forms do MOST of the Sun's energy reach Earth's surface?
    15·1 answer
  • What is the relative % change in P if we double the absolute temperature of an ideal gas keeping mass and volume constant?
    14·1 answer
  • What is the connection between the air fuel ratio and an engine running rich/poor? please give clear examples and full sentances
    9·1 answer
  • Give me uses of a grinding machine in agriculture.
    15·1 answer
  • 8. What is the density of an object with a mass of 290.5 g and volume of 83 cm 3?​
    13·1 answer
  • Assignment # 2
    5·1 answer
  • Principals of Construction intro
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!