diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH15/EX15.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2345/CH15/EX15.2')
-rwxr-xr-x | 2345/CH15/EX15.2/Ex15_2.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2345/CH15/EX15.2/Ex15_2.sce b/2345/CH15/EX15.2/Ex15_2.sce new file mode 100755 index 000000000..03a645516 --- /dev/null +++ b/2345/CH15/EX15.2/Ex15_2.sce @@ -0,0 +1,17 @@ +//Resistance and BOT units
+//Example 15.2(pg 393)
+clc
+clear
+Vi=220//voltage in volts supplied by dynamo
+Vo=200//voltage in volts required for lighting
+I=40//current in Amperes
+Pi=Vi*I//power output of dynamo
+Po=Vo*I//power consumed for lighting
+L=Pi-Po//line losses
+R=L/(I^2)//resistance of lines since line losses=I^2*R
+t=10//time in hrs
+N=(Po*t)/1000//no of units of consumed in B.O.T units
+Nw=(L*t)/1000//No of units wasted in B.O.T units
+printf('(i)Resistance of lines is %3.1f Ohms \n',R)
+printf('(ii)No. of B.O.T units consumed in 10hrs is %3.2f B.O.T units\n',N)
+printf('(iii)No. of B.O.T units wasted in 10hrs is %3.2f B.O.T units\n',Nw)
|