diff options
Diffstat (limited to 'Working_Examples/215/CH15')
-rwxr-xr-x | Working_Examples/215/CH15/EX15.1/ex15_1.sce | 20 | ||||
-rwxr-xr-x | Working_Examples/215/CH15/EX15.10/ex15_10.sce | 17 | ||||
-rwxr-xr-x | Working_Examples/215/CH15/EX15.2/ex15_2.sce | 15 | ||||
-rwxr-xr-x | Working_Examples/215/CH15/EX15.4/ex15_4.sce | 14 | ||||
-rwxr-xr-x | Working_Examples/215/CH15/EX15.6/ex15_6.sce | 15 | ||||
-rwxr-xr-x | Working_Examples/215/CH15/EX15.9/ex15_9.sce | 14 |
6 files changed, 95 insertions, 0 deletions
diff --git a/Working_Examples/215/CH15/EX15.1/ex15_1.sce b/Working_Examples/215/CH15/EX15.1/ex15_1.sce new file mode 100755 index 0000000..c500be9 --- /dev/null +++ b/Working_Examples/215/CH15/EX15.1/ex15_1.sce @@ -0,0 +1,20 @@ +clc
+//Example 15.1
+//Install Symbolic toolbox
+//Calculate the voltage
+//From figure 15.3
+//Writing the KVL equation for the voltage and taking the Laplace transform
+syms s
+s=%s
+disp('V=(2*s*(s+9.5)/((s+8)*(s+0.5)))-2')
+//On solving
+V=(2*s-8)/((s+8)*(s+0.5))
+Vp=pfss (V)
+Vp1=ilaplace(Vp(1))
+Vp2=ilaplace(Vp(2))
+v=Vp1+Vp2
+disp(v,'v(t)=')
+
+
+
+
diff --git a/Working_Examples/215/CH15/EX15.10/ex15_10.sce b/Working_Examples/215/CH15/EX15.10/ex15_10.sce new file mode 100755 index 0000000..c507fa0 --- /dev/null +++ b/Working_Examples/215/CH15/EX15.10/ex15_10.sce @@ -0,0 +1,17 @@ +clc
+//Example 15.10
+//Since the input function is given the Laplace transform is found
+syms s t
+s=%s
+vin=6*exp(-t)
+Vin=laplace(vin)
+//Connecting the impulse voltage pulse to the circuit and converting to s-domain
+//If vin=delta(t)..the impulse source
+V0=2/((2/s)+2)
+//As source voltage is 1V
+H=V0
+V=Vin*H
+Vp=pfss ((6*s)/(s+1)^2)
+Vp1=ilaplace(Vp(1))
+v0=Vp1
+disp(v0,'v0(t)=')
\ No newline at end of file diff --git a/Working_Examples/215/CH15/EX15.2/ex15_2.sce b/Working_Examples/215/CH15/EX15.2/ex15_2.sce new file mode 100755 index 0000000..ff6b08c --- /dev/null +++ b/Working_Examples/215/CH15/EX15.2/ex15_2.sce @@ -0,0 +1,15 @@ +clc
+//Example 15.2
+//Install Symbolic toolbox
+//Calculate the voltage
+//Selecting the current based model
+//From figure 15.6(b)
+//Writing the KCL equation for the voltage and taking the Laplace transform
+syms s
+s=%s
+Vc=-2*(s-3)/(s*(s+2/3))
+Vcp=pfss (Vc)
+Vcp1=ilaplace(Vcp(1))
+Vcp2=ilaplace(Vcp(2))
+vc=Vcp1+Vcp2
+disp(vc,'vc=')
\ No newline at end of file diff --git a/Working_Examples/215/CH15/EX15.4/ex15_4.sce b/Working_Examples/215/CH15/EX15.4/ex15_4.sce new file mode 100755 index 0000000..fe351bf --- /dev/null +++ b/Working_Examples/215/CH15/EX15.4/ex15_4.sce @@ -0,0 +1,14 @@ +clc
+//Example 15.4
+//Install Symbolic toolbox
+//Calculate the voltage
+//From figure 15.9
+//Applying nodal equation and solving for vx
+syms s
+s=%s
+Vx=(10*s^2+4)/(s*(2*s^2+4*s+1))
+Vxp=pfss (Vx)
+Vxp1= ilaplace (Vxp(1))
+Vxp2= ilaplace (Vxp(2))
+vx=Vxp1+Vxp2
+disp(vx,'vx=')
diff --git a/Working_Examples/215/CH15/EX15.6/ex15_6.sce b/Working_Examples/215/CH15/EX15.6/ex15_6.sce new file mode 100755 index 0000000..039494c --- /dev/null +++ b/Working_Examples/215/CH15/EX15.6/ex15_6.sce @@ -0,0 +1,15 @@ +clc
+//Example 15.6
+//Install Symbolic toolbox
+//Calculate the voltage
+//Performing source transformatiom on the s-domain circuit
+//Solving for V(s)
+syms s
+s=%s
+V=(180*s^4)/((s^2+9)*(90*s^3+18*s^2+40*s+4))
+Vp=pfss (V)
+Vp1=ilaplace(Vp(1))
+Vp2=ilaplace(Vp(2))
+Vp3=ilaplace(Vp(3))
+v=Vp1+Vp2+Vp3
+disp(v,'v(t)=')
diff --git a/Working_Examples/215/CH15/EX15.9/ex15_9.sce b/Working_Examples/215/CH15/EX15.9/ex15_9.sce new file mode 100755 index 0000000..a3e04d8 --- /dev/null +++ b/Working_Examples/215/CH15/EX15.9/ex15_9.sce @@ -0,0 +1,14 @@ +clc
+//Example 15.9
+//Install Symbolic toolbox
+//Find the inverse Laplace transform
+syms s
+s=%s
+//Let a=1 and b=3
+a=1;b=3;
+V=1/((s+a)*(s+b))
+Vp=pfss (V)
+Vp1=ilaplace(Vp(1))
+Vp2=ilaplace(Vp(2))
+v=Vp1+Vp2
+disp(v,'v(t)=')
\ No newline at end of file |