MULTINOMIAL

Multinomial coefficients.

Al momento, stai seguendo questo contributo

MULTINOMIAL(N, K1, K2, ..., Km) where N and Ki are numeric arrays of non-negative integers satisfying N = K1 + K2 + ... + Km, returns the multinomial coefficient N!/( K1!* K2! ... *Km!).

MULTINOMIAL(N, [K1 K2 ... Km]) when Ki's are all scalar, returns the same as MULTINOMIAL(N, K1, K2, ..., Km).

Non-integer input arguments are pre-rounded by FLOOR function.

EXAMPLES:
multinomial(8, 2, 6) returns 28
binomial(8, 2) returns 28

multinomial(8, 2, 3, 3) returns 560
multinomial(8, [2, 3, 3]) returns 560

multinomial([8 10], 2, [6 8]) returns [28 45]

Cita come

Mukhtar Ullah (2026). MULTINOMIAL (https://it.mathworks.com/matlabcentral/fileexchange/6156-multinomial), MATLAB Central File Exchange. Recuperato .

Riconoscimenti

Ispirato: Multinomial Expansion

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0

a minor improvement: replace round with floor