summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.17/Chapter5_Example17.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH5/EX5.17/Chapter5_Example17.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 '2741/CH5/EX5.17/Chapter5_Example17.sce')
-rwxr-xr-x2741/CH5/EX5.17/Chapter5_Example17.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2741/CH5/EX5.17/Chapter5_Example17.sce b/2741/CH5/EX5.17/Chapter5_Example17.sce
new file mode 100755
index 000000000..329b57a4b
--- /dev/null
+++ b/2741/CH5/EX5.17/Chapter5_Example17.sce
@@ -0,0 +1,12 @@
+clc
+clear
+//Input data
+T=300;//The given temperature in K
+R=8.3*10^7;//The Universal gas constant in ergs/g mol-K
+M=221;//The molecular weight of mercury
+
+//Calculations
+C=((3*R*T)/(M))^(1/2);//The root mean square velocity of a molecule of mercury vapour at 300 K in cm/s
+
+//Output
+printf('The root mean square velocity of a molecule of mercury vapour at 300 K is C = %3.4g cm/s ',C)