summaryrefslogtreecommitdiff
path: root/2024/CH5/EX5.7/5_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2024/CH5/EX5.7/5_7.sce')
-rwxr-xr-x2024/CH5/EX5.7/5_7.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/2024/CH5/EX5.7/5_7.sce b/2024/CH5/EX5.7/5_7.sce
new file mode 100755
index 000000000..f41584780
--- /dev/null
+++ b/2024/CH5/EX5.7/5_7.sce
@@ -0,0 +1,10 @@
+clc
+//Initialization of variables
+T1=60+460 //R
+T2=100+460 //R
+m=1 //lbm
+cp=1 //Btu/lbm F
+//calculations
+ds= m*cp*log(T2/T1)
+//results
+printf("Change in entropy = %.3f Btu/lbm R",ds)