summaryrefslogtreecommitdiff
path: root/680/CH8/EX8.02/8_02.sce
diff options
context:
space:
mode:
Diffstat (limited to '680/CH8/EX8.02/8_02.sce')
-rwxr-xr-x680/CH8/EX8.02/8_02.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/680/CH8/EX8.02/8_02.sce b/680/CH8/EX8.02/8_02.sce
new file mode 100755
index 000000000..728344cee
--- /dev/null
+++ b/680/CH8/EX8.02/8_02.sce
@@ -0,0 +1,14 @@
+//Problem 8.02:
+
+//initializing the variables:
+T = 0; // in deg C
+A = 16.65;
+B = 2940;
+C = -35.93;
+
+//calculation:
+T = T + 273
+P = %e^(A - B/(T + C))
+
+printf("\n\nResult\n\n")
+printf("\n the vapor pressure is %.2f mm of Hg",P) \ No newline at end of file