Find the laplace transform of the piece wise function
9 views (last 30 days)
Show older comments
This isn't necessarily a matlab question but, I have to find the laplace transform of
f(t) { 0 when t <pi
t-pi when pi<=t<2pi
0 when t >= 2pi
0 Comments
Answers (2)
Walter Roberson
on 5 Aug 2015
2 Comments
Walter Roberson
on 5 Aug 2015
evalin(symengine, 'laplace(piecewise([t < Pi, 0], [Pi <= t, t-Pi], [t < 2*Pi, 0]),t,s)')
Torsten
on 5 Aug 2015
L(s)=int_{t=pi}^{t=2*pi}(t-pi)*exp(-s*t) dt
For comparison:
You should be able to evaluate this integral.
Best wishes
Torsten.
2 Comments
Walter Roberson
on 5 Aug 2015
This does not appear to have taken into account the piecewise nature of the function ? The result I find using a different package is exp(-Pi*s)/s^2
Torsten
on 5 Aug 2015
I get the same result when taking the Laplace transform directly:
Best wishes
Torsten.
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!