summaryrefslogtreecommitdiff
path: root/1991/CH6/EX6.4/4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1991/CH6/EX6.4/4.sce')
-rwxr-xr-x1991/CH6/EX6.4/4.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1991/CH6/EX6.4/4.sce b/1991/CH6/EX6.4/4.sce
new file mode 100755
index 000000000..6e582cc2f
--- /dev/null
+++ b/1991/CH6/EX6.4/4.sce
@@ -0,0 +1,10 @@
+ clc
+clear
+//input
+v1=0.52 //volume of ideal gas
+p1=2.3*10^5 //pressure of ideal gas
+p2=6.7*10^5 //pressure changed
+//calculation
+v2=p1*v1/p2//boyle's law
+//output
+printf("the volume is %3.3f m^3",v2)