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
The Chinese had a toy helicopter some 1000 years ago. True Or False ?
Vadim26 [7]

Answer:

f

Explanation:

for the lazy people

5 0
3 years ago
Which is not an affect of alcohol
Gre4nikov [31]
Pooping problems is not an affect
6 0
3 years ago
Which material would cause a more severe burn if equal masses of two distinct metals are heated to a temperature of 100 °C: the
densk [106]

Answer:

The material with the higher specific heat capacity would cause a more severe burn.

Explanation:

Quantity of heat (Q) = mass of material (m) × specific heat capacity (C) × temperature difference (∆T)

From the formula above, the relationship between Q and C is direct in which increase in one quantity (C) leads to a corresponding increase in the other quantity (Q)

The material with the higher specific heat capacity would produce more heat, thus cause a more severe burn.

6 0
3 years ago
. Chemical manufacturers must present which Information on the product's label?
STatiana [176]

Answer: A) Product identifier

Explanation:

A product identifier is a means, name or number used to identify hazardous and dangerous chemicals on a label or in the SDS( safety data sheet). It provides a special means which helps the user to identify the chemical. Any product identifier used should permit a cross-references to be made among the listed hazardous chemicals required in the written hazard communication program, and the label including SDS(safety data sheet).

5 0
3 years ago
Suppose you want to buy a new car. The car will be used mainly for going to work, shopping, running errands, and visiting friend
Sergeu [11.5K]
1. So you can complete the things you NEED to do faster. (I.e work, groceries)

2. So it’s easier for you to do leisure activities. (I.e visiting friends, shopping)
5 0
3 years ago
Other questions:
  • Is CO, an air pollutant? How does it differ from other emissions resulting from the combustion of fossil fuels?
    7·1 answer
  • What is the resultant force on one side of a 25cm diameter circular plate standing at the bottom of 3m of pool water?
    12·1 answer
  • Someone claims that the shear stress at the center of a circular pipe during fully developed laminar flow is zero. Do you agree
    12·1 answer
  • Two pressure gauges measure a pressure drop of 16.3 psi (lb/in.2) at the entrance and exit of an old buried pipeline. The origin
    13·1 answer
  • 2. When it comes to selling their crop, what are 3 options a farmer has when harvesting their grain?
    5·1 answer
  • A coal-fired power plant is burning bituminous coal that has an energy content of 12,000 Btu/lb. The power plant is burning the
    13·1 answer
  • How to find magnitude of forces
    8·1 answer
  • Match the terms with the correct definitions.
    14·1 answer
  • How could increasing the budget for testing have prevented the problem experienced by the mars orbiter?
    7·1 answer
  • What is the locating position of the land field?​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!