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
You are traveling along an interstate highway at 32.0 m/s (about 72 mph) when a truck stops suddenly in front of you. You immedi
PolarNik [594]

Answer:

a= - 2.6 m/s².

Explanation:

u = 32 m/s

The speed after 6 s is half of u

v= \dfrac{32}{2}=16\ m/s

t= 6 s

The average acceleration = a

We know v = u +at

v=final velocity

u=initial velocity

Now by putting the values in the above equation

16= 32 + a x 6

a=\dfrac{16-32}{6}\ m/s^2

a=-2.6\ m/s^2

Therefore the acceleration will be - 2.6 m/s².

a= - 2.6 m/s².

Negative indicates that velocity and acceleration is is opposite direction.

8 0
3 years ago
What is the function of filters in communication system ?​
mihalych1998 [28]

In signal processing, a filter is a device or process that removes some unwanted components or features from a signal. Filtering is a class of signal processing, the defining feature of filters being the complete or partial suppression of some aspect of the signal. Most often, this means removing some frequencies or frequency bands. However, filters do not exclusively act in the frequency domain; especially in the field of image processing many other targets for filtering exist.

Explanation:

8 0
3 years ago
When discussing universal joints,
g100num [7]

Answer:

B only

Explanation:

7 0
4 years ago
it is used to meusure the amount of electric current. A.clamp meter. B .micrometer C steel rule D. electric meter​
Marianna [84]

Answer:

<em>Option D </em>

<em>Electric meter is used to </em><em>measure</em><em> the amount of electric current</em>

6 0
3 years ago
What do means by tenes​
Nikitich [7]
In Greek mythology, Tenes was the eponymous hero of the island of Tenedos. He was the son either of Apollo or of King Cycnus of Colonae by Proclia, daughter or granddaughter of Laomedon. ... The natives of the island pronounced Tenes their king.
8 0
4 years ago
Other questions:
  • Assuming that a query has a buffer holding up to 3 blocks, and each block can hold two records. Use merge-sort to sort the follo
    15·1 answer
  • Does the Diesel engine have engine knock or detonation problem? Why?
    6·1 answer
  • Communication "works" to the degree that a wide variety of information is completely and thoroughly shared among the parties, an
    13·1 answer
  • You are evaluating the lifetime of a turbine blade. The blade is 4 cm long and there is a gap of 0.16 cm between the tip of the
    9·1 answer
  • A single-threaded power screw is 35 mm in diameter with a pitch of 5 mm. A vertical load on the screw reaches a maximum of 5 kN.
    13·1 answer
  • How many extra supports does it take to make a square truss stable?
    10·1 answer
  • Why is communication one of the most important aspects of an engineer’s job?
    7·2 answers
  • Is (3x+1)(4x-5) the factor form of 12x^2-11x-5?
    12·2 answers
  • What does polarity give you information about?
    10·1 answer
  • The National Park Service is waiting on your recommendation.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!