-
Combinatorics in IMSL
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.
-
Senior Member
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 .
Last edited by mecej4; 01-09-2019 at 01:58 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules