New IT forum Follow us on Twitter
21 May 2012, 04:51:52 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Colossal uselessness  (Read 1273 times)
nr
Newbie
*
Posts: 10


« on: 24 December 2009, 07:45:55 pm »

Code:
neil@bungo:/usbdisk/pi_css5_src$ ./pi_css5
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave

Usage: ./pi_css5 digits

Number of digits of pi to calculate?
100000
initializing...
nfft= 32768
radix= 10000
error_margin= 0.000620286
calculating 131072 digits of PI...
AGM iteration
precision= 48: 2.23 sec
precision= 80: 2.23 sec
precision= 176: 2.23 sec
precision= 352: 2.23 sec
precision= 688: 2.23 sec
precision= 1392: 2.23 sec
precision= 2784: 2.23 sec
precision= 5584: 2.23 sec
precision= 11168: 2.23 sec
precision= 22336: 2.23 sec
precision= 44688: 2.23 sec
precision= 89408: 2.23 sec
precision= 178816: 2.23 sec
writing pi131072.txt...
34.97 sec. (real time)
Hit RETURN to exit.

neil@bungo:/usbdisk/pi_css5_src$ cat pi131072.txt
3.

1415926535 8979323846 2643383279 5028841971 6939937510
<snip>

So, there you have it. Pi to ~100000 digits in 35ish seconds calculated on a plug.

Not sure exactly why I felt the urge to do this.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!