home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!seismo!darwin.sura.net!nih-csl!alw.nih.gov!gregh
- From: gregh@alw.nih.gov (Gregory Humphreys)
- Newsgroups: comp.lang.c
- Subject: Re: POWER OF LARGE NUMBERS
- Message-ID: <1992Aug20.140151.20492@alw.nih.gov>
- Date: 20 Aug 92 14:01:51 GMT
- References: <1992Aug12.135106.12924@cs.uow.edu.au> <thompson.713734408@daphne.socsci.umn.edu> <1992Aug16.052157.1991@organpipe.uug.arizona.edu> <1992Aug17.222948.10070@merlin.dev.cdx.mot.com> <CGAY.92Aug17223208@majestix.cs.uoregon.edu> <1992Aug19.142921.27592@crpmks
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Organization: National Inst. of Health, DCRT, CSL
- Lines: 27
-
- In article <1992Aug19.142921.27592@crpmks.uucp>, billb@crpmks.uucp (Bill Bochnik (Info Systems)) writes:
- |> Just for amusement, what was the repeating formula for calculating PI to any
- |> desired number of digits? Thanks.
- |>
- |> --
- |> Bill Bochnik | It's hard to be a James Bond in an Abbott
- |> Systems Analyst | and Costello world.
- |> Ciba-Geigy Corporation | Signed and sealed, they deliver oblivion.
- |> philabs!crpmks!billb | It's worse than that, he's dead Jim.
-
- There's the simple one from the taylor series for (arctan?):
-
- P I 1 1 1 1
- --- = 1 - - + - - - + - - ...
- 4 3 5 7 9
-
- Don't yell at me if ther's a better way, I know there is. This converges really slowly, tho. The best way is to Use Mathematica:
-
-
-
- N[Pi,Num_Digits]
-
- --
- Greg Humphreys | "Playing not to win is like sleeping with your
- gregh@alw.nih.gov | sister - sure, she's a great piece of tail,
- | and she's got a bag full of goodies, but it's
- (301) 402-1817 | just plain illegal." -Charlie Sheen, "Hotshots"
-