Category : C Source Code
Archive   : PI-5WAYS.ZIP
Filename : READ.ME

 
Output of file : READ.ME contained in archive : PI-5WAYS.ZIP
FIVE WAYS TO CALCULATE ã

The five included files illustrate different methods to appoximate ã. PI1.C,
PI2.C, and PI3.C use series expansions. CANNON.C simulates firing a cannon
at a circular pond enclosed (inscribed) in a square of land. PINDROP.C is
the notorious pin drop simulation, whereby you drop a pin on a wood plank
floor, keep track of how many times the pin falls on a crack, and take the
ratio of "hits" to total drops.

The source code should compile with no problems on just about any version of
C, with a couple of trivial changes. You may have to " #include " at
the beginning of the files. A couple of the files use the function
"clrscrn()", which clears the screen. You may need to substitute an
equivalent function call, or just plain delete that line.

These files are placed into the Public Domain for educational purposes.

Enjoy.

Mendel Cooper
3138 Foster Ave.
Baltimore, MD 21224

06/91


  3 Responses to “Category : C Source Code
Archive   : PI-5WAYS.ZIP
Filename : READ.ME

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/