Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8141
| From | Devendra Kapadia <dkapadia@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Infinite Series Error - Bug? |
| Date | 2012-01-25 12:04 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jfor4r$5re$1@smc.vnet.net> (permalink) |
Hello Jimmy,
Thank you for reporting the error with the infinite
sum considered by you.
The unexpected Power::infy messages are given due to a problem
with the singularity test for this class of infinite sums.
A possible workaround for the issue is to compute the
corresponding finite sum and then use Limit to obtain
the required value for the infinite sum, as shown below.
======================
In[2]:= Sum[q^(-6 + 4*n)/(1 - q^(-5 + 4*n)), {n, 0, m}] /. {q -> 0.1}
Out[2]= -21.1013 + 1.08574 QPolyGamma[0, -0.25 + m, 0.0001]
In[3]:= Limit[%, m -> Infinity]
Out[3]= -21.1012
In[4]:= Block[{q = 0.1},
NSum[q^(-6 + 4*n)/(1 - q^(-5 + 4*n)), {n, 0, Infinity}]]
Out[4]= -21.1012
======================
I apologize for the inconvenience caused by this problem.
Sincerely,
Devendra Kapadia,
Wolfram Research, Inc.
----- Original Message -----
From: "clashton" <clashton@gmail.com>
Sent: Tuesday, January 24, 2012 4:06:02 AM
Subject: Infinite Series Error - Bug?
Can anyone explain why evaluating the following expression gives an
error?
Sum[q^(-6 + 4*n)/(1 - q^(-5 + 4*n)), {n, 0, Infinity}] /. {q -> 0.1}
None of the denominators are 0 (would only happen if -5 + 4*n=0, which
is impossible for an integer n, yet I get an error message "Infinite
expression 1/0 encountered" (several times in fact).
Any help on a work around greatly appreciated.
(Please reply to my personal e-mail also).
Thanks,
Jimmy
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Infinite Series Error - Bug? Devendra Kapadia <dkapadia@wolfram.com> - 2012-01-25 12:04 +0000
csiph-web