Engineering
Engineering, 11.06.2021 14:40, QueenNerdy889

In c the square root of a number N can be approximated by repeated calculation using the formula NG = 0.5(LG + N/LG) where NG stands for next guess and LG stands for last guess. Write a function that calculates the square root of a number using this method. The initial guess will be the starting value of LG. The program will com- pute a value for NG using the formula given. The difference between NG and LG is checked to see whether these two guesses are almost identical. If they are, NG is accepted as the square root; otherwise, the next guess (NG) becomes the last guess (LG) and the process is repeated (another value is computed for NG, the difference is checked, and so on). The loop should be repeated until the difference is less than 0. 005. Use an initial guess of 1. 0. Write a driver function and test your square root function for the numbers 4, 120. 5, 88, 36.01, 10,000, and 0. 25 PLEASE İN C PROGRAMMİNG

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, 19deleonl
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
image
Engineering, 04.07.2019 18:20, sarah7984
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
image
Engineering, 04.07.2019 18:20, dlr1628
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
image
Engineering, 04.07.2019 19:10, rhiannpelham60
The maximum shear stress and maximum flexural stress occur at the same location along a beam subjected to a non-uniform bending load. a)-trune b)- false
Answers: 2
Do you know the correct answer?
In c the square root of a number N can be approximated by repeated calculation using the formula NG...

Questions in other subjects:

Konu
Mathematics, 16.02.2021 23:10
Konu
Mathematics, 16.02.2021 23:10
Konu
Social Studies, 16.02.2021 23:10
Konu
Mathematics, 16.02.2021 23:10
Konu
Mathematics, 16.02.2021 23:10