Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: PI ~ competition for men

  1. #1
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default PI ~ competition for men

    Well, title says it all. Who can calculate the first 1000 digits of pi the fastest with simba? You don't have to write the algorithm itself. Here is one I found.

    source: http://www.mathpropress.com/stan/bib...phy/spigot.pdf
    edited by me

    Simba Code:
    Program Pi_Spigot;

    const
      n   = 1000;
      len = 10*n div 3;

    var
      i, j, k, q, x, nines, predigit: integer;
      tm: integer;
      a: array[1..len] of longint;
      res: String;


    begin
      tm := getSystemTime;
      for j := 1 to len do
        a[j] := 2;                 {Start with 2s}
      nines := 0;
      predigit := 0;               {First predigit is a 0}
      for j := 1 to n do
      begin
        q := 0;
        for i := len downto 1 do   {Work backwards}
        begin
          x    := 10*a[i] + q*i;
          a[i] := x mod (2*i - 1);
          q    := x div (2*i - 1);
        end;
        a[1] := q mod 10;
        q := q div 10;
        if q = 9 then
          nines := nines + 1
        else
          if q = 10 then
          begin
              res := res + ToStr(predigit+1);
              for k := 1 to nines do
                res := res + ToStr(0);            {zeros}
              predigit := 0;
              nines := 0
                end
                else
                begin
              res := res + ToStr(predigit);
              predigit := q;
              if nines <> 0 then
              begin
                for k := 1 to nines do
                  res := res + ToStr(9);
                nines := 0
              end
          end
      end;
      res := res + ToStr(predigit);
      writeln('took ' + ToStr(getSystemTime- tm) + ' ms');
      writeln(res);
    end.

    On my old slow laptop I got the following results:

    lape
    took 936 ms

    pascalscript
    took 65723 ms
    Working on: Tithe Farmer

  2. #2
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Lape: took 671 ms
    pascalscript: took 68173 ms

    Conclusion: Lape is fast


    What's the point of this?
    Last edited by Nebula; 09-25-2012 at 10:10 PM.

  3. #3
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    I don't know how to do this in lape


    I think this was a thread made to test pi algo's to find fastest times, no?
    Nonetheless, always fun comparing lape to pascalscript
    Last edited by Le Jingle; 09-25-2012 at 11:19 PM.

  5. #5
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    I don't have Lape yet but my results on my PC

    took 57860 ms
    03141592653589793238462643383279502884197169399375 10582097494459230781640628620899862803482534211706 79821480865132823066470938446095505822317253594081 28481117450284102701938521105559644622948954930381 96442881097566593344612847564823378678316527120190 91456485669234603486104543266482133936072602491412 73724587006606315588174881520920962829254091715364 36789259036001133053054882046652138414695194151160 94330572703657595919530921861173819326117931051185 48074462379962749567351885752724891227938183011949 12983367336244065664308602139494639522473719070217 98609437027705392171762931767523846748184676694051 32000568127145263560827785771342757789609173637178 72146844090122495343014654958537105079227968925892 35420199561121290219608640344181598136297747713099 60518707211349999998372978049951059731732816096318 59502445945534690830264252230825334468503526193118 81710100031378387528865875332083814206171776691473 03598253490428755468731159562863882353787593751957 78185778053217122680661300192787661119590921642019 8

    dat i7

    Script source code available here: Github

  6. #6
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by J J View Post
    I don't have Lape yet but my results on my PC
    Every 'recent' version of simba comes shipped with lape. You can set it with Script(menu) -> interpreter -> lape.

    The reason I created this thread was to see what is the most advanced math we can do with simba. I gave an example of calculating PI, which was surprisingly fast. I was interested into what methods other users might find. Can be non PI related though if you know something cool ^^
    Working on: Tithe Farmer

  7. #7
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    Every 'recent' version of simba comes shipped with lape. You can set it with Script(menu) -> interpreter -> lape.

    The reason I created this thread was to see what is the most advanced math we can do with simba. I gave an example of calculating PI, which was surprisingly fast. I was interested into what methods other users might find. Can be non PI related though if you know something cool ^^
    Oh I didn't even realise that even though I've been spending quite some time with Simba lately for the scripting competetion.

    Lape: took 796 ms

    My sime time was quite a bit faster compared to others, but my Lape time is less impressive :P

    Also for the non PI related methods, I think I'll improve my edge detection in the near-future. The main problem was the speed. With Lape that is no problem anymore so I can work on more accurate ways

    Script source code available here: Github

  8. #8
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    pro tip: edge detection should be done in a dll(plugin) or MML. I got decent result there.
    Working on: Tithe Farmer

  9. #9
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    pro tip: edge detection should be done in a dll(plugin) or MML. I got decent result there.
    Yeah that's even faster. I'm not sure how plugins works so I guess it's time to look into that and make a beast plugin A plugin written in C++ is probably the fatest right? But I haven't coded anything in C++ but it's always good to learn. Anyways, I'll see about that in the near future. Probably in 3 weeks when I have holiday Bad thing is that my first examweek on my new school is right after that week haha.

    Script source code available here: Github

  10. #10
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by J J View Post
    Yeah that's even faster. I'm not sure how plugins works so I guess it's time to look into that and make a beast plugin A plugin written in C++ is probably the fatest right? But I haven't coded anything in C++ but it's always good to learn.
    Anything compiled to native code (i.e. C, C++, Delphi/FPC), would pretty much have the same speed.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  11. #11
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by Daniel View Post
    Anything compiled to native code (i.e. C, C++, Delphi/FPC), would pretty much have the same speed.
    C > FPC > C++ > Delphi, They do have speed differences.

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  12. #12
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Code:
    Compiled successfully in 16 ms.
    took 49655 ms
    03141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198
    Successfully executed.
    <3 i7

    Forum account issues? Please send me a PM

  13. #13
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by [J]ustin View Post
    Code:
    Compiled successfully in 16 ms.
    took 49655 ms
    03141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198
    Successfully executed.
    <3 i7
    Another thing I'm wondering here is what matters the most using lape and pascal. As seen by the results and my expectations it seems that pascal relies on clock speed as it uses one thread only. So higher clockspeed = faster pi calculation using pascal? And more threads = faster lape pi calculation? I know that [J]ustin has like a i7 3960x or something right at like 4.5 ghz which explains his time :P

    Script source code available here: Github

  14. #14
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Afaik simba only uses one thread. The difference between lape and pascalscript speedwise are big because lape iirc interpreted the script every time you press run, there for the time between pressing run and the script actually starting is bigger. Pascalscript was more like jit, which interprets Just In Time. Note that it won't matter as much in most runescape bot scripts. Since those scripts will feature a lot of calls to simba functions like FindColor, which execute at the same speed.
    Working on: Tithe Farmer

  15. #15
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    An alternative implementation, I get 1ms on Lape and PascalScript
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  16. #16
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    took 639 ms
    Lape^^^
    Currently Making it Calc to 1M DP
    Should Take 6Hrs or so



    ^^

  17. #17
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    PascalScript:
    Code:
    Compiled successfully in 0 ms.
    took 39609 ms
    03141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198
    Successfully executed.
    Lape:
    Code:
    Compiled successfully in 125 ms.
    took 655 ms
    03141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198
    Successfully executed.
    Edit: J J, you're saying my i7-3770k stock @ 3.5gz out performed Justin's i7-3930k 4.5gz?
    Last edited by ShawnjohnSJ; 10-20-2012 at 06:56 AM.

  18. #18
    Join Date
    May 2008
    Location
    Mental Hospital
    Posts
    414
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Lape took 905 ms

    Pascal took too long, and I'm not patient.

    i7-2670QM @ 2.20GHz

  19. #19
    Join Date
    Apr 2007
    Location
    Estonia
    Posts
    156
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Compiled successfully in 15 ms.
    took 47908 ms

    Compiled successfully in 141 ms.
    took 843 ms

    i5-2500k
    ROCK IS NOT A DEVILS WORK, ITS MAGICAL AND RAD!

  20. #20
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Next goal: first to remember all 1000 digits and say it out loud to a webcam with a mic with closed eyes.

  21. #21
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Lape: took 984 ms
    Progress Report:
    took 984 ms
    03141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198
    Successfully executed.
    Compiled successfully in 172 ms.


    PascalScript: took 57828 ms
    Progress Report:
    took 57828 ms
    03141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468731159562863882353787593751957781857780532171226806613001927876611195909216420198


    well.. :?


    < Cuda * 2GB

  22. #22
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    Gratz on promo master BB
    Using mathematica:
    Code:
    Timing[N[\[Pi], 10000]]
    
    {16 ms, 3.\
    1415926535897932384626433832795028841971693993751058209749445923078164\
    0628620899862803482534211706798214808651328230664709384460955058223172\
    5359408128481117450284102701938521105559644622948954930381964428810975\
    6659334461284756482337867831652712019091456485669234603486104543266482\
    1339360726024914127372458700660631558817488152092096282925409171536436\
    7892590360011330530548820466521384146951941511609433057270365759591953\
    0921861173819326117931051185480744623799627495673518857527248912279381\
    8301194912983367336244065664308602139494639522473719070217986094370277\
    0539217176293176752384674818467669405132000568127145263560827785771342\
    7577896091736371787214684409012249534301465495853710507922796892589235\
    4201995611212902196086403441815981362977477130996051870721134999999837\
    2978049951059731732816096318595024459455346908302642522308253344685035\
    2619311881710100031378387528865875332083814206171776691473035982534904\
    2875546873115956286388235378759375195778185778053217122680661300192787\
    6611195909216420198938095257201065485863278865936153381827968230301952\
    0353018529689957736225994138912497217752834791315155748572424541506959\
    5082953311686172785588907509838175463746493931925506040092770167113900\
    9848824012858361603563707660104710181942955596198946767837449448255379\
    7747268471040475346462080466842590694912933136770289891521047521620569\
    6602405803815019351125338243003558764024749647326391419927260426992279\
    6782354781636009341721641219924586315030286182974555706749838505494588\
    5869269956909272107975093029553211653449872027559602364806654991198818\
    3479775356636980742654252786255181841757467289097777279380008164706001\
    6145249192173217214772350141441973568548161361157352552133475741849468\
    4385233239073941433345477624168625189835694855620992192221842725502542\
    5688767179049460165346680498862723279178608578438382796797668145410095\
    3883786360950680064225125205117392984896084128488626945604241965285022\
    2106611863067442786220391949450471237137869609563643719172874677646575\
    7396241389086583264599581339047802759009946576407895126946839835259570\
    9825822620522489407726719478268482601476990902640136394437455305068203\
    4962524517493996514314298091906592509372216964615157098583874105978859\
    5977297549893016175392846813826868386894277415599185592524595395943104\
    9972524680845987273644695848653836736222626099124608051243884390451244\
    1365497627807977156914359977001296160894416948685558484063534220722258\
    2848864815845602850601684273945226746767889525213852254995466672782398\
    6456596116354886230577456498035593634568174324112515076069479451096596\
    0940252288797108931456691368672287489405601015033086179286809208747609\
    1782493858900971490967598526136554978189312978482168299894872265880485\
    7564014270477555132379641451523746234364542858444795265867821051141354\
    7357395231134271661021359695362314429524849371871101457654035902799344\
    0374200731057853906219838744780847848968332144571386875194350643021845\
    3191048481005370614680674919278191197939952061419663428754440643745123\
    7181921799983910159195618146751426912397489409071864942319615679452080\
    9514655022523160388193014209376213785595663893778708303906979207734672\
    2182562599661501421503068038447734549202605414665925201497442850732518\
    6660021324340881907104863317346496514539057962685610055081066587969981\
    6357473638405257145910289706414011097120628043903975951567715770042033\
    7869936007230558763176359421873125147120532928191826186125867321579198\
    4148488291644706095752706957220917567116722910981690915280173506712748\
    5832228718352093539657251210835791513698820914442100675103346711031412\
    6711136990865851639831501970165151168517143765761835155650884909989859\
    9823873455283316355076479185358932261854896321329330898570642046752590\
    7091548141654985946163718027098199430992448895757128289059232332609729\
    9712084433573265489382391193259746366730583604142813883032038249037589\
    8524374417029132765618093773444030707469211201913020330380197621101100\
    4492932151608424448596376698389522868478312355265821314495768572624334\
    4189303968642624341077322697802807318915441101044682325271620105265227\
    2111660396665573092547110557853763466820653109896526918620564769312570\
    5863566201855810072936065987648611791045334885034611365768675324944166\
    8039626579787718556084552965412665408530614344431858676975145661406800\
    7002378776591344017127494704205622305389945613140711270004078547332699\
    3908145466464588079727082668306343285878569830523580893306575740679545\
    7163775254202114955761581400250126228594130216471550979259230990796547\
    3761255176567513575178296664547791745011299614890304639947132962107340\
    4375189573596145890193897131117904297828564750320319869151402870808599\
    0480109412147221317947647772622414254854540332157185306142288137585043\
    0633217518297986622371721591607716692547487389866549494501146540628433\
    6639379003976926567214638530673609657120918076383271664162748888007869\
    2560290228472104031721186082041900042296617119637792133757511495950156\
    6049631862947265473642523081770367515906735023507283540567040386743513\
    6222247715891504953098444893330963408780769325993978054193414473774418\
    4263129860809988868741326047215695162396586457302163159819319516735381\
    2974167729478672422924654366800980676928238280689964004824354037014163\
    1496589794092432378969070697794223625082216889573837986230015937764716\
    5122893578601588161755782973523344604281512627203734314653197777416031\
    9906655418763979293344195215413418994854447345673831624993419131814809\
    2777710386387734317720754565453220777092120190516609628049092636019759\
    8828161332316663652861932668633606273567630354477628035045077723554710\
    5859548702790814356240145171806246436267945612753181340783303362542327\
    8394497538243720583531147711992606381334677687969597030983391307710987\
    0408591337464144282277263465947047458784778720192771528073176790770715\
    7213444730605700733492436931138350493163128404251219256517980694113528\
    0131470130478164378851852909285452011658393419656213491434159562586586\
    5570552690496520985803385072242648293972858478316305777756068887644624\
    8246857926039535277348030480290058760758251047470916439613626760449256\
    2742042083208566119062545433721315359584506877246029016187667952406163\
    4252257719542916299193064553779914037340432875262888963995879475729174\
    6426357455254079091451357111369410911939325191076020825202618798531887\
    7058429725916778131496990090192116971737278476847268608490033770242429\
    1651300500516832336435038951702989392233451722013812806965011784408745\
    1960121228599371623130171144484640903890644954440061986907548516026327\
    5052983491874078668088183385102283345085048608250393021332197155184306\
    3545500766828294930413776552793975175461395398468339363830474611996653\
    8581538420568533862186725233402830871123282789212507712629463229563989\
    8989358211674562701021835646220134967151881909730381198004973407239610\
    3685406643193950979019069963955245300545058068550195673022921913933918\
    5680344903982059551002263535361920419947455385938102343955449597783779\
    0237421617271117236434354394782218185286240851400666044332588856986705\
    4315470696574745855033232334210730154594051655379068662733379958511562\
    5784322988273723198987571415957811196358330059408730681216028764962867\
    4460477464915995054973742562690104903778198683593814657412680492564879\
    8556145372347867330390468838343634655379498641927056387293174872332083\
    7601123029911367938627089438799362016295154133714248928307220126901475\
    4668476535761647737946752004907571555278196536213239264061601363581559\
    0742202020318727760527721900556148425551879253034351398442532234157623\
    3610642506390497500865627109535919465897514131034822769306247435363256\
    9160781547818115284366795706110861533150445212747392454494542368288606\
    1340841486377670096120715124914043027253860764823634143346235189757664\
    5216413767969031495019108575984423919862916421939949072362346468441173\
    9403265918404437805133389452574239950829659122850855582157250310712570\
    1266830240292952522011872676756220415420516184163484756516999811614101\
    0029960783869092916030288400269104140792886215078424516709087000699282\
    1206604183718065355672525325675328612910424877618258297651579598470356\
    2226293486003415872298053498965022629174878820273420922224533985626476\
    6914905562842503912757710284027998066365825488926488025456610172967026\
    6407655904290994568150652653053718294127033693137851786090407086671149\
    6558343434769338578171138645587367812301458768712660348913909562009939\
    3610310291616152881384379099042317473363948045759314931405297634757481\
    1935670911013775172100803155902485309066920376719220332290943346768514\
    2214477379393751703443661991040337511173547191855046449026365512816228\
    8244625759163330391072253837421821408835086573917715096828874782656995\
    9957449066175834413752239709683408005355984917541738188399944697486762\
    6551658276584835884531427756879002909517028352971634456212964043523117\
    6006651012412006597558512761785838292041974844236080071930457618932349\
    2292796501987518721272675079812554709589045563579212210333466974992356\
    3025494780249011419521238281530911407907386025152274299581807247162591\
    6685451333123948049470791191532673430282441860414263639548000448002670\
    4962482017928964766975831832713142517029692348896276684403232609275249\
    6035799646925650493681836090032380929345958897069536534940603402166544\
    3755890045632882250545255640564482465151875471196218443965825337543885\
    6909411303150952617937800297412076651479394259029896959469955657612186\
    5619673378623625612521632086286922210327488921865436480229678070576561\
    5144632046927906821207388377814233562823608963208068222468012248261177\
    1858963814091839036736722208883215137556003727983940041529700287830766\
    7094447456013455641725437090697939612257142989467154357846878861444581\
    2314593571984922528471605049221242470141214780573455105008019086996033\
    0276347870810817545011930714122339086639383395294257869050764310063835\
    1983438934159613185434754649556978103829309716465143840700707360411237\
    3599843452251610507027056235266012764848308407611830130527932054274628\
    6540360367453286510570658748822569815793678976697422057505968344086973\
    5020141020672358502007245225632651341055924019027421624843914035998953\
    5394590944070469120914093870012645600162374288021092764579310657922955\
    2498872758461012648369998922569596881592056001016552563756785667227966\
    198857827948732908019306543`10000.}

  23. #23
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    1,000,000 DP of pi, took 2.5 seconds
    too large to post, too large for pastebin
    but here is dl link
    http://puu.sh/1KMz8
    10,000,000 DP - 30 seconds
    Took 5 mins to save as a plain text, fml
    well here it is :
    http://puu.sh/1KMXy

    After a bit of research here are the results i got from using Chudnovsky Formula to get pi to 500,000,000 (500 million) decimal places

    Constant : Pi
    Algorithm: Chudnovsky Formula

    Decimal Digits : 500,000,000
    Hexadecimal Digits: Disabled

    Threads: 2
    Mode : Ram Only

    Start Time: Mon Jan 07 14:05:00 2013


    Allocating and Reserving Memory... 2.42 GB
    Constructing FFT lookup tables...


    Begin Computation:

    Summing Series: 35,256,838 terms
    Time: 1597.918 seconds ( 0.444 hours )
    InvSqrt...
    Time: 49.843 seconds ( 0.014 hours )
    Final Multiply...
    Time: 30.601 seconds ( 0.009 hours )

    Pi: 1678.365 seconds ( 0.466 hours )


    Constructing Base Conversion Table:
    Time: 6.547 seconds ( 0.002 hours )
    Base Converting:
    Time: 226.433 seconds ( 0.063 hours )

    Writing Decimal Digits: 500,000,000 digits written

    Verifying Base Conversion...
    Time: 42.701 seconds ( 0.012 hours )


    End Time: Mon Jan 07 14:37:49 2013

    Total Computation Time: 1911.489 seconds ( 0.531 hours )
    Total Time (with output + verify): 1969.852 seconds ( 0.547 hours )

    CPU Utilization: 180.981 %
    Multi-core Efficiency: 90.4905 %

    Last Digits: Pi
    3896531789 0364496761 5664275325 5483742003 7847987772 : 499,999,950
    5002477883 0364214864 5906800532 7052368734 3293261427 : 500,000,000

  24. #24
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    1,199
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    Compiled successfully in 328 ms.
    took 1872 ms

    Guess I need to upgrade again :P

    i7 2670QM, 8gb Ram. For best results set Simba to -> Realtime under task manager

    Edit: Re-ran and got this?

    Compiled successfully in 250 ms.
    took 1388 ms

    EDIT 2:

    Re-Ran and got these:
    Compiled successfully in 140 ms.
    took 780 ms

    Compiled successfully in 140 ms.
    took 764 ms

  25. #25
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    if you use oven instead of lape and pascalscript you get this...




Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •