summaryrefslogtreecommitdiff
path: root/167/CH3/EX3.7/ex7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /167/CH3/EX3.7/ex7.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 '167/CH3/EX3.7/ex7.sce')
-rwxr-xr-x167/CH3/EX3.7/ex7.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/167/CH3/EX3.7/ex7.sce b/167/CH3/EX3.7/ex7.sce
new file mode 100755
index 000000000..452ea37b2
--- /dev/null
+++ b/167/CH3/EX3.7/ex7.sce
@@ -0,0 +1,11 @@
+//ex6
+//Internal Energy of Superheated Vapor using linear interpolation
+clc
+disp('h1=2855.8 @ T1=200 C and h2=2961.0 @ T2=250 C and h=2890 lies in between these two so using linear interpolation we can get Temperature ');
+h1=2855.8;//Enthalpy at T1 in kJ/Kg
+T1=200;//temp in C
+h2=2961.0;//Enthalpy at T2 in kJ/Kg
+T2=250;//Temp T2 in C
+h=2890;//Enthalpy in kJ/kg at which temp is to be determined
+T=(T2-T1)/(h2-h1)*(h-h1)+T1;//Temp for given value of enthalpy in C
+printf('Temperature = %.1f C',T);