Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

RE: X-treme P-ondering

by Dominus (Parson)
on Nov 13, 2000 at 21:32 UTC ( #41356=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $n = shift || 8;
    my $p = shift || .25;
    ...
      return 1 if $r == 0 || $r == $n;
      return choose($n-1,$r-1) * $n / $r;
    }
    
  2. or download this
     0 0.1001       (0.8999)
     1 0.2670       (0.6329)
    ...
     7 0.0004       (0.0000)
     8 0.0000       (0.0000)
    Expected: 2
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2015-09-04 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (133 votes), past polls