diff options
Diffstat (limited to '944/CH3/EX3.2/example3_2_TACC.sce')
-rwxr-xr-x | 944/CH3/EX3.2/example3_2_TACC.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/944/CH3/EX3.2/example3_2_TACC.sce b/944/CH3/EX3.2/example3_2_TACC.sce new file mode 100755 index 000000000..d1293e8ea --- /dev/null +++ b/944/CH3/EX3.2/example3_2_TACC.sce @@ -0,0 +1,17 @@ +//example 3.2
+
+clear;
+clc;
+
+//given:
+R=8.314;//universal gas constant [J/K/mol]
+T=300;//temperture for the process [K]
+U=0;//change in internal energy [J]
+V1=2.28;//initial volume [m3]
+V2=4.56;//final volume[m3]
+
+
+//to find the heat lost or gained by the system:
+W=2.303*R*T*log10(V2/V1);//work done during the process[J]
+Q=W;//heat lost or gained by the system[J]
+printf("the heat gained by the system is %f J",Q);
\ No newline at end of file |