summaryrefslogtreecommitdiff
path: root/1019/CH4/EX4.7/Example_4_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '1019/CH4/EX4.7/Example_4_7.sce')
-rw-r--r--1019/CH4/EX4.7/Example_4_7.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1019/CH4/EX4.7/Example_4_7.sce b/1019/CH4/EX4.7/Example_4_7.sce
new file mode 100644
index 000000000..28f422771
--- /dev/null
+++ b/1019/CH4/EX4.7/Example_4_7.sce
@@ -0,0 +1,15 @@
+//Example 4.7
+clear;
+clc;
+
+//Given
+R=8.314;// gas constant in J K^-1 mol^-1
+Cp=23.7; //specific heat capacity at constant pressure of the gas in J K^-1 mol^-1
+n=3;//moles of gas
+T1=300; //initial temperature in K
+T2=1000;//final temperature in K
+
+//to calculate the entropy
+delS=n*Cp*log(T2/T1);//entropy in J K^-1
+mprintf('Change in Entropy of the system = %f J K^-1',delS);
+//end \ No newline at end of file