summaryrefslogtreecommitdiff
path: root/215/CH14/EX14.7/ex14_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /215/CH14/EX14.7/ex14_7.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/CH14/EX14.7/ex14_7.sce')
-rwxr-xr-x215/CH14/EX14.7/ex14_7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/215/CH14/EX14.7/ex14_7.sce b/215/CH14/EX14.7/ex14_7.sce
new file mode 100755
index 000000000..1d507103c
--- /dev/null
+++ b/215/CH14/EX14.7/ex14_7.sce
@@ -0,0 +1,16 @@
+clc
+//Example 14.7
+//Install Symbolic toolbox
+//Find the current through 5 ohm resistor
+syms s
+s=%s
+//From figure 14.3
+//Writing the KVL equation and taking the Laplace transform
+I=1.5/(s*(s+2))+5/(s+2)
+I1=1.5/(s*(s+2))
+I2=5/(s+2)
+I1p=pfss(I1)
+i1=ilaplace(I1p(1))
+i2=ilaplace(I1p(2)+I2)
+i=i1+i2
+disp(i,'i(t)=') \ No newline at end of file