Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8806 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-03-01 10:34 +0000 |
| Last post | 2012-03-02 12:50 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: nested sums Bob Hanlon <hanlonr357@gmail.com> - 2012-03-01 10:34 +0000
Re: nested sums Severin Pošta <severin@km1.fjfi.cvut.cz> - 2012-03-02 12:50 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-03-01 10:34 +0000 |
| Subject | Re: nested sums |
| Message-ID | <jinjbt$ctp$1@smc.vnet.net> |
Sum[x^a y^b z^c, {a, 0, Infinity}, {b, 0, a}, {c, 0, a - b}]
-(1/((-1 + x)*(-1 + x*y)*(-1 + x*z)))
Bob Hanlon
2012/2/29 Severin Po=C5=A1ta <severin@km1.fjfi.cvut.cz>:
> I have noticed that
>
> Sum[x^a y^b z^c, {a, 0, Infinity}, {b, 0, Infinity}, {c, 0, a - b}]
>
> produces "wrong" result
>
> (-y + z - y z + x y z)/((-1 + x) (-1 + y) (y - z) (-1 + x z))
>
> because a-b is not checked to be nonnegative in the nested sums. This is
> probably by design (?).
> I wonder if I can achieve such check to be perfomed.
>
> This does not work:
>
> Sum[x^a y^b z^c If[a - b >= 0, 1, 0], {a, 0, Infinity}, {b, 0,
> =C2 Infinity}, {c, 0, a - b}]
>
> This also does not work:
>
> Sum[x^a y^b z^c Piecewise[{{1, a - b >= 0}}], {a, 0, Infinity}, {b, 0,
> =C2 =C2 Infinity}, {c, 0, a - b}]
>
>
> It is also interesting that Sum[...,{},{}] is not equivalent to
> Sum[Sum[...,{}],{}]. The following produces correct result:
>
> s= Sum[x^a y^b z^c Piecewise[{{1, a - b >= 0}}], {c, 0, a - b}];
> s1=Sum[s, {b, 0, Infinity}];
> Sum[s1,{a, 0, Infinity}]
>
>
> -(1/((-1 + x) (-1 + x y) (-1 + x z)))
>
>
> Interesting.
>
> S.
>
[toc] | [next] | [standalone]
| From | Severin Pošta <severin@km1.fjfi.cvut.cz> |
|---|---|
| Date | 2012-03-02 12:50 +0000 |
| Message-ID | <jiqfnh$59$1@smc.vnet.net> |
| In reply to | #8806 |
Sure, but that's not what I am asking for, I wanted to ask if such check
can be somehow performed automatically?
Thanks, S.
On 3/1/2012 11:34 AM, Bob Hanlon wrote:
> Sum[x^a y^b z^c, {a, 0, Infinity}, {b, 0, a}, {c, 0, a - b}]
>
> -(1/((-1 + x)*(-1 + x*y)*(-1 + x*z)))
>
>
> Bob Hanlon
>
> 2012/2/29 Severin Po=C5=A1ta<severin@km1.fjfi.cvut.cz>:
>> I have noticed that
>>
>> Sum[x^a y^b z^c, {a, 0, Infinity}, {b, 0, Infinity}, {c, 0, a - b}]
>>
>> produces "wrong" result
>>
>> (-y + z - y z + x y z)/((-1 + x) (-1 + y) (y - z) (-1 + x z))
>>
>> because a-b is not checked to be nonnegative in the nested sums. This is
>> probably by design (?).
>> I wonder if I can achieve such check to be perfomed.
>>
>> This does not work:
>>
>> Sum[x^a y^b z^c If[a - b>= 0, 1, 0], {a, 0, Infinity}, {b, 0,
>> =C2 Infinity}, {c, 0, a - b}]
>>
>> This also does not work:
>>
>> Sum[x^a y^b z^c Piecewise[{{1, a - b>= 0}}], {a, 0, Infinity}, {b, 0,
>> =C2 =C2 Infinity}, {c, 0, a - b}]
>>
>>
>> It is also interesting that Sum[...,{},{}] is not equivalent to
>> Sum[Sum[...,{}],{}]. The following produces correct result:
>>
>> s= Sum[x^a y^b z^c Piecewise[{{1, a - b>= 0}}], {c, 0, a - b}];
>> s1=Sum[s, {b, 0, Infinity}];
>> Sum[s1,{a, 0, Infinity}]
>>
>>
>> -(1/((-1 + x) (-1 + x y) (-1 + x z)))
>>
>>
>> Interesting.
>>
>> S.
>>
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web