[SciPy-user] Python fn for Pascal's coefficient?

Stéfan van der Walt stefan@sun.ac...
Tue Jun 10 04:38:08 CDT 2008


Hey Stephen

2008/6/10 Stephen McInerney <spmcinerney@hotmail.com>:
> Sorry to ask such a basic question, but I searched and I can't find
> a function for Pascal's coefficient, either in standard Python, SciPy or
> NumPy.

The Python cookbook is normally a good place to find this sort of thing:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/392153
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/528913

In the last one, you can replace comb with the function Robert mentioned.

Cheers
Stéfan


More information about the SciPy-user mailing list