summaryrefslogtreecommitdiff
path: root/1286/CH3/EX3.13/3_13.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1286/CH3/EX3.13/3_13.sce
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 '1286/CH3/EX3.13/3_13.sce')
-rwxr-xr-x1286/CH3/EX3.13/3_13.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1286/CH3/EX3.13/3_13.sce b/1286/CH3/EX3.13/3_13.sce
new file mode 100755
index 000000000..d8e061765
--- /dev/null
+++ b/1286/CH3/EX3.13/3_13.sce
@@ -0,0 +1,19 @@
+clc
+//initialisation
+p1=6//atm
+p2=2//atm
+ph=89//kg/m^3
+v=30/1000//ml
+t1=10//c
+t3=31.5//c
+T1=273+t1
+t2=150//c
+w1=0.210//kg
+//calculations
+m=(p1-p2)*273*ph*v/(T1*1000)
+t4=(t1+t3)/2
+h=m*(t2-t4)
+H=w1*1000*4.18*(t3-t1)
+c=H/h
+//results
+printf(' specific heat= % 1f j/kg*k',c)