PDA

View Full Version : Combinatorics in IMSL



PigeonholePrinciple
03-22-2015, 11:27 AM
Good evening.

I’m evaluating IMSL .Net library and reading the documentation. I’ve found no methods for generating basic combinatorics objects, e.g. combinations and permutations.

Did I miss anything? Is there any way IMSL methods built for «higher goals» (matrix operations?) can be «tricked» into generating those objects?

Maybe my questions and my examination of IMSL documentation are both very basic and silly, but I hope you can help me.

Thank you very much for your attention.

mecej4
01-05-2019, 02:05 AM
You can use the mathematical relations

nCr = 1/[(n+1)Beta(r+1,n-r+1)]

and

nPr = Gamma(n+1)/Gamma(n+1-r)

The Beta and Gamma functions are part of Imsl.Math.Sfun .