Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

RE: X-treme P-ondering

by Dominus (Parson)
on Nov 13, 2000 at 21:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://41356]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-18 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found