Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!cs.utexas.edu!uunet!hsi!stpstn!lerman From: lerman@stpstn.UUCP (Ken Lerman) Newsgroups: comp.misc Subject: Re: PI Keywords: PI Message-ID: <5919@stpstn.UUCP> Date: 14 Dec 90 14:49:53 GMT References: <7063@aspect.UUCP> <10071@darkstar.ucsc.edu> Reply-To: lerman@stpstn.UUCP (Ken Lerman) Distribution: usa Organization: The Stepstone Corporation, Sandy Hook, CT 06482 Lines: 24 In article <10071@darkstar.ucsc.edu> noesis@ucscb.UCSC.EDU (60276000) writes: > >OK, how about someone providing a method of calcing pi? i'm using > p=2 > s=0 > do > s=sqrt(s+2) > p=2*p/s > while (s < 2) > where p converges to pi as s converges to 2 but i'm interested in >any other algorhythms out there I usually get myself a square dartboard two feet on a side and inscribe a circle with a radius of one foot. Then, by throwing darts at the board and counting the ratio of darts which are inside the circle to darts which hit the board, I can easily calculate pi. Of course, this technique is only usable by those who are as bad at darts as your average random number generator. :-) Ken