summaryrefslogtreecommitdiff
path: root/2213/CH10/EX10.3/ex_10_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2213/CH10/EX10.3/ex_10_3.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 '2213/CH10/EX10.3/ex_10_3.sce')
-rwxr-xr-x2213/CH10/EX10.3/ex_10_3.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2213/CH10/EX10.3/ex_10_3.sce b/2213/CH10/EX10.3/ex_10_3.sce
new file mode 100755
index 000000000..4cbad7815
--- /dev/null
+++ b/2213/CH10/EX10.3/ex_10_3.sce
@@ -0,0 +1,25 @@
+//Example 10.3: Electrical energy and average power
+clc;
+clear;
+close;
+//given data :
+format('v',6)
+W=400;//in tonne
+We=1.1*W;// in tonne
+S=2;// distance in km
+G=2;// gradient in %
+eta=75/100;// efficiency
+D=2;// distance in km
+V1=40;// in km
+V2=20;// in km
+r=40;//N/tonne
+Ea=(0.01072*We*(V1^2-V2^2))*10^-3;// in kWh
+Ft=(W*r)-(98.1*W*G);
+M=(-Ft*S*1000)/(1000*3600);
+Et=Ea+M;// total energy available
+Ee=eta*Et;
+disp(Ee,"Electrical energy,Ee(kWh) = ")
+As=(V1+V2)/2;// average speed
+At=D/As;// Average time taken
+P=round(Ee/At);
+disp(P,"Average power,P(kW) = ")