summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.39/18_39.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH18/EX18.39/18_39.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1427/CH18/EX18.39/18_39.sce')
-rw-r--r--1427/CH18/EX18.39/18_39.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1427/CH18/EX18.39/18_39.sce b/1427/CH18/EX18.39/18_39.sce
new file mode 100644
index 000000000..963c1976d
--- /dev/null
+++ b/1427/CH18/EX18.39/18_39.sce
@@ -0,0 +1,14 @@
+//ques-18.39
+//Calculating values of q and w and U for conversion of water to steam
+clc
+n=1;//moles of water
+P=1;//pressure (in atm)
+L=540;//latent heat of steam (in cal/g)
+T1=273; T2=373;//temperature (in K)
+V1=22.4;//volume (in L)
+q=n*18*L;
+V2=(V1*T2)/T1;
+w=-P*V2;//neglecting V1 (in L atm)
+w=w*24.2;//(in cal)
+U=q+w;
+printf("q=%.2f kcal, w=%.1f cal and change in internal energy is %.4f kcal.",q/1000,w,U/1000);0