From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 215/CH15/EX15.1/ex15_1.sce | 20 ++++++++++++++++++++ 215/CH15/EX15.10/ex15_10.sce | 17 +++++++++++++++++ 215/CH15/EX15.2/ex15_2.sce | 15 +++++++++++++++ 215/CH15/EX15.4/ex15_4.sce | 14 ++++++++++++++ 215/CH15/EX15.6/ex15_6.sce | 15 +++++++++++++++ 215/CH15/EX15.9/ex15_9.sce | 14 ++++++++++++++ 6 files changed, 95 insertions(+) create mode 100755 215/CH15/EX15.1/ex15_1.sce create mode 100755 215/CH15/EX15.10/ex15_10.sce create mode 100755 215/CH15/EX15.2/ex15_2.sce create mode 100755 215/CH15/EX15.4/ex15_4.sce create mode 100755 215/CH15/EX15.6/ex15_6.sce create mode 100755 215/CH15/EX15.9/ex15_9.sce (limited to '215/CH15') diff --git a/215/CH15/EX15.1/ex15_1.sce b/215/CH15/EX15.1/ex15_1.sce new file mode 100755 index 000000000..c500be9d6 --- /dev/null +++ b/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/215/CH15/EX15.10/ex15_10.sce b/215/CH15/EX15.10/ex15_10.sce new file mode 100755 index 000000000..c507fa0d4 --- /dev/null +++ b/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/215/CH15/EX15.2/ex15_2.sce b/215/CH15/EX15.2/ex15_2.sce new file mode 100755 index 000000000..ff6b08cf6 --- /dev/null +++ b/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/215/CH15/EX15.4/ex15_4.sce b/215/CH15/EX15.4/ex15_4.sce new file mode 100755 index 000000000..fe351bfae --- /dev/null +++ b/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/215/CH15/EX15.6/ex15_6.sce b/215/CH15/EX15.6/ex15_6.sce new file mode 100755 index 000000000..039494c52 --- /dev/null +++ b/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/215/CH15/EX15.9/ex15_9.sce b/215/CH15/EX15.9/ex15_9.sce new file mode 100755 index 000000000..a3e04d87b --- /dev/null +++ b/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 -- cgit