Programmable Multinomial Expansion

  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Expansion
Click For Summary

Discussion Overview

The discussion revolves around how to write a programmable multinomial expansion in Mathematica. Participants explore the interpretation of a specific formula related to multinomial expansions and seek clarification on its components, particularly regarding the summation indices and the delta function.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Homework-related

Main Points Raised

  • One participant asks for help in programming the multinomial expansion in Mathematica and seeks clarification on a formula from the Mathematica website.
  • Another participant explains that the notation n_1,n_2,\ldots,n_m=0 indicates starting the summation with all indices equal to zero.
  • A further explanation is provided that the delta function δ_{n;n_1+n_2+\cdots+n_m} equals 1 when the sum of the indices equals n and 0 otherwise.
  • One participant expresses confusion about programming the expansion and requests further elaboration on the upper limits of the summation indices.
  • A participant notes a lack of knowledge about Mathematica and points out that the original description does not specify the upper limits for the summation indices.
  • A link to an external resource on multinomial series is shared for additional reference.

Areas of Agreement / Disagreement

Participants generally agree on the interpretation of the notation regarding starting indices and the delta function, but there is uncertainty about the upper limits of the summation and how to implement the expansion in Mathematica. The discussion remains unresolved regarding the programming aspect.

Contextual Notes

Participants have not defined the upper limits for the summation indices, which may affect the implementation of the multinomial expansion in Mathematica. There are also unresolved questions about the clarity of the programming approach.

EngWiPy
Messages
1,361
Reaction score
61
Hello,

How can we write a programmable multinomial expansion? I mean the summation over all non-negative integer indices, is somewhat difficult to program in Mathematica, at least for me. Is there any suggestions, please?


I saw this formula at the Mathematica official website, but I didn't know how to interpret it:

[tex]\left(a_1+a_2+\cdots+a_m\right)^n=\sum_{n_1,n_2,\dots,n_m=0}\delta_{n;n_1+n_2+\cdots+n_m}\left(n;n_1,n_2,\ldots,n_m\right)\prod_{k=1}^ma_k^{n_k}[/tex]

what does it mean [tex]n_1,n_2,\ldots,n_m=0[/tex]? and what is the delta function [tex]\delta_{n;n_1+n_2+\cdots+n_m}\left(n;n_1,n_2,\ldots,n_m\right)[/tex]??

Thanks in advance
 
Last edited:
Physics news on Phys.org
[tex]n_1,n_2,\ldots,n_m=0[/tex] means start the sum with all ni=0.
[tex]\delta_{n;n_1+n_2+\cdots+n_m}\left(n;n_1,n_2,\ldots,n_m\right)[/tex] =1 when the sum of the ni=n and =0 otherwise.

Note: For some reason I get an s where there should be ... In the checking before I submit it is correct?
 
Last edited:
mathman said:
[tex]n_1,n_2,\ldots,n_m=0[/tex] means start the sum with all ni=0.
[tex]\delta_{n;n_1+n_2+\cdots+n_m}\left(n;n_1,n_2,\ldots,n_m\right)[/tex] =1 when the sum of the ni=n and =0 otherwise.

well, after we start all the indices from 0? Can you elaborate more, because I have no clear idea how to program this expansion in Mathematica.

Thanks in advance
 
I don't know anything about mathematica. Also (more important) the description you gave does not indicate what the upper limits of the summations for the m indices. In any case each ni goes from 0 to its upper limit.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
838
  • · Replies 3 ·
Replies
3
Views
1K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K