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 /409/CH5/EX5.1/Example5_1.sce | |
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 '409/CH5/EX5.1/Example5_1.sce')
-rwxr-xr-x | 409/CH5/EX5.1/Example5_1.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/409/CH5/EX5.1/Example5_1.sce b/409/CH5/EX5.1/Example5_1.sce new file mode 100755 index 000000000..e236f1e69 --- /dev/null +++ b/409/CH5/EX5.1/Example5_1.sce @@ -0,0 +1,24 @@ +clear ;
+clc;
+// Example 5.1
+printf('Example 5.1\n\n');
+//Page no.109
+// Solution
+
+P = 60 ;//[Gpa]
+
+//(a)
+p_atm = (P*(10^6))/101.3 ;//[atm]
+printf('(a) Pressure in atmospheres is %.2e atm\n',p_atm);
+
+//(b)
+p_s = (P*(10^6)*14.696)/101.3 ;//[psia]
+printf(' (b) Pressure in psia is %.2e psia\n',p_s);
+
+// (c)
+p_in = (P*(10^6)*29.92)/101.3 ;//[inches of Hg]
+printf(' (c) Pressure in inches of Hg is %.2e in. Hg\n',p_in);
+
+// (d)
+p_mm = (P*(10^6)*760)/101.3 ;//[mm of Hg]
+printf(' (d) Pressure in mm of Hg is %.2e mm Hg\n',p_mm);
\ No newline at end of file |