summaryrefslogtreecommitdiff
path: root/2417/CH6/EX6.2/Ex6_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2417/CH6/EX6.2/Ex6_2.sce')
-rwxr-xr-x2417/CH6/EX6.2/Ex6_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2417/CH6/EX6.2/Ex6_2.sce b/2417/CH6/EX6.2/Ex6_2.sce
new file mode 100755
index 000000000..3db9344ad
--- /dev/null
+++ b/2417/CH6/EX6.2/Ex6_2.sce
@@ -0,0 +1,13 @@
+clear;
+clc;
+printf("\t\t\tProblem Number 6.2\n\n\n");
+// Chapter 6: The Ideal Gas
+// Problem 6.2 (page no. 241)
+// Solution
+
+P1=10^6; //Pressure at volume V1=2 m^3 //Unit:Pa
+V1=2; //Unit:m^3 //V1=Volume at 10^6 Pa
+P2=8*10^6 // Increased Pressure //Unit:Pa
+//Boyle's law,P1*V1=P2*V2
+V2=(P1*V1)/P2; //Volume occupied by gas //unit:m^3
+printf("Volume occupied by gas = %f m^3",V2);