summaryrefslogtreecommitdiff
path: root/32/CH5/EX5.05
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH5/EX5.05
downloadScilab-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/CH5/EX5.05')
-rwxr-xr-x32/CH5/EX5.05/5_05.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/32/CH5/EX5.05/5_05.sce b/32/CH5/EX5.05/5_05.sce
new file mode 100755
index 000000000..1ace4a6e2
--- /dev/null
+++ b/32/CH5/EX5.05/5_05.sce
@@ -0,0 +1,21 @@
+//pathname=get_absolute_file_path('5.05.sce')
+//filename=pathname+filesep()+'5.05-data.sci'
+//exec(filename)
+//Mass of the block(in kg):
+m=1
+//Temperature of the block(in K):
+T=27+273
+//Height(in m):
+h=200
+//Heat capacity for copper(in kJ/kg.K):
+s=0.393
+//Acceleration due to gravity(in m/s^2):
+g=9.81
+//Change in potential energy(in J):
+PE=m*g*h
+//In this case:
+Q=PE
+//Change in entropy of universe(in J/kg.K):
+dSu=Q/T
+printf("\nRESULT\n")
+printf("\nChange in entropy of universe = %f J/kg.K",dSu) \ No newline at end of file