summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.3/Chapter5_Example3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH5/EX5.3/Chapter5_Example3.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 '2741/CH5/EX5.3/Chapter5_Example3.sce')
-rwxr-xr-x2741/CH5/EX5.3/Chapter5_Example3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2741/CH5/EX5.3/Chapter5_Example3.sce b/2741/CH5/EX5.3/Chapter5_Example3.sce
new file mode 100755
index 000000000..9d0e442bb
--- /dev/null
+++ b/2741/CH5/EX5.3/Chapter5_Example3.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Input data
+h=50;//The height from which water falls in metres
+m=100;//Let us assume the mass of the water in gms
+g=980;//Gravitational constant in gms/s^2
+J=4.2*10^7;//The mechanical equivalent of heat in ergs/calorie
+
+//Calculations
+h1=h*100;//The height from which water falls in cm
+W=m*g*h1;//The work done in ergs
+t=W/(J*m);//The rise in temperature of water in degree centigrade
+
+//Output
+printf('The rise in temperature of water is t = %3.3f degree centigrade ',t)