diff options
author | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
---|---|---|
committer | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
commit | 8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch) | |
tree | e1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Working_Examples/215/CH14 | |
parent | 52a477ec613900885e29c4a0b02806a415b4f83a (diff) | |
download | Xcos_block_examples-master.tar.gz Xcos_block_examples-master.tar.bz2 Xcos_block_examples-master.zip |
Diffstat (limited to 'Working_Examples/215/CH14')
-rwxr-xr-x | Working_Examples/215/CH14/EX14.10/ex14_10.sce | 7 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.11/ex14_11.sce | 14 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.2/ex14_2.sce | 8 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.3/ex14_3.sce | 11 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.4/ex14_4.sce | 12 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.5/ex14_5.sce | 12 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.6/ex14_6.sce | 12 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.7/ex14_7.sce | 16 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.8/ex14_8.sce | 11 | ||||
-rwxr-xr-x | Working_Examples/215/CH14/EX14.9/ex14_9.sce | 16 |
10 files changed, 119 insertions, 0 deletions
diff --git a/Working_Examples/215/CH14/EX14.10/ex14_10.sce b/Working_Examples/215/CH14/EX14.10/ex14_10.sce new file mode 100755 index 0000000..e3d28c7 --- /dev/null +++ b/Working_Examples/215/CH14/EX14.10/ex14_10.sce @@ -0,0 +1,7 @@ +clc
+//Example 14.10
+//Install Symbolic toolbox
+//Determine the transform of rectangular pulse
+syms t s
+v=integ(exp(-s*t),t,2,%inf)-integ(exp(-s*t),t,5,%inf)
+disp(v,'V(s)=')
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.11/ex14_11.sce b/Working_Examples/215/CH14/EX14.11/ex14_11.sce new file mode 100755 index 0000000..566e19f --- /dev/null +++ b/Working_Examples/215/CH14/EX14.11/ex14_11.sce @@ -0,0 +1,14 @@ +clc
+//Example 14.11
+//Install Symbolic toolbox
+//Calculate f(inf)
+syms s t ;
+disp('Given function is f(t)=1-exp(-a*t)')
+u=laplace(1)
+v=laplace(exp(-2*t))
+F=u-v
+x=s*F
+//From final value theorem
+y=limit(x,s,0)
+disp(y,'f(inf)=')
+
diff --git a/Working_Examples/215/CH14/EX14.2/ex14_2.sce b/Working_Examples/215/CH14/EX14.2/ex14_2.sce new file mode 100755 index 0000000..9ea9a08 --- /dev/null +++ b/Working_Examples/215/CH14/EX14.2/ex14_2.sce @@ -0,0 +1,8 @@ +//Example 14.2
+//Install Symbolic toolbox
+//Find the Laplace transform
+syms t s
+clc
+z=integ(2*exp(-s*t),t,3,%inf)
+//The second term will result in zero
+disp(z,'F(s)=')
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.3/ex14_3.sce b/Working_Examples/215/CH14/EX14.3/ex14_3.sce new file mode 100755 index 0000000..d5e6adb --- /dev/null +++ b/Working_Examples/215/CH14/EX14.3/ex14_3.sce @@ -0,0 +1,11 @@ +clc
+//Example 14.3
+//Install Symbolic toolbox
+//Find the Inverse Laplace transform
+syms s
+a=7/s
+b=31/(s+17)
+x=ilaplace(a)
+y=ilaplace(b)
+g=x-y
+disp(g,'g(t)=')
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.4/ex14_4.sce b/Working_Examples/215/CH14/EX14.4/ex14_4.sce new file mode 100755 index 0000000..40aa3c0 --- /dev/null +++ b/Working_Examples/215/CH14/EX14.4/ex14_4.sce @@ -0,0 +1,12 @@ +clc
+//Example 14.4
+//Install Symbolic toolbox
+//Find the Inverse Laplace transform
+syms s t
+a=2
+b=4/s
+x=ilaplace(b)
+//Inverse laplace transform of a constant is
+disp('inverse laplace(2)=2*delta(t)')
+disp('Answer is')
+disp(x+'2*delta(t)')
diff --git a/Working_Examples/215/CH14/EX14.5/ex14_5.sce b/Working_Examples/215/CH14/EX14.5/ex14_5.sce new file mode 100755 index 0000000..7caf6fe --- /dev/null +++ b/Working_Examples/215/CH14/EX14.5/ex14_5.sce @@ -0,0 +1,12 @@ +clc
+//Example 14.5
+//Install Symbolic toolbox
+//Find the Inverse Laplace transform
+syms s
+s=%s;
+P =(7*s+5)/(s^2+s);
+Pp=pfss (P)
+p1=ilaplace (Pp(1))
+p2=ilaplace (Pp(2))
+p=p1+p2
+disp(p,'p(t)=');
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.6/ex14_6.sce b/Working_Examples/215/CH14/EX14.6/ex14_6.sce new file mode 100755 index 0000000..9155f12 --- /dev/null +++ b/Working_Examples/215/CH14/EX14.6/ex14_6.sce @@ -0,0 +1,12 @@ +clc
+//Example 14.6
+//Install Symbolic toolbox
+//Find the Inverse Laplace transform
+syms s
+s=%s;
+V =2/(s^3+12*s^2+36*s);
+Vp=pfss (V)
+v1=ilaplace (Vp(1))
+v2=ilaplace (Vp(2))
+v=v1+v2
+disp(v,'v(t)=');
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.7/ex14_7.sce b/Working_Examples/215/CH14/EX14.7/ex14_7.sce new file mode 100755 index 0000000..1d50710 --- /dev/null +++ b/Working_Examples/215/CH14/EX14.7/ex14_7.sce @@ -0,0 +1,16 @@ +clc
+//Example 14.7
+//Install Symbolic toolbox
+//Find the current through 5 ohm resistor
+syms s
+s=%s
+//From figure 14.3
+//Writing the KVL equation and taking the Laplace transform
+I=1.5/(s*(s+2))+5/(s+2)
+I1=1.5/(s*(s+2))
+I2=5/(s+2)
+I1p=pfss(I1)
+i1=ilaplace(I1p(1))
+i2=ilaplace(I1p(2)+I2)
+i=i1+i2
+disp(i,'i(t)=')
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.8/ex14_8.sce b/Working_Examples/215/CH14/EX14.8/ex14_8.sce new file mode 100755 index 0000000..d163f8c --- /dev/null +++ b/Working_Examples/215/CH14/EX14.8/ex14_8.sce @@ -0,0 +1,11 @@ +clc
+//Example 14.8
+//Install Symbolic toolbox
+//Find the current for t>0
+syms s
+s=%s
+//From figure 14.5
+//Writing the KVL equation and taking the Laplace transform
+I=-2/(s+4)
+i=ilaplace(I)
+disp(i,'i(t)=')
\ No newline at end of file diff --git a/Working_Examples/215/CH14/EX14.9/ex14_9.sce b/Working_Examples/215/CH14/EX14.9/ex14_9.sce new file mode 100755 index 0000000..0c6166c --- /dev/null +++ b/Working_Examples/215/CH14/EX14.9/ex14_9.sce @@ -0,0 +1,16 @@ +clc
+//Example 14.9
+//Install Symbolic toolbox
+//Find the voltage v(t)
+syms s
+s=%s
+//From figure 14.6
+//Writing the KCL equation and taking the Laplace transform
+V=4/(s*(s+4))+9/(s+4)
+V1=4/(s*(s+4))
+V2=9/(s+4)
+V1p=pfss(V1)
+v1=ilaplace(V1p(1))
+v2=ilaplace(V1p(2)+V2)
+v=v1+v2
+disp(v,'v(t)=')
\ No newline at end of file |