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/CH2/EX2.21/Ex2_21.sce | |
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/CH2/EX2.21/Ex2_21.sce')
-rwxr-xr-x | 2345/CH2/EX2.21/Ex2_21.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2345/CH2/EX2.21/Ex2_21.sce b/2345/CH2/EX2.21/Ex2_21.sce new file mode 100755 index 000000000..9a6263ced --- /dev/null +++ b/2345/CH2/EX2.21/Ex2_21.sce @@ -0,0 +1,15 @@ +//Finding time
+//Example 2.21(pg. 58)
+clc
+clear
+m=3.6//mass in kg
+S=4200//specific heat of water
+T2=95,T1=15// temp in degree C
+H=m*S*(T2-T1)//heat utilised in J
+printf('Heat utilised is %7.2f Joules \n',H)
+e=0.84//efficiency of kettle
+Ei=H/e//Energy input in J
+printf('Energy input is %8.2f Joules \n',Ei)
+W=1000//rating of kettle in watts
+t=(Ei/W)/60//time taken in min
+printf('Thus time taken is %2.1f min \n',t)
|