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


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

Re: convolution involving UnitStep

From John Davis <texasautiger@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: convolution involving UnitStep
Date 2012-04-20 11:53 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jmrio4$lhd$1@smc.vnet.net> (permalink)
References <201204190754.DAA04280@smc.vnet.net>

Show all headers | View raw


I agree this works, but am perplexed as to why my straightforward
computation (unexpectedly) gives Mathematica trouble.

Thanks for your help,
John


On Thu, Apr 19, 2012 at 8:15 AM, Bob Hanlon <hanlonr357@gmail.com> wrote:

> h[t_] = Sin[t];
>
> g[t_] = Piecewise[{{0, t < 0}, {2, 0 <= t < 1}}, 1];
>
> y[t_] = Assuming[{Element[{s, t}, Reals]},
>  Integrate[h[t - s] g[s], {s, 0, t}] // Simplify]
>
> Piecewise[{{1 + Cos[1 - t] - 2*Cos[t], t > 1},
>     {2 - 2*Cos[t], Inequality[0, Less, t, LessEqual,
>         1]}}, 0]
>
>
> Bob Hanlon
>
>
> On Thu, Apr 19, 2012 at 3:54 AM, J Davis <texasautiger@gmail.com> wrote:
> > h[t_] = Sin[t];
> > g[t_] = 2 UnitStep[t] - UnitStep[t - 1];
> > y[t_] = Integrate[h[t-s]g[s],{s,0,t}]
> >
> > results in a conditional expression requiring t>1, but I want to
> > evaluate and plot t values from [0,1] as well as t>1.
> >
> > I tried HeavisideTheta as well as := in the definition of y to no
> > avail. Thanks for any help...
> >
>

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


Thread

Re: convolution involving UnitStep John Davis <texasautiger@gmail.com> - 2012-04-20 11:53 +0000

csiph-web