Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9698 > unrolled thread
| Started by | J Davis <texasautiger@gmail.com> |
|---|---|
| First post | 2012-04-19 07:56 +0000 |
| Last post | 2012-04-20 11:48 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
convolution involving UnitStep J Davis <texasautiger@gmail.com> - 2012-04-19 07:56 +0000
Re: convolution involving UnitStep "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-04-20 11:42 +0000
Re: convolution involving UnitStep Ulf-Dietrich Braumann <braumann@uni-leipzig.de> - 2012-04-20 11:43 +0000
Re: convolution involving UnitStep danl@wolfram.com - 2012-04-20 11:48 +0000
| From | J Davis <texasautiger@gmail.com> |
|---|---|
| Date | 2012-04-19 07:56 +0000 |
| Subject | convolution involving UnitStep |
| Message-ID | <jmogf6$46k$1@smc.vnet.net> |
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...
[toc] | [next] | [standalone]
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Date | 2012-04-20 11:42 +0000 |
| Message-ID | <jmri32$l78$1@smc.vnet.net> |
| In reply to | #9698 |
On 19 Apr., 09:56, J Davis <texasauti...@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...
>
>
I can't confirm any trouble in 5.2:
In[1]:=
h[t_] = Sin[t];
g[t_] = 2*UnitStep[t] - UnitStep[t - 1];
y[t_] = Integrate[h[t - s]*g[s], {s, 0, t}]
Out[3]=
(-1 + Cos[1 - t])*UnitStep[-1 + t] - 2*(-1 + Cos[t])*UnitStep[t]
Best regards
Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Ulf-Dietrich Braumann <braumann@uni-leipzig.de> |
|---|---|
| Date | 2012-04-20 11:43 +0000 |
| Message-ID | <jmri4v$l8r$1@smc.vnet.net> |
| In reply to | #9698 |
Hi,
while I was also ending up with a ConditionalExpression for t>1, then I
tried to flip the functions under the integral due to assumend
commutativity, but still got the same ConditionalExpression. For both
cases, however, Mathematica 8 could plot in the interval t \[Element] [0,1]. Later
I launched Mathematica 6, below you find the results:
In[133]:= y[t_] := Integrate[h[t - s] g[s], {s, 0, t}];
y[t] // FullSimplify
Out[134]= (-1 + Cos[1 - t]) UnitStep[-1 + t] -
2 (-1 + Cos[t]) UnitStep[t]
In[135]:= y[t_] := Integrate[h[s] g[t - s], {s, 0, t}];
y[t] // FullSimplify
Out[136]= \[Piecewise] {
{1 + Cos[1 - t] - 2 Cos[t], t > 1},
{2 - 2 Cos[t], 0 < t <= 1}
}
No idea how to get Mathematica 8 to provide a piecewise functional solution for 0
< t <= 1 as well. Mathematica 7 btw. behaves also strange, even though the
output is not restricted to t>1, the plots seem to be wrong.
I also have tried to define g as g[t_]:= 2UnitBox[t-1/2]+UnitStep[t-1] but
then the output of Integrate no longer can be simplified and given as
\[Piecewise] defined function.
Greetings - Ulf-Dietrich
On Thu, 19 Apr 2012, J Davis 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...
>
>
[toc] | [prev] | [next] | [standalone]
| From | danl@wolfram.com |
|---|---|
| Date | 2012-04-20 11:48 +0000 |
| Message-ID | <jmridj$ldd$1@smc.vnet.net> |
| In reply to | #9698 |
On Thursday, April 19, 2012 2:56:22 AM UTC-5, J Davis 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...
A bit awkward, but could do:
y[t_] = Piecewise[{{Integrate[h[t - s] g[s], {s, 0, t},
Assumptions -> 0 < t < 1],
0 < t <= 1}, {Integrate[h[t - s] g[s], {s, 0, t},
Assumptions -> t > 1], t > 1}}]
Daniel Lichtblau
Wolfram Research
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web