Re: [Tutor] getting error while solving a series that estimates the value of pi

2011-07-18 Thread surya k
Let me write the code again.. Thanks for your help. On Mon, Jul 18, 2011 at 10:38 PM, James Reynolds wrote: > > > On Mon, Jul 18, 2011 at 12:10 PM, surya k wrote: > >> Hi, >> >> The problem is to estimate the value of pi using the following series. >> *1 / pi = (( 2 * sqrt(2) )/ 9801 ) * SIG

Re: [Tutor] getting error while solving a series that estimates the value of pi

2011-07-18 Thread James Reynolds
On Mon, Jul 18, 2011 at 12:10 PM, surya k wrote: > Hi, > > The problem is to estimate the value of pi using the following series. > *1 / pi = (( 2 * sqrt(2) )/ 9801 ) * SIGMA of k[ (4k)! (1103 + 26390*k) > / (k!^ 4 ) * 396^(4k) ]* > *where k is [0, infinity)* > * Problem is located at : Think

Re: [Tutor] getting error while solving a series that estimates the value of pi

2011-07-18 Thread Alan Gauld
surya k wrote: *k = 0* *tot = 0* *temp1 = 0* *while k >= 0 and temp1 == 0 :* * a = ( 2 * math.sqrt(2) ) / 9801 # first term before sigma * * nu = fact (4*k) * (1103 + (26390*k) ) # numerator of series* * de = pow( fact(k), 4 ) * pow ( 396, 4*k ) # denominator of series* * *

Re: [Tutor] getting error while solving a series that estimates the value of pi

2011-07-18 Thread Andre Engels
On Mon, Jul 18, 2011 at 6:10 PM, surya k wrote: > Hi, > > The problem is to estimate the value of pi using the following series. > *1 / pi = (( 2 * sqrt(2) )/ 9801 ) * SIGMA of k[ (4k)! (1103 + 26390*k) > / (k!^ 4 ) * 396^(4k) ]* > *where k is [0, infinity)* > * Problem is located at : ThinkP

[Tutor] getting error while solving a series that estimates the value of pi

2011-07-18 Thread surya k
Hi, The problem is to estimate the value of pi using the following series. *1 / pi = (( 2 * sqrt(2) )/ 9801 ) * SIGMA of k[ (4k)! (1103 + 26390*k) / (k!^ 4 ) * 396^(4k) ]* *where k is [0, infinity)* * Problem is located at : ThinkPython Book, www.thinkpython.org *Pg 89, Exercise 7.5, Think

Re: [Tutor] Good Book

2011-07-18 Thread Surya P.K. Kasturi
Actually you have a lot of books that have been quoted in www.python.org. One of them is ThinkPython book at www.thinkpython.org. Its really good. You'll also find exercises at the end of units. On Mon, Jul 18, 2011 at 1:56 PM, Ryan wrote: > Dear All Pythonist, > > I'm strarting learn python pr

Re: [Tutor] Good Book

2011-07-18 Thread Lisi
On Monday 18 July 2011 09:26:51 Ryan wrote: > Dear All Pythonist, > > I'm strarting learn python programming and I have been found many resources > on it but I have a problem. I don't know, what is the best complete book > for new learner like me. > > I need your recommendation, thanks before . . .

Re: [Tutor] Good Book

2011-07-18 Thread sefa yıldız
i think, this is good book for you. (this is pdf version ) and also a few sources: http://www.freenetpages.co.uk/hp/alan.gauld/ http://diveintopython.org/toc/index.html http://www.mindview.net/Bo

Re: [Tutor] Good Book

2011-07-18 Thread Alan Gauld
Ryan wrote: I'm strarting learn python programming and I have been found many resources on it but I have a problem. I don't know, what is the best complete book for new learner like me. There are lots of books, both paper and electronic. It depends on eactly what yopu want. Can you already pr

Re: [Tutor] Good Book

2011-07-18 Thread Neo Exodus
Ok, thank you All . . . On Mon, Jul 18, 2011 at 3:36 PM, Peter Lavelle wrote: > ** > There's a free ebook aimed at beginners here:http://inventwithpython.com/ > > Regards > > Peter Lavelle > > > > On 18/07/11 09:26, Ryan wrote: > > Dear All Pythonist, > > I'm strarting learn python programming

Re: [Tutor] Good Book

2011-07-18 Thread Peter Lavelle
There's a free ebook aimed at beginners here:http://inventwithpython.com/ Regards Peter Lavelle On 18/07/11 09:26, Ryan wrote: Dear All Pythonist, I'm strarting learn python programming and I have been found many resources on it but I have a problem. I don't know, what is the best complete

[Tutor] Good Book

2011-07-18 Thread Ryan
Dear All Pythonist, I'm strarting learn python programming and I have been found many resources on it but I have a problem. I don't know, what is the best complete book for new learner like me. I need your recommendation, thanks before . . . -- It is no more than the conspiracy of 0 and 1 [decr