Bell Polynomials

14 views
Skip to first unread message

bsdz

unread,
Jan 26, 2009, 6:36:31 PM1/26/09
to sage-devel
Hi

I have written a simple function that generates Bell Polynomials.

It is documented and published at http://sagenb.org:8000/home/pub/182/

Is there any where this could be added to the main distribution?

Cheers

--
Blair

Mike Hansen

unread,
Jan 26, 2009, 7:14:31 PM1/26/09
to sage-...@googlegroups.com
Hi Blair,

On Mon, Jan 26, 2009 at 3:36 PM, bsdz <bla...@googlemail.com> wrote:
> Is there any where this could be added to the main distribution?

I made a few modifications to your routine to match some of the style
conventions used in Sage. Also, instead of passing in the variables,
I'm creating a polynomial ring and returning a polynomial. If one
wants to use different variables, then they can evaluate the
polynomial at those variables.

I put a patch up at http://trac.sagemath.org/sage_trac/ticket/5109 .
Let me know if these changes are okay with you.

--Mike

bsdz

unread,
Jan 26, 2009, 8:11:06 PM1/26/09
to sage-devel
Looks good to me except the note needs to be removed.

Also would it be possible to update the formula to

$B_{n,k}(x_1, x_2, \ldots, x_{n-k+1}) = \sum_{\sum{j_i}=k, \sum{i j_i}
=n} \frac{n!}{j_1!j_2!\ldots} \frac{x_1}{1!}^j_1 \frac{x_2}{2!}^j_2
\ldots$

Thanks

On Jan 27, 12:14 am, Mike Hansen <mhan...@gmail.com> wrote:
> Hi Blair,
>

Mike Hansen

unread,
Jan 26, 2009, 8:14:27 PM1/26/09
to sage-...@googlegroups.com
On Mon, Jan 26, 2009 at 5:11 PM, bsdz <bla...@googlemail.com> wrote:
>
> Looks good to me except the note needs to be removed.
>
> Also would it be possible to update the formula to
>
> $B_{n,k}(x_1, x_2, \ldots, x_{n-k+1}) = \sum_{\sum{j_i}=k, \sum{i j_i}
> =n} \frac{n!}{j_1!j_2!\ldots} \frac{x_1}{1!}^j_1 \frac{x_2}{2!}^j_2
> \ldots$

I've posted an updated patch.

--Mike

Reply all
Reply to author
Forward
0 new messages