summaryrefslogtreecommitdiff
path: root/2168/CH5/EX5.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2168/CH5/EX5.3
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 '2168/CH5/EX5.3')
-rwxr-xr-x2168/CH5/EX5.3/Chapter5_example3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2168/CH5/EX5.3/Chapter5_example3.sce b/2168/CH5/EX5.3/Chapter5_example3.sce
new file mode 100755
index 000000000..8275fb25c
--- /dev/null
+++ b/2168/CH5/EX5.3/Chapter5_example3.sce
@@ -0,0 +1,15 @@
+
+clc
+clear
+//Input data
+//Cv=0.125+0.000005T where Cv is Specific heat at constant volume and T is the temperature in K
+R=28.9//Characteristic gas constant in mkg/kg/degree C
+T=[100+273,50+273]//Temperature in K
+J=427//Mechanical equivalent of heat in kg.m/kcal
+
+//Calculations
+function y=f(x),y=0.125+(0.00005*x),endfunction
+I=J*intg(303,373,f)
+
+//Output
+printf('The work done is %i m.kg/kg of gas',I)