Results 1 to 2 of 2

Thread: Combinatorics in IMSL

  1. #1

    Question 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.

  2. #2
    Senior Member mecej4's Avatar
    Join Date
    Dec 2009
    You can use the mathematical relations

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


    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 12: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