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
Which statements describe the motion of car A and car B? Check all that apply. Car A and car B are both moving toward the origin
vekshin1

Answer:

car a is moving faster than the car b

8 0
3 years ago
John wants to construct a device using quartz crystal, Which device can he construct?
tatiyna

Answer: Option D, piezoelectric pressure guage

Explanation: Quartz crystal possess a very useful quality in science as they can generate small charges when pressure is applied to them or when they are hit. This property can be harnessed to construct a piezoelectric pressure gauge which would be used to measure and indicate changes in pressure, the quartz crystal releases little voltage each time there is an applied pressure . This device would be able to sense changes in pressure as there would voltage proportional to the applied pressure.

4 0
3 years ago
Read 2 more answers
What is a motor cycle motor made out of
Natali5045456 [20]

Explanation:

a motorcycle Motor is made out of iron

4 0
3 years ago
Read 2 more answers
"A communication between two devices is over the maximum limit of an ethernet frame size. The Transmission Control Protocol (TCP
Sliva [168]

COmmunication Devices

Explanation:

  • TCP/IP, or the Transmission Control Protocol/Internet Protocol, is a suite of communication protocols used to interconnect network devices on the internet. TCP/IP can also be used as a communications protocol in a private network (an intranet or an extranet).

  • The sequence number in a header is used to keep track of which segment out of many this particular segment might be. The next field, the acknowledgment number, is a lot like the sequence number. The acknowledgment number is the number of the next expected segment.

  • The 32 bit sequence number field defines the number assigned to the first byte of data contained in this segment. TCP is a stream transport protocol. To ensure connectivity, each byte to be transmitted is numbered.
3 0
3 years ago
What is soil texture in civil engineering​
Bond [772]

Answer:

It will indicate the percentage of sand, silt, and clay present in the soil.

Explanation:

4 0
3 years ago
Other questions:
  • Can a 1½ " conduit, with a total area of 2.04 square inches, be filled with wires that total 0.93 square inches if the maximum f
    8·1 answer
  • Which of the following is likely to have the suffix "" after the domain name in its URL?
    7·2 answers
  • The dry unit weight of a soil sample is 14.8 kN/m3.
    12·1 answer
  • Why is a building considered a type of system?
    6·1 answer
  • The statement that is NOT true about the difference between laminar and turbulent boundary layers is:1.the Reynolds number for a
    8·1 answer
  • Write a matrix, that is a lower triangular matrix.
    15·1 answer
  • The Greek alphabet has 24 distinct lowercase letters. How many bits are needed to be able to encode any single lowercase Greek l
    9·1 answer
  • The average human heart Beats 1.15 times 10 to the power of 5 per day. There are 3.65 times 10 to the power of 2 days in one yea
    14·1 answer
  • Which outcome most accurately portrays the future for the timber company in the following scenario?
    9·1 answer
  • A single phase molor is located
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!