summaryrefslogtreecommitdiff
path: root/548/CH2/EX2.3/2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '548/CH2/EX2.3/2_3.sce')
-rwxr-xr-x548/CH2/EX2.3/2_3.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/548/CH2/EX2.3/2_3.sce b/548/CH2/EX2.3/2_3.sce
new file mode 100755
index 000000000..6242ebb70
--- /dev/null
+++ b/548/CH2/EX2.3/2_3.sce
@@ -0,0 +1,10 @@
+pathname=get_absolute_file_path('2_3.sce')
+filename=pathname+filesep()+'2_3data.sci'
+exec(filename)
+density=P/(R*T);
+v=1/density;//specific volume
+printf("\Answer:\n")
+printf("\n\Density of air: %f Kg/m^3\n\n",density)
+printf("\n\Specific volume of air: %f m^3/Kg\n\n",v)
+
+