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


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

Problem with complex integration in Mathematica 7.0.1

From Tom D <tomdickens@att.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Problem with complex integration in Mathematica 7.0.1
Date 2011-09-01 10:09 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j3nlkg$p4d$1@smc.vnet.net> (permalink)

Show all headers | View raw


In doing some research involving integration in the complex plane,
over vertical contours (inversion of Mellin transforms), I've noticed
an issue with Mathetica 7.0.1. I've done these same calculations in
v3.0 and don't see the same problem.

I can boil it down to an integration with a single Gamma function as
the integrand. Take f[s_] := Gamma[-s]; since Gamma has poles at
negative integers and 0, f[] will have poles at the positive integers.

The problem is that when I specify the infinite vertical contour using
just the endpoints, the value of the integral does not depend on the
real part of the contour ! However, it must, since the contour is
being moved past the poles oon the real axis. For example,

In[287]:= f[s_] := Gamma[-s]

In[288]:= NIntegrate[
 f[s], {s, 0.9 - I \[Infinity], 0.9 + I \[Infinity]}]

During evaluation of In[288]:= NIntegrate::slwcon: Numerical
integration converging too slowly; suspect one of the following:
singularity, value of the integration is 0, highly oscillatory
integrand, or WorkingPrecision too small. >>

During evaluation of In[288]:= NIntegrate::ncvb: NIntegrate failed to
converge to prescribed accuracy after 9 recursive bisections in s near
{s} =
{1.63072643374912722470619778528907451971744544067085196095506521276*10^-29
I}. NIntegrate obtained 5.04373+146.59 I and 25.32245011719028` for
the integral and error estimates. >>

Out[288]= 5.04373 + 146.59 I

In[289]:= NIntegrate[
 f[s], {s, 1.9 - I \[Infinity], 1.9 + I \[Infinity]}]

During evaluation of In[289]:= NIntegrate::slwcon: Numerical
integration converging too slowly; suspect one of the following:
singularity, value of the integration is 0, highly oscillatory
integrand, or WorkingPrecision too small. >>

During evaluation of In[289]:= NIntegrate::ncvb: NIntegrate failed to
converge to prescribed accuracy after 9 recursive bisections in s near
{s} =
{1.63072643374912722470619778528907451971744544067085196095506521276*10^-29
I}. NIntegrate obtained 5.04373+146.59 I and 25.32245011719028` for
the integral and error estimates. >>

Out[289]= 5.04373 + 146.59 I

(* no redo these these integrals adding an intermediate point to the
path, on the real axis *)

In[291]:= NIntegrate[
 f[s], {s, 0.9 - I \[Infinity], 0.9, 0.9 + I \[Infinity]}]

Out[291]= 0. - 3.97173 I

In[290]:= NIntegrate[
 f[s], {s, 1.9 - I \[Infinity], 1.9, 1.9 + I \[Infinity]}]

Out[290]= -2.28328*10^-12 + 2.31145 I

Note that when I put in the intermediate point on the real axis (0.9
or 1.9) I get results that change, as they should, when I move the
path past the pole at s=1, and I don't see the convergence warnings.
Is this a clue as to what is gong on?

So, does anyone understand why this is happening, or is it a true bug
that should be reported? It really had me confused for a while...

Thanks,
Tom

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Problem with complex integration in Mathematica 7.0.1 Tom D <tomdickens@att.net> - 2011-09-01 10:09 +0000

csiph-web