MathGroup Archive 2000

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

Search the Archive

Integrating Unit Step Functions (Convolution)


In mathematica 3.1 the convolution of II[x], (the "Top Hat" function)
with itself gives
(the Triangle function):

In[]=Simplify[Integrate[ II[u] II[x-u],{u,-Infinity,Infinity}]=
Out[]=(-1 + x) UnitStep[-1 + x] - 2 x UnitStep[x] +  (1 + x) UnitStep[1
+ x]


whereas Mathematica 4.0 gives:

Out[]=
   1
If[- + x < 0, (-1 + x) UnitStep[-1 + x] -
   2

   2 x UnitStep[x] + (1 + x) UnitStep[1 + x],

                         1
  Integrate[(-UnitStep[-(-) + u] +
                         2

               1
      UnitStep[- + u])
               2

                 1                      1
    (-UnitStep[-(-) - u + x] + UnitStep[- - u + x])
                 2                      2

    , {u, -Infinity, Infinity}]]


Is there some bug in Mathematica 4.0 or perhaps there is some options I
should apply for this integral?
By hand, Mathematica 3.1 gives the correct result.

-Roger Jones



  • Prev by Date: contour plot
  • Next by Date: Q: Axes on top of graphics primitives?
  • Previous by thread: contour plot
  • Next by thread: Q: Axes on top of graphics primitives?