Henry Z.

asked • 02/16/22

NEWTON'S METHOD

1. There is some starting integer number, called S, that we want to find the square root of. (i.e. we want to find S−−√ ) So prompt the user to enter an integer value between 20 and 400 for S.  We are assuming that the user will enter an integer and not a String or double value.

2. Capture the user's input in an integer variable, named S

3. Calculate the value of the initial guess x0 to be one-half of S. Note that this value will need to be double.

4.Use the general formula x{n+1} = 0.5(x{n} + S/x{n}) to calculate x1 through x9




1 Expert Answer

By:

Nicholas T. answered • 04/10/22

Tutor
4.9 (228)

Computer Engineering Graduate

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.