how to generate pi in c
Joe Zeff
joe at zeff.us
Fri Nov 5 17:55:36 UTC 2010
On 11/05/2010 09:49 AM, Andrew Haley wrote:
> On 11/05/2010 04:40 PM, Arthur Bela wrote:
>> Does anyone has a "generate-pi.c" source code?
>
> Lots of people do. You'll have to be a bit more specific about
> what you actually want. I guess it's more than
>
> 4*atan(1.0)
>
> Andrew.
As a side note, Dan Alderson (He wrote JPL's spaceprobe navigation
software back in the late '70s, early '80s.) always used that in his
programs because it got pi to machine accuracy, not just the number of
digits you wrote.
More information about the users
mailing list