All All S T
All All S T
All All S T
Contoh 1 :
clc
clear all
close all
%
syms s t
f1 = 10*t
f2 = 6*(t^2)
f3 = 6 * exp(-5*t)
f4 = 6 * exp(-5*t) * cos (4*t)
%
L1 = Laplace(f1)
L2 = Laplace(f2)
L3 = Laplace(f3)
L4 = Laplace(f4)
pretty(L4)
f1 =
10*t
f2 =
6*t^2
f3 =
6*exp(-5*t)
f4 =
6*exp(-5*t)*cos(4*t)
L1 =
10/s^2
L2 =
12/s^3
L3 =
6/(s+5)
L4 =
3/8*(s+5)/(1/16*(s+5)^2+1)
s+5
3/8 ----------------2
1/16 (s + 5) + 1
2. Contoh 2 :
clc
clear all
close all
%
syms t a x;
f = exp(-a*t)
y = laplace(f,x)
f=
exp(-a*t)
y=
1/(x+a)
3. Contoh 3 :
clc
clear all
close all
%
syms s
f1 = (2*s^2) + (21*s) + (6);
f2 = (s^3) + (8*s^2) + (12*s);
f = f1/f2
%
L = ilaplace(f)
f=
(2*s^2+21*s+6)/(s^3+8*s^2+12*s)
L=
7/2*exp(-2*t)+1/2-2*exp(-6*t)
4. Contoh 4 :
clc
clear all
close all
%
syms s
f1 = (s + 3);
f2 = (s^3) + (5*s^2) + (12*s) + 8;
f = f1/f2
%
L = ilaplace(f)
f=
(s+3)/(s^3+5*s^2+12*s+8)
L=
2/5*exp(-t)-2/5*exp(-2*t)*cos(2*t)+3/10*exp(-2*t)*sin(2*t)
5. Contoh 5 :
clc
clear all
close all
%
syms s
f1 = 10;
f2 = (s^4) + (5*s^3) + (9*s^2) + (7*s) + 2;
f = f1/f2
%
L = ilaplace(f1/f2)
f=
10/(s^4+5*s^3+9*s^2+7*s+2)
L=
-10*exp(-2*t)+5*(t^2-2*t+2)*exp(-t)
6. Contoh 6 :
clc
clear all
close all
%
a = [ 0 0 0 0 1];
b = [ 1 5 7 0 0];
[r,p,k] = residue(a,b)
r=
0.0510 - 0.0648i
0.0510 + 0.0648i
-0.1020
0.1429
p=
-2.5000 + 0.8660i
-2.5000 - 0.8660i
0
0
k=
[]
7. Contoh 7 :
% Invers transformasi Laplace
syms s
f = 1/(s^4 + 5*s^3 + 7*s^2)
pretty(ilaplace(f))
f=
1/(s^4+5*s^3+7*s^2)
1/2
11 1/2
5/49 exp(- 5/2 t) cos(1/2 3 t) + --- 3
147
+ 1/7 t - 5/49
8. Contoh 8 :
clc
clear all
close all
%
syms s
f = 1/((s^4)+ (5*s^3) + (7*s^2))
1/2
exp(- 5/2 t) sin(1/2 3
t)
y = ilaplace(f)
f=
1/(s^4+5*s^3+7*s^2)
y=
5/49*exp(-5/2*t)*cos(1/2*3^(1/2)*t)+11/147*3^(1/2)*exp(-5/2*t)*sin(1/2*3^(1/2)*t)-5/49+1/7*t
9. Contoh 9 :
clc
clear all
close all
%
syms s
f = (5*s^2+ 3*s + 6)/(s^4 + 3*s^3 + 7*s^2 + 9*s + 12)
y = ilaplace(f)
f=
(5*s^2+3*s+6)/(s^4+3*s^3+7*s^2+9*s+12)
y=
15/14*cos(3^(1/2)*t)+3/14*3^(1/2)*sin(3^(1/2)*t)-15/14*exp(-3/2*t)*cos(1/2*7^(1/2)*t)
+11/14*7^(1/2)*exp(-3/2*t)*sin(1/2*7^(1/2)*t)
10. Contoh 10 :
clc
clear all
close all
%
syms s
disp('Solusi a')
f1 = s/(s*((s + 2)*(s + 6)));
y1 = ilaplace(f1)
%
disp('Solusi b')
f2 = 1/((s^2)*(s + 5));
y2 = ilaplace(f2)
%
disp('Solusi c')
f3 = 3*s + 1;
f4 = s^2 + 2*s + 9;
f5 = f3/f4;
y3 = ilaplace(f5)
%
disp('Solusi d')
f5 = s - 25;
f6 = s*(s^2 + 3*s + 20);
f7 = f5/f6;
y4 = ilaplace(f7)
Solusi a
y1 =
1/2*exp(-4*t)*sinh(2*t)
Solusi b
y2 =
1/5*t-2/25*exp(-5/2*t)*sinh(5/2*t)
Solusi c
y3 =
3*exp(-t)*cos(2*2^(1/2)*t)-1/2*2^(1/2)*exp(-t)*sin(2*2^(1/2)*t)
Solusi d
y4 =
5/4*exp(-3/2*t)*cos(1/2*71^(1/2)*t)+23/284*71^(1/2)*exp(-3/2*t)*sin(1/2*71^(1/2)*t)-5/4
11. Contoh 11 :
clc
clear all
close all
%
syms s
G1 = (s^2 + 9*s + 7)*(s + 7);
G2 = (s + 2)*(s + 3)* (s^2 + 12*s + 150);
%
G = G1/G2;
%
y = ilaplace(G)
pretty(y)
y=
-7/26*exp(-2*t)+44/123*exp(-3*t)+2915/3198*exp(-6*t)*cos(114^(1/2)*t)
+889/20254*114^(1/2)*exp(-6*t)*sin(114^(1/2)*t)
44
2915
1/2
- 7/26 exp(-2 t) + --- exp(-3 t) + ---- exp(-6 t) cos(114
123
3198
889 1/2
1/2
+ ----- 114 exp(-6 t) sin(114
20254
t)
t)