summaryrefslogtreecommitdiff
path: root/680/CH8/EX8.02/8_02.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /680/CH8/EX8.02/8_02.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
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