|
Snippets C programming language
|
|
03-04-2010, 11:43 PM
Post: #1
|
|||
|
|||
|
Snippets C programming language
I have found a great database of snippets, codes, sources of functions and libraries in C programming language (works for C++ too, of course).
You can find Assorted math functions along with Various ways of computing PI to ridiculous lengths and many many more. Here is the link : http://c.snippets.org/browser.php There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
03-05-2010, 01:25 AM
Post: #2
|
|||
|
|||
|
RE: Snippets C programming language
Thanks a lot dude!
|
|||
|
03-05-2010, 05:12 AM
Post: #3
|
|||
|
|||
|
RE: Snippets C programming language
Can't pi be approximated to any value we want with the current technology, or do we have a finite calculation of it?
"Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
03-05-2010, 05:18 AM
Post: #4
|
|||
|
|||
|
RE: Snippets C programming language
wow... impressive find... thx for sharing... it will be sure in use sometimes, all that functions...
Read rules ![]()
|
|||
|
03-05-2010, 06:28 AM
Post: #5
|
|||
|
|||
RE: Snippets C programming language
(03-05-2010 05:12 AM)Back_track Wrote: Can't pi be approximated to any value we want with the current technology, or do we have a finite calculation of it?Well basically we use pi in loads of calculations and when we round it on some value that is just because we need accuracy on some number of decimals. And it is impossible to find infinite value of pi, but it is possible to calculate it on how many decimals we want. Pi is calculated using this row : And i made a program for calculation on 11 decimals (because real type in Pascal and float in C++ use approximation on to 11 decimals) : http://www.pro9ramming.com/pi-calculation-t-285.html In school we use approximation pi=3,14, because we do not need more accuracy than 2 decimals, but in science i think that biggest number of decimals is 33 and no more, so that is all we need. I think i gave a good explanation ! There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|







