🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.education.maths
Article #57

Re: Pi day

#57
From: Reg Braddock
Date: Fri, 28 Mar 1997 00:00
32 lines
2445 bytes
On Tue, 18 Mar 1997 23:56:55 +0100, Perry Winkel <winkarn@worldonline.nl> wrote:
>In article <01bc3440$d8a87040$LocalHost@default>, "Belinda Berry"
><BJBerry@onaustralia.com.au> wrote:
>
>> How do you actually calculate pi anyway. (without loooking it up in a
>> book.) I suppose if you drew up a really accurate circle and did some
>> measuring it might work, but nothing I draw could possibly get more than
>> about 2 decimal places.

>...as I recall from long ago in high school, there is in fact a very easy
>way to determine pi. You need a stick (a pencil works fine also) and a
>floor with a pattern of square tiles. What you do is this:
>

Or borrow a trick from monte carlo integration.  On a computer,
generate two sets of random variables, X and Y which are uniformly
distributed [0,1].  Taking each x and y and calculate the distance
between the origin (0,0) and the point defined by x and y.  If it's
less than 1, increment a counter, say INSIDE otherwise one called
OUTSIDE.  After a suitably large number of (x,y), PI can be determined
by 4* (INSIDE/(INSIDE+OUTSIDE)).  In effect, it would be the
integration of the area inside a unit circle which we know to have an
area of PI*r*r.

Reg.



-- 
----------------------------------------------------------
Friends help you move.  Real friends help you move bodies.
Technical Details
Message-ID: <slrn5jmdjg.ofp.braddock@labrador.apana.org.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8WRuzAAXBILzEwKP@ward-hull.demon.co.uk> <5gjuho$pth@sgi1.math.umbc.edu> <332EB13F.1672@pap.univie.ac.at> <01bc3440$d8a87040$LocalHost@default> <winkarn-1803972356550001@192.163.1.1>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f458d,30fff994c7ddd7d9
X-Google-Attributes: gidf458d,public
X-Google-Thread: 1130d6,30fff994c7ddd7d9
X-Google-Attributes: gid1130d6,public
X-Google-Thread: 10d67e,30fff994c7ddd7d9
X-Google-Attributes: gid10d67e,public
X-Google-Thread: 1077c2,30fff994c7ddd7d9
X-Google-Attributes: gid1077c2,public
X-Google-Thread: 109d8a,30fff994c7ddd7d9
X-Google-Attributes: gid109d8a,public
X-Google-Thread: f7972,30fff994c7ddd7d9
X-Google-Attributes: gidf7972,public
From: braddock@labrador.apana.org.au (Reg Braddock)
Subject: Re: Pi day
Date: 1997/03/28
Message-ID: <slrn5jmdjg.ofp.braddock@labrador.apana.org.au>
X-Deja-AN: 229006618
References: <8WRuzAAXBILzEwKP@ward-hull.demon.co.uk> <5gjuho$pth@sgi1.math.umbc.edu> <332EB13F.1672@pap.univie.ac.at> <01bc3440$d8a87040$LocalHost@default> <winkarn-1803972356550001@192.163.1.1>
Organization: Not Organized
Reply-To: braddock@labrador.apana.org.au
Newsgroups: uk.education.maths,alt.uu.math.misc,aus.mathematics,can.schoolnet.math.sr,alt.math.recreational,sci.math