We do have the multinomial_coefficients() function. Is that the same thing as what you want?
Aaron Meurer On Thu, May 3, 2012 at 6:59 PM, Kjetil brinchmann Halvorsen <[email protected]> wrote: > see below. > > On Thu, May 3, 2012 at 7:51 PM, Tom Bachmann <[email protected]> wrote: >> >> I agree we should have it, and I agree it should go to factorials.py. Go >> ahead and give it a shot! > > > > > Will try! > > Some questions: As there is the "generalized binomial coefficient, given > by > binom(a,k) = \frac{a(a-1)\dots (a-k+1)}{k!}, we could define in a natural > way "generalized multinomial coefficiewnts" > by > multinom(a;k1,k2, k_s) = \frac{a(a-1)\dots (a-k1-k2 - -k_s+1)}{k1! > k2! \dots k_s!} > > which is natural since it can be used to generalize Newton' s binomial > theorem tNewton' s multinomial theorem". But I cannot find any refverence > for it! Any ideas , references? > > > second: > > which syntax should be used: > --- multinomial(a,k1,k2,.....,k_s) > or > multinomial(a,[k1,k2,...,k_s]) > or > other? > > Kjetil > > > > >> >> >> >> On 04.05.2012 00:45, Kjetil brinchmann Halvorsen wrote: >>> >>> sympy does not seem to have a multinomial() function, in style of >>> binomial(), giving binomial coefs, only multinomial() >>> shoud give multinomial coefficients. We should have! Should/can I try >>> to write such a function, it should be in file >>> factorials.py, where binomial() resides. >>> >>> żAny thoughts? >>> >>> Kjetil >>> >>> >>> -- >>> "If you want a picture of the future - imagine a boot stamping on the >>> human face - forever." >>> >>> George Orwell (1984) >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "sympy" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/sympy?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/sympy?hl=en. >> > > > > -- > "If you want a picture of the future - imagine a boot stamping on the human > face - forever." > > George Orwell (1984) > > > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
