From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 409/CH5/EX5.1/Example5_1.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 409/CH5/EX5.1/Example5_1.sce (limited to '409/CH5/EX5.1/Example5_1.sce') 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 -- cgit