Re: Integrate vs Nintegrate for impulsive functions
- To: mathgroup at smc.vnet.net
- Subject: [mg61747] Re: Integrate vs Nintegrate for impulsive functions
- From: "antononcube" <antononcube at gmail.com>
- Date: Fri, 28 Oct 2005 03:25:25 -0400 (EDT)
- References: <djq672$jd9$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
I think NIntegrate results are correct. Although the integrand gives complex values the integration is over the real line. So we can plot the real and imaginary parts of the integrand with Plot[Re@h[x], {x, 0, 1}, PlotRange -> All] Plot[Im@h[x], {x, 0, 1}, PlotRange -> All] and look at Re @ h[x] // ComplexExpand Im @ h[x] // ComplexExpand The plots and the expansions show functions that are not problematic to integrate numerically (e.g. no singularities can be seen). Anton Antonov, Wolfram Research, Inc.