summaryrefslogtreecommitdiff
path: root/2192/CH4/EX4.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2192/CH4/EX4.12
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 '2192/CH4/EX4.12')
-rwxr-xr-x2192/CH4/EX4.12/4_12.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2192/CH4/EX4.12/4_12.sce b/2192/CH4/EX4.12/4_12.sce
new file mode 100755
index 000000000..796c3e4a4
--- /dev/null
+++ b/2192/CH4/EX4.12/4_12.sce
@@ -0,0 +1,13 @@
+clc,clear
+printf('Example 4.12\n\n')
+
+V=250;R=190
+//part(i)
+R1=1/(R^-1+R^-1) //equivalent resistance in parallel
+P1=V^2/R1 //power drawn in parallel
+printf('(i)Power drawn in parallel = %.2f watts',P1)
+
+//part(ii)
+R2=R+R //equivalent resistance in series
+P2=V^2/R2 //power drawn in series
+printf('\n(ii)Power drawn in series= %.2f watts',P2)