Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^8: solve cubic equations (Java)

by no_slogan (Deacon)
on May 05, 2017 at 16:03 UTC ( #1189584=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (1..10) {
       $s = ($s*0x5deece66d + 0xb) % 2**48;
       say(($s>>17)%1000);
    }
    
  2. or download this
              s/iter    BigInt BigIntGMP       GMP      Perl
    BigInt      25.0        --      -42%      -94%     -100%
    BigIntGMP   14.4       73%        --      -90%      -99%
    GMP         1.47     1605%      885%        --      -93%
    Perl       0.110    22701%    13070%     1238%        --
    
  3. or download this
    use strict;
    use warnings;
    ...
                          tryclass('Math::BigInt', \@nums) },
       Perl      => sub { tryperl(\@nums) },
    });
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1189584]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2019-07-22 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (12 votes). Check out past polls.

    Notices?