summaryrefslogtreecommitdiff
path: root/2870/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH12/EX12.1/Ex12_1.sce')
-rwxr-xr-x2870/CH12/EX12.1/Ex12_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2870/CH12/EX12.1/Ex12_1.sce b/2870/CH12/EX12.1/Ex12_1.sce
new file mode 100755
index 000000000..3eca56b2b
--- /dev/null
+++ b/2870/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,13 @@
+clc;clear;
+//Example 12.1
+
+//given data
+h1=305.22;
+T1=305;
+h2=295.17;
+T2=295;
+
+//calculations
+//from the given equation we can calculate
+cp=(h1-h2)/(T1-T2);
+disp(cp,'the cp of air at 300 K in kJ/ kg - K')