diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH5/EX5.16 | |
download | Scilab-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.16')
-rwxr-xr-x | 2741/CH5/EX5.16/Chapter5_Example16.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2741/CH5/EX5.16/Chapter5_Example16.sce b/2741/CH5/EX5.16/Chapter5_Example16.sce new file mode 100755 index 000000000..906e5084e --- /dev/null +++ b/2741/CH5/EX5.16/Chapter5_Example16.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+T=200;//The given temperature in K
+m=2;//Given mass of Helium in g
+M=4;//Molecular weight of helium in g
+R=8.3*10^7;//The Universal gas constant in ergs/g mol-K
+
+//Calculations
+E=(m*(3/2)*(R*T)/(M))/10^7;//The energy for 2 g of helium in joules
+
+//Output
+printf('The total random kinetic energy of 2 g of helium at 200 K is K.E = %3.0f joules',E)
|