summaryrefslogtreecommitdiff
path: root/1457/CH9/EX9.1/9_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1457/CH9/EX9.1/9_1.sce')
-rwxr-xr-x1457/CH9/EX9.1/9_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1457/CH9/EX9.1/9_1.sce b/1457/CH9/EX9.1/9_1.sce
new file mode 100755
index 000000000..94a82213c
--- /dev/null
+++ b/1457/CH9/EX9.1/9_1.sce
@@ -0,0 +1,15 @@
+clc
+//Initialization of variables
+T2=30 //C
+T1=20 //C
+cv=716
+m=15 //kg
+cp=1003
+//calculations
+di=cv*(T2-T1)
+dU=di*m
+dh=cp*(T2-T1)
+dH=dh*m
+//results
+printf("Change in Internal energy = %d N m",dU)
+printf("\n Change in Enthalpy = %d Nm",dH)