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
Me ayudas plis noce ​
alekssr [168]

Answer:

Explanation:

7 0
3 years ago
Describe what V1-V4 is
photoshop1234 [79]

Answer:

it is wave inversion

Explanation:

8 0
3 years ago
I don't know what is this​
pychu [463]
That means “ if possible then link”
8 0
3 years ago
Birdie Par owns a company that makes golf gloves. She is thinking about introducing a new glove, which would require an addition
melamori03 [73]

Birdie's company will make a profit of $30,000 if she sells 3,000 gloves at the $15 price.

Step-by-step Solution:

Break even point= fixed cost/ selling price - variable cost

here the fixed cost is= $20,000

selling price= $15 and variable cost = $5

BEP= 20,000/ 15-5= 20,000/10= 2000 units

b. if they sell 3000 gloves, the contribution profit will be

total revenue= 3000*$15= $45,000

contribution= selling price- variable cost, 15-5= $10 per unit

the profit is= 3000*$10= $30,000

What is  variable cost?

A variable cost is one that varies in relation to either the volume of production or the number of services provided. There should be no variable costs if no production or services are provided. Variable costs should rise in tandem with increases in production or services.

To learn more about Profit Calculation, visit: brainly.com/question/28177180

#SPJ1

3 0
1 year ago
What parts of a ship have plastic? And what type of plastic?
goblinko [34]

Answer:

I know ship has stream line body

3 0
3 years ago
Other questions:
  • What is the difference between a job and a profession
    9·1 answer
  • To reduce the drag coefficient and thus improve the fuel efficiency of cars,the design of side rearview mirrors has changed dram
    11·1 answer
  • an existing highway-railway at-grade crossing is being redesigned as grade separated to improve traffic operations. The railway
    8·1 answer
  • Two blocks of rubber with a modulus of rigidity G =10 MPa are bonded to rigid supports and to a plate AB. Knowing that b = 200 m
    8·1 answer
  • QUESTIONS
    12·1 answer
  • Which section of business plan should be the bulk of the plan
    7·1 answer
  • What is this i dont understand this at all
    9·1 answer
  • Technician A says that the enable criteria are the criteria that must be met before the PCM completes a monitor test. Technician
    8·1 answer
  • Proper handling of blueprints includes which of the following
    5·1 answer
  • The most important reason to wear your seat belt is to protect you from:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!