summaryrefslogtreecommitdiff
path: root/215/CH15/EX15.1/ex15_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /215/CH15/EX15.1/ex15_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '215/CH15/EX15.1/ex15_1.sce')
-rwxr-xr-x215/CH15/EX15.1/ex15_1.sce20
1 files changed, 20 insertions, 0 deletions
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)=')
+
+
+
+