combinatorics

Travis Oliphant oliphant.travis at ieee.org
Mon Oct 23 15:57:23 CDT 2006


Mathew Yeates wrote:
> Hi
> Is there any support for combinatorics in numpy or scipy? Actually, all 
> I need is to evaluate is (n/m)  i.e. n choose m.
>
>   
In [3]: scipy.comb(109,54,exact=1)
Out[3]: 49263609265046928387789436527216L

109 choose 54

-Travis





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Numpy-discussion mailing list