summaryrefslogtreecommitdiff
path: root/Working_Examples/215/CH15/EX15.1/ex15_1.sce
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/215/CH15/EX15.1/ex15_1.sce')
-rwxr-xr-xWorking_Examples/215/CH15/EX15.1/ex15_1.sce20
1 files changed, 20 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)=')
+
+
+
+