summaryrefslogtreecommitdiff
path: root/689/CH3/EX3.5/5.sce
diff options
context:
space:
mode:
Diffstat (limited to '689/CH3/EX3.5/5.sce')
-rw-r--r--689/CH3/EX3.5/5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/689/CH3/EX3.5/5.sce b/689/CH3/EX3.5/5.sce
new file mode 100644
index 000000000..95c64eeb7
--- /dev/null
+++ b/689/CH3/EX3.5/5.sce
@@ -0,0 +1,13 @@
+clc; funcprot(0);
+//Example 3.5 Speed of sound
+
+// Initialisation of variables
+gma = 1.4;
+P = 2116.2;
+rho = 0.002378;
+
+// Calculations
+a = sqrt(gma*P/rho);
+//Results
+disp(a , "Speed of sound in standard pressure 2116.2 lbper sq ft, and standard density 0.002378slug per cu ft. (in ft/sec):");
+