diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH7/EX7.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2837/CH7/EX7.1')
-rwxr-xr-x | 2837/CH7/EX7.1/Ex7_1.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2837/CH7/EX7.1/Ex7_1.sce b/2837/CH7/EX7.1/Ex7_1.sce new file mode 100755 index 000000000..208f9aa65 --- /dev/null +++ b/2837/CH7/EX7.1/Ex7_1.sce @@ -0,0 +1,18 @@ +clc
+clear
+//Initialization of variables
+T2=920 //R
+T1=520 //R
+P1=14 //psia
+P2=84 //psia
+J=778
+R=53.35
+cv=0.1715
+N=1
+//calculations
+k= log(T2/T1) /log(P2/P1)
+n=1/(1-k)
+cx=cv+R/(J*(1-n))
+dS=N*cx*log(T2/T1)
+//results
+printf("Change in entropy = %.5f unit of entropy",dS)
|