Hi,
It's me again. I'm having a time with a program that I'm suppose to write. I'm suppose to write a program calculating the square root of a number without using the "math class" method. My text gives me a formula to use:
nextGuess = (lastGuess + (num / lastGuess)) /2
with the initial guess being the starting value of lastGuess. Also if the differences between next and last guess is very small then nextguess can be the approx sqrt.
I don't understand the math behind this formula to even try and work it into code. Am I setting values for nextGuess and lastGuess and going from there? If so, what values would I start with.
I'm sooo lost!!!
Can anyone help me?
Stacey