LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Wolfgang

Binomial Coefficients (a,b)

In the Advanced Analysis Library I'd like to see a function for efficiently computing binomial coefficients. The 'standard' definition

 

a! / ( b! * ( a - b )! )

 

is not efficient and susceptible to overflow. A better approach for example could be the calculation of ln (n!) using the gamma function as outlined in Numerical Recipes.

1 Comment
JonathanN
NI Employee (retired)
Status changed to: Under Consideration
 
Jonathan N.
National Instruments