Re: [Tutor] Python Program: Newton's Method

2009-01-27 Thread bob gailer
I neglected to mention that we'd like you to always reply-all so a copy goes to the list. All of us participate and learn. Donna Ibarra wrote: The numbers that are outputted are not exactly correct as they should be for Newtons Method: OK - thanks - now please give us a few sample numbers, th

Re: [Tutor] Python Program: Newton's Method

2009-01-26 Thread bob gailer
Welcome - this seems to be your first encounter with Python Tutor. It is essential when asking questions like this that you state explicitly what problem you are having. If the program runs and gives unexpected results, tell us that, and show some input, the expected results and the actual re

Re: [Tutor] Python Program: Newton's Method

2009-01-25 Thread Kent Johnson
On Sun, Jan 25, 2009 at 6:11 PM, Donna Ibarra wrote: > Hello, > > I need to write a program that implements Newton's method ((guess + x/guess) > / (2)). The program should prompt the user for the value to find the > squareroot of (x) and the number of times to improve the guess. Starting > with a

Re: [Tutor] Python Program: Newton's Method

2009-01-25 Thread John Fouhy
2009/1/26 Donna Ibarra : > I need to write a program that implements Newton's method [...] What problems are you having? -- John. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Python Program: Newton's Method

2009-01-25 Thread Donna Ibarra
Hello, I need to write a program that implements Newton's method ((guess + x/guess) / (2)). The program should prompt the user for the value to find the squareroot of (x) and the number of times to improve the guess. Starting with a guess value of x/2, your program should loop the specified number