maxima bug error "multinomial(...)"
wxMaxima version: 13.4.0
Maxima version: 5.31.1
Maxima build date: 2013-09-24 09:49:12
Host type: i686-pc-mingw32
Lisp implementation type: GNU Common Lisp (GCL)
Lisp implementation version: GCL 2.6.8
[multinomial(3,[1,1,1,0]),multinomial(3,[1,1,0]),multinomial(3,[0,1,1]),multinomial(3,[1,0,1])/*error*/,multinomial(3,[1,0,1,1])/*error*/]; (%o175) [6,6,6,3,3]
the last 2 are obviously incorrect - seems to happen whenever have a 0 as the 2nd argument atleast in these examples.
Also the help file states it puts it in as eg multinomial(n,[n1,n2,...,nm]) as n!/(n1! n2!...nm!) regardless of the requirement in multinomial that the sum of the bottom lines
or here n1+n2+...+nm equal the numerator n or not. But it seems otherwise as if maxima assumes another entry which is to make up the difference so that
if n#n1+n2+...+nm then it puts in another single entry equal to n-n1-n2-...-nm . So which is correct ? What is one to expect ?
Of course regardless of this the above is truly an error regardless !