Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8139

Re: Infinite Series Error - Bug?

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Infinite Series Error - Bug?
Date 2012-01-25 12:03 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jfor2t$5qh$1@smc.vnet.net> (permalink)
References <201201241006.FAA20247@smc.vnet.net>

Show all headers | View raw


term = q^(-6 + 4*n)/(1 - q^(-5 + 4*n));

expr = Assuming[{Abs[q] < 1}, Sum[term, {n, 0, Infinity}]]

(Log[1 - q^4] + QPolyGamma[0,
        -(Log[q^5]/Log[q^4]), q^4])/(q*Log[q^4])

expr /. q -> 0.1

-21.1012

Checking with a partial sum

expr == Total[Table[term, {n, 0, 10}]] /. q -> 0.1

True

The symbolic Sum also evaluates if the assumption is written as  -1 < q < 1

expr == Assuming[{-1 < q < 1}, Sum[term, {n, 0, Infinity}]]

True

However, the problem arises if the assumption is restricted to positives

Assuming[{0 < q < 1}, Sum[term, {n, 0, Infinity}]]

Power::infy: Infinite expression 1/0 encountered. >>

Sum[q^(-6 + 4*n)/(1 - q^(-5 + 4*n)),
   {n, 0, Infinity}]

Presumably the evaluation without an assumption goes down this path in some way.


Bob Hanlon


On Tue, Jan 24, 2012 at 5:06 AM, clashton <clashton@gmail.com> wrote:
> 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


Thread

Re: Infinite Series Error - Bug? Bob Hanlon <hanlonr357@gmail.com> - 2012-01-25 12:03 +0000

csiph-web