Re: how to generate pi in c

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

 



On 11/05/2010 04:40 PM, Arthur Bela wrote:
> Does anyone has a "generate-pi.c" source code?
> 
> Thanks.. :D :\

Any book on numerical algorithms should give you a good run down on how you can
implement this in general. If you're not looking to get too deep into this then
Wikipedia has an article that discusses historical and current methods for
evaluating Pi to a certain degree of accuracy:

http://en.wikipedia.org/wiki/Pi

If you just need the value then the standard C maths library supplies
pre-defined mathematical constants that you can use in your programs:

http://www.gnu.org/s/libc/manual/html_node/Mathematical-Constants.html
http://www.gnu.org/s/libc/manual/html_node/Trig-Functions.html

If none of these satisfies your needs then you'll need to explain what you want
to do with the pi generator in a bit more detail.

Regards,
Bryn.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux