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 /32/CH7/EX7.23 | |
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 '32/CH7/EX7.23')
-rwxr-xr-x | 32/CH7/EX7.23/7_23.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/32/CH7/EX7.23/7_23.sce b/32/CH7/EX7.23/7_23.sce new file mode 100755 index 000000000..1df53a024 --- /dev/null +++ b/32/CH7/EX7.23/7_23.sce @@ -0,0 +1,17 @@ +//pathname=get_absolute_file_path('7.23.sce')
+//filename=pathname+filesep()+'7.23-data.sci'
+//exec(filename)
+//Mass of water(in kg):
+m=75
+//Temperature of hot water(in K):
+T1=400+273
+//Final temperature(in K):
+T2=300
+//Temperature of the environment(in K):
+T0=27+273
+//Specific heat of water(in kJ/kg.K):
+Cp=4.18
+//Maximum work(in kJ):
+Wmax=m*Cp*(T1-T2-T0*log(T1/T2))
+printf("\nRESULT")
+printf("\nMaximum work = %f kJ",Wmax)
\ No newline at end of file |