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
What is a microwave transmitter?a) A technology that uses active or passive tags in the form of chips or smart labels that can s
Blababa [14]

Answer:

b) Commonly used to transmit network signals over great distances.

Explanation:

The transmission of information or data by using microwave radio waves is known as microwave transmission. Microwave transmitter is commonly used to transmit network signals over great distances. It is an electronic device that transmits and receives radio frequency signals ranging from 1GHz to 100GHz.

The microwave transmitter has a wide range of applications and these includes, radio stations, television stations, mobile phones, radio astronomy, radar,

5 0
3 years ago
Read 2 more answers
You are driving on a road where the speed limit is 35 mph. If you want to make a turn, you must start to signal at least _______
stich3 [128]
I believe it’s D) 20 feet
3 0
3 years ago
How does a motion sensor work?
Ahat [919]

Answer:

A motion sensor uses one or multiple technologies to detect movement in an area. When a sensor detects motion, it sends a signal to your security systems control panel, which connects to your monitoring panel system. This alerts you and the monitoring center to a potential threat in your home.

Hope It Helps You................

3 0
3 years ago
Imagine you are a process safety consultant and you have been tasked to make a metal refinery site DSEAR compliant. What are the
masya89 [10]

Complying with DSEAR involves:

Assessing risks. ...

Preventing or controlling risks. ...

Control measures. ...

Mitigation. ...

Preparing emergency plans and procedures. ...

Providing information, instruction and training for employees. ...

Places where explosive atmospheres may occur ('ATEX' requirements)

hse uk

4 0
2 years ago
1. What are the base pairs?
Eduardwww [97]
1. A base pair is a fundamental unit of double-stranded nucleic acids consisting of two nucleobases bound to each other by hydrogen bonds.

2.Proteins

3.DNA is made up of molecules called nucleotides. Each nucleotide contains a phosphate group, a sugar group and a nitrogen base. The four types of nitrogen bases are adenine (A), thymine (T), guanine (G) and cytosine (C). The order of these bases is what determines DNA's instructions, or genetic code.

4. any of a group of basic proteins found in chromatin.

5.46 chromosomes

Hope i helped x
6 0
3 years ago
Other questions:
  • The following C program asks the user for two input null-terminated strings, each stored in uninitialized 100-byte buffer, and c
    6·1 answer
  • Select the statement that is false.
    12·1 answer
  • What are the prefixes for 1, 10, 1000, 1,000,000, .1, .01, .001, .000001
    9·1 answer
  • Is the gap store an example of commercial construction? Yes or no
    10·1 answer
  • What ic engine for mechanic
    15·1 answer
  • Determine the minimum required wire radius assuming a factor of safety of 3 and a yield strength of 1500 MPa.
    15·1 answer
  • Solve the inequality below.Use the drop-down menus to describe the solution and its graph.
    12·1 answer
  • What are the main microsoft ware packages widely used today​
    6·2 answers
  • What is the tolerance for number 4?
    12·1 answer
  • The variation of the pressure of a fluid with density at constant temperature is known as the _____.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!