Ask Your Question

Sage doesn't show limit of ratio of sums

asked 2014-11-02 16:23:58 -0500

nespinoza gravatar image

Hi everyone,

I'm new to Sage and I'm trying to obtain the following limit: $$\lim_{N\to \infty}\frac{\sum_{i=1}^{N} x_i^{5/2}}{\sum_{i=1}^N x_i^2}$$ with $x_i=(N-i)/(N-1)$. What I tried was:

i = var('i')
N = var('N')
x_i = (N-i)/(N-1)
numerator = sum(x_i^(5./2.),i,1,N)
denominator = sum(x_i^(2.),i,1,N)

However, this just gives me:

6*limit((N - 1)*sum(((N - i)/(N - 1))^2.5, i, 1, N)/(2*N^2 - N), N, +Infinity)

From what I can see, Sage has no problems with the denominator, the general formula of which was obtained easily. However, apparently it has problems obtaining the general formula for the numerator due to the fact that the exponent in the sum is not an integer. Is there a way to cope with this? How can I obtain the limit?

Thanks in advance for all the help!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-03 11:46:57 -0500

Sage uses Maxima for formal sums and so depends on that package. Maxima can compute

sage: sum(1/i^3,i,1,N)
gen_harmonic_number(3, N)

but unfortunately Sage cannot use this result symbolically. A ticket for this is waiting for review:

However, to compute your sum Maxima would need to know about generalized harmonic numbers with rational index. So this functionality must first be implemented in Maxima. Even then, this won't give you the limit which, I think, could be computable with some holonomic package. Something like this is missing in Sage, at the moment, as well.

Finally, I could well be wrong in the above, and there may be a special shortcut for implementation.

edit flag offensive delete link more


I see...well, I'll have to wait then. Simulations are good enough anyways to actually see the limiting value!

nespinoza gravatar imagenespinoza ( 2014-11-03 13:29:44 -0500 )edit

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


Asked: 2014-11-02 16:23:58 -0500

Seen: 86 times

Last updated: Nov 03 '14