       Integrate bugs

• To: mathgroup at smc.vnet.net
• Subject: [mg76688] Integrate bugs
• From: dimitris <dimmechan at yahoo.com>
• Date: Sat, 26 May 2007 04:19:56 -0400 (EDT)

```\$VersionNumber
5.2

In:=
int1 = (1/(2*Pi*I))*Integrate[1/o, {o, 1, I, -1, -I, 1}]
Out=
1

In:=
int2 = (1/(2*Pi*I))*Integrate[1/o, {o, r, r*I, -r, (-r)*I, r},
Assumptions -> r > 0]
Out=
1

In:=
int3 = (1/(2*Pi*I))*Integrate[Exp[2/o], {o, 1, I, -1, -I, 1}]
Out=
2

In:=
int4 = (1/(2*Pi*I))*Integrate[Exp[2/o], {o, r, r*I, -r, (-r)*I, r},
Assumptions -> r > 0]
Simplify[int4]

Out=
-((I*((-E^(-2/r))*r - E^(2/r)*r + (E^(-2/r) - I*E^((2*I)/r))*r +
(I*E^((2*I)/r) + E^(2/r))*r))/(2*Pi))
Out=
0

inti (i=1,2,3) are correct (residue theorem)
int4 is incorrect (it should be 2; residue theorem)

1)Any ideas for workarounds in version 5.2?
2)What does version 6 do?

Thanks
Dimitris

```

• Prev by Date: Integrate bug
• Next by Date: Re: How to subtract two sets of data for a ListPlot
• Previous by thread: Re: Integrate bug
• Next by thread: Re: Integrate bugs