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
Where do greywater pipes generally feed into?
Mekhanik [1.2K]

Answer:

c   Waste stack

Explanation:

7 0
3 years ago
why is the thermal conductivity of super insolation order of magnitude lower than the thermal conductivity of ordinary insulatio
Anni [7]

Answer:

Super insulation are obtained by using layers of highly reflective sheets separated by glass fibers in an vacuumed space. Radiation heat transfer between any of the surfaces is inversely proportional to the number of sheets used and thus heat lost by radiation will be very low by using these highly reflective sheets which will an effective way of heat transfer.

Explanation:

3 0
3 years ago
British standered institution
Scorpion4ik [409]

Answer:

The British Standards Institution, is the national standards body of the United Kingdom. BSI produces technical standards on a wide range of products and services and also supplies certification and standards-related services to businesses

6 0
3 years ago
As the junior engineer at the Mesabi Range Hydraulic Engineering Company located in Ely, Minnesota, you have been tasked with de
katen-ka-za [31]

yes it will

Explanation:

5 0
3 years ago
In a lab, scientists grew several generations of offspring of a plant using the method shown. What conclusion can you make about
exis [7]
Answer: c) they have low genetic variability among them.


When a plant is grown for several generations of offspring of a plant, then there are some common things which are to be noted which are found similar in the offspring and in the parent of the offspring. The flowers and fruits and the time or season they come in are absolutely the same.
6 0
1 year ago
Other questions:
  • Biologists use a sequence of letters A, C, T, and G to model a genome. A gene isa substring of a genome that starts after a trip
    5·1 answer
  • Create a program that calculates the monthly payments on a loan using Decimal &amp; LC Console SEE Sanple Run Attached Specifica
    14·1 answer
  • Select the correct answer.<br> Which equation gives you the amount of work performed?
    14·1 answer
  • 7. The "3 second rule" is the time you should pause at an intersection marked with a stop sign.
    6·1 answer
  • (a) The lattice constant of GaAs is 5.65 Å. Determine the number of Ga atoms andAs atoms per cm 3 .
    15·1 answer
  • 2=333=3= im single text in comment
    13·2 answers
  • R-744 refrigerant is bad why
    6·1 answer
  • An agricultural manager requires
    12·1 answer
  • For a small company it's usually best to keep the corporate and brand image as___ as possible​
    9·1 answer
  • Why does the compression-refrigeration cycle have a high-pressure side and a low-pressure side?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!