summaryrefslogtreecommitdiff
path: root/215/CH15/EX15.2
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.2
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.2')
-rwxr-xr-x215/CH15/EX15.2/ex15_2.sce15
1 files changed, 15 insertions, 0 deletions
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