How to Define a Complete Bell Polynomial in Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter anthony2005
  • Start date Start date
  • Tags Tags
    Mathematica Variable
Click For Summary
SUMMARY

The discussion focuses on defining the complete Bell polynomial in Mathematica using the function BellY. The complete Bell polynomial is expressed as CBellY[n, {x1, ..., xn}] = ∑(k=1 to n) BellY[n, k, {x1, ..., xn-k+1}]. A specific implementation is provided: CBellY[n_, v_] := Sum[BellY[n, k, Take[v, n-k+1]], {k, 1, n}]. This implementation successfully computes the complete Bell polynomial for given inputs.

PREREQUISITES
  • Familiarity with Mathematica programming language
  • Understanding of Bell polynomials and their properties
  • Knowledge of summation notation and its application in programming
  • Experience with list manipulation functions in Mathematica
NEXT STEPS
  • Explore advanced features of Mathematica for symbolic computation
  • Learn about other polynomial types and their applications in combinatorics
  • Investigate the performance of BellY and CBellY with larger datasets
  • Study the mathematical theory behind Bell polynomials for deeper insights
USEFUL FOR

Mathematicians, computer scientists, and students interested in combinatorial mathematics and symbolic computation in Mathematica.

anthony2005
Messages
24
Reaction score
0
Hello,
how do you define a function or make a list with n elements, where n is any? More precisely there is a function in mathematica, BellY

BellY[n,k,\{x_{1},...x_{n-k+1}\}]

which gives the partial Bell polynomial. I would like to define in mathematica the complete Bell polynomial defined as

CBellY[n,\{x_{1},...x_{n}\}]=\sum_{k=1}^{n}BellY[n,k,\{x_{1},...x_{n-k+1}\}]

How can I do that?
Thank you.
 
Physics news on Phys.org
Temporarily I have Mathematica forget it knows BellY so you can see the details.

In[1]:= CBellY[n_,v_]:=Sum[BellY[n,k,Take[v,n-k+1]],{k,1,n}]

In[2]:= CBellY[3,{1,2,3}]

Out[2]= BellY[3,1,{1,2,3}]+BellY[3,2,{1,2}]+BellY[3,3,{1}]
 
Great, thank you very much!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K