summaryrefslogtreecommitdiff
path: root/2126/CH8/EX8.1.39
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2126/CH8/EX8.1.39
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 '2126/CH8/EX8.1.39')
-rwxr-xr-x2126/CH8/EX8.1.39/8_1_39.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2126/CH8/EX8.1.39/8_1_39.sce b/2126/CH8/EX8.1.39/8_1_39.sce
new file mode 100755
index 000000000..5eaf14ead
--- /dev/null
+++ b/2126/CH8/EX8.1.39/8_1_39.sce
@@ -0,0 +1,14 @@
+clc
+clear
+
+//Input data
+v1=8 //Intial volume in litres
+P1=0.7 //Intial pressure in MPa
+v2=7.8 //Final volume in litres
+P2=2.7 //Final pressure in MPa
+
+//Calculation
+k=(P2-P1)/(log(v1/v2)) //Bulk modulus of elasticity of a liquid in MPa
+
+//Output
+printf('Bulk modulus of elasticity of a liquid is %3.3f MPa',k)