[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [MacPerl] Trig Trouble



Of course everybody knows that pi is approximately
3.14159265358979323846264338327950288419716939937510582097494459230781640628
6208998628034825342117067982148086513282306647093844609550582231725359408128
4811174502841027019385211055596446229489549303819644288109756659334461284756
4823378678316527120190914564856692346034861045432664821339360726024914127372
4587006606315588174881520920962829254091715364367892590360011330530548820466
5213841469519415116094330572703657595919530921861173819326117931051185480744
6237996274956735188575272489122793818301194912983367336244065664308602139494
6395224737190702179860943702770539217176293176752384674818467669405132000568
1271452635608277857713427577896091736371787214684409012249534301465495853710
5079227968925892354201995611212902196086403441815981362977477130996051870721
1349999998372978049951059731732816096318595024459455346908302642522308253344
6850352619311881710100031378387528865875332083814206171776691473035982534904
2875546873115956286388235378759375195778185778053217122680661300192787661119
59092164201989 

<grin>

Slightly off-topic, I once wrote a short Perl program to calculate pi on my
9600. It was great, but went through an absurdly large number of
calculations (multiple millions, I think) to accurately determine an
absurdly small number of places (15, I think). Makes you wonder how people
used to do it by hand, and why. I notice on the web that there's now a
formula for calculating the nth arbitrary digit of pi, in hexadecimal
anyway; I haven't yet researched to find out whether there's a binary
solution.

-- Creede


> -----Original Message-----
> From: Douglas P. McNutt [mailto:dmcnutt@macnauchtan.com]
> Sent: Thursday, August 12, 1999 9:09 AM
> To: greg@tradesvc.com; macperl@macperl.org
> Cc: macperl@macperl.org
> Subject: Re: [MacPerl] Trig Trouble
> 
> 
> >$pi = 22/7;
> 
> There is 99 percent of the problem.
> There's a radian/degree conversion in a module somewhere but it's 
> easier to just look up a better value of pi. It is transcendental and 
> CANNOT be expressed as an exact fraction.
> 
> How I wish I could recollect, of circle round, the exact relation 
> that Archimedes found?
> 
> Count the letters in the words.
> 
> 
> -> From the U S of A, the only socialist country that refuses 
> to admit it. <-
> 
> ===== Want to unsubscribe from this list?
> ===== Send mail with body "unsubscribe" to macperl-request@macperl.org
> 

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org