Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

Working with formal power series

asked 11 years ago

This is a simplified version of my previous question.

1) Is it possible to define a formal power series in sage by giving an expression for the n-th coefficient, e.g. as the expression "n" defines the power series 0 + 1 x + 2 x^2 + 3 x^3 + ... n x^n + ... ?

2) Does sage know how to multiply such objects by convolving the terms? Can it anti-differentiate them symbolically?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

Luca gravatar image

Your example is an easy one for maxima:

sage: var('x,i')
(x, i)
sage: S = sum(i*x^i, i, 0, infinity)
sage: S
x/(x^2 - 2*x + 1)
sage: S.integral()
-1/(x - 1) + log(x - 1)
sage: (S^2).integral()
-1/3*(3*x^2 - 3*x + 1)/(x^3 - 3*x^2 + 3*x - 1)

But I don't think there is a way to ask for a closed form expression for the coefficients of S, or S^2. Even S.power_series() isn't very useful, as it refuses to work with anything else than polynomials.

If your expression is seriously more complicated than iixi, then I don't think Sage can give any useful answer.

Preview: (hide)
link

Comments

Thank you for the prompt response!

anilbv gravatar imageanilbv ( 11 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 11 years ago

Seen: 870 times

Last updated: Sep 20 '13