blob: c18a9026b3190b58c0a15d60d6c37dc038c6fba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Caption:solution_of_differential_equation
// example 1.6.4
//page 10
//after taking laplace transform and applying given condition, we get :
//Y(s)=(6*s+6)/((s-1)*(s+2)*(s+3))
s=%s;
syms t
[A]=pfss((6*s+6)/((s-1)*(s+2)*(s+3)))
F1 = ilaplace(A(1),s,t)
F2 = ilaplace(A(2),s,t)
F3 = ilaplace(A(3),s,t)
F=F1+F2+F3;
disp (F,"f(t)=")//result
|