summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.1/Chapter5_Example1.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.1/Chapter5_Example1.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.1/Chapter5_Example1.sce')
-rwxr-xr-x2741/CH5/EX5.1/Chapter5_Example1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2741/CH5/EX5.1/Chapter5_Example1.sce b/2741/CH5/EX5.1/Chapter5_Example1.sce
new file mode 100755
index 000000000..8c8808f45
--- /dev/null
+++ b/2741/CH5/EX5.1/Chapter5_Example1.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//Input data
+v=480;//The velocity of a lead bullet in m/s
+Sp=0.03;//Specific heat of lead cal/g-K
+
+//Calculations
+m=10;//Let us assume the mass of bullet in gms
+V=v*100;//The velocity of the bullet in cm/s
+W=(1/2)*m*(V^2);//The work done in ergs
+J=4.2*10^7;//The mechanical equivalent of heat in ergs/calorie
+H=W/J;//The amount of heat produced in cals
+H1=H/2;//Half of the heat energy is used to raise the temperature of the bullet in cals
+t=H1/(m*Sp);//The rise in the temperature in degree centigrade
+
+//Output
+printf('The rise in the temperature is t = %3.2f degree centigrade ',t)