MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integrate vs Nintegrate for impulsive functions


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.


  • Prev by Date: Re: Slow simplify[], integrate[] in 5.2 for Mac
  • Next by Date: Re: Zero argument functions
  • Previous by thread: Re: Re: Integrate vs Nintegrate for impulsive functions
  • Next by thread: Re: Integrate vs Nintegrate for impulsive functions