summaryrefslogtreecommitdiff
path: root/2870/CH1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH1
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 '2870/CH1')
-rwxr-xr-x2870/CH1/EX1.10/Ex1_10.sce20
-rwxr-xr-x2870/CH1/EX1.2/Ex1_2.sce10
-rwxr-xr-x2870/CH1/EX1.3/Ex1_3.sce12
-rwxr-xr-x2870/CH1/EX1.4/Ex1_4.sce14
-rwxr-xr-x2870/CH1/EX1.5/Ex1_5.sce10
-rwxr-xr-x2870/CH1/EX1.6/Ex1_6.sce16
-rwxr-xr-x2870/CH1/EX1.7/Ex1_7.sce18
-rwxr-xr-x2870/CH1/EX1.8/Ex1_8.sce13
-rwxr-xr-x2870/CH1/EX1.9/Ex1_9.sce14
9 files changed, 127 insertions, 0 deletions
diff --git a/2870/CH1/EX1.10/Ex1_10.sce b/2870/CH1/EX1.10/Ex1_10.sce
new file mode 100755
index 000000000..12708807b
--- /dev/null
+++ b/2870/CH1/EX1.10/Ex1_10.sce
@@ -0,0 +1,20 @@
+clc;clear;
+//Example 1.10
+
+//constants used
+g=9.81;//acceleration due to gravity in m/s^2;
+
+//given values
+p=1040;
+h1=0.8;
+H=4;
+x0=0;
+x1=4;// x0 & x1 are limits of integration
+
+//calculation
+P1=p*g*h1/1000;//standard pressure determination formula
+P2=integrate('p*g*(sqrt(1+(tan(3.14*z/4/H)^2)))','z',x0,x1);//integrant
+P2=P2/1000;//converting into kPa
+P=P1+P2;
+P=ceil(P);//roundingoff to match answer
+disp(P,'the gage pressure at the bottom of gradient zone in kPa is')
diff --git a/2870/CH1/EX1.2/Ex1_2.sce b/2870/CH1/EX1.2/Ex1_2.sce
new file mode 100755
index 000000000..e485c81e0
--- /dev/null
+++ b/2870/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,10 @@
+clc;clear;
+//Example 1.2
+
+//given values
+p=850;
+V=2;
+
+//calculation
+m=p*V;//mass, density and volumne corealtion
+disp(m,'the amount of oil in tank is (in kg)')
diff --git a/2870/CH1/EX1.3/Ex1_3.sce b/2870/CH1/EX1.3/Ex1_3.sce
new file mode 100755
index 000000000..c77145083
--- /dev/null
+++ b/2870/CH1/EX1.3/Ex1_3.sce
@@ -0,0 +1,12 @@
+clc;clear;
+//Example 1.3
+
+//constants used
+g=32.174;//gravitational constant in ft/s^2
+
+//given values
+m=1;
+
+//calculation
+w=(m*g)/g;//weight is mass times the local value of gravitational acceleration
+disp(m,'the weight on earth is (in lbf)')
diff --git a/2870/CH1/EX1.4/Ex1_4.sce b/2870/CH1/EX1.4/Ex1_4.sce
new file mode 100755
index 000000000..261107a51
--- /dev/null
+++ b/2870/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,14 @@
+clc;clear;
+//Example 1.4
+
+//given values
+Tc=10;//change in temp in Celcius
+
+//calculation
+Tk=Tc;
+Tr=1.8*Tk;
+Tf=Tr;
+//calculated using the corealtions b/w these scales
+disp(Tk,'the corresponding change in K');
+disp(Tr,'the corresponding change in R');
+disp(Tf,'the corresponding change in F')
diff --git a/2870/CH1/EX1.5/Ex1_5.sce b/2870/CH1/EX1.5/Ex1_5.sce
new file mode 100755
index 000000000..e1443fc58
--- /dev/null
+++ b/2870/CH1/EX1.5/Ex1_5.sce
@@ -0,0 +1,10 @@
+clc;clear;
+//Example 1.5
+
+//given values
+Patm=14.5;
+Pvac=5.8;
+
+//calculation
+Pabs=Patm-Pvac;//pressure in vaccumm is always treated to be negative
+disp(Pabs,'the absolute pressure in the chamber in psi is')
diff --git a/2870/CH1/EX1.6/Ex1_6.sce b/2870/CH1/EX1.6/Ex1_6.sce
new file mode 100755
index 000000000..c3c272e78
--- /dev/null
+++ b/2870/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,16 @@
+clc;clear;
+//Example 1.6
+
+//constants used
+pw=1000;//density of water in kg/m^3;
+g=9.81;//acceleration due to gravity in m/s^2;
+
+//given values
+SG=0.85;
+h=55/100;//converting height from cm to m
+Patm=96;
+
+//calculation
+p=SG*pw;
+Ptank=Patm+(p*g*h/1000);//calculating pressure using liquid at same height have same pressure
+disp(Ptank,'absolute pressure in tank in kPa is')
diff --git a/2870/CH1/EX1.7/Ex1_7.sce b/2870/CH1/EX1.7/Ex1_7.sce
new file mode 100755
index 000000000..148b47847
--- /dev/null
+++ b/2870/CH1/EX1.7/Ex1_7.sce
@@ -0,0 +1,18 @@
+clc;clear;
+//Example 1.7
+
+//constants used
+g=9.81;//acceleration due to gravity in m/s^2;
+
+//given values
+h1=0.1;
+h2=0.2;
+h3=0.35;//respective heights in m
+pw=1000;
+pHg=13600;
+poil=800;//density of water, mercury and oil in kg/m^3
+Patm=85.6;
+
+//calculation
+P1=Patm-(pw*g*h1+poil*g*h2-pHg*g*h3)/1000;//calculating pressure using liquid at same height have same pressure
+disp(P1,'the air pressure in tank in kPa is ')
diff --git a/2870/CH1/EX1.8/Ex1_8.sce b/2870/CH1/EX1.8/Ex1_8.sce
new file mode 100755
index 000000000..630df60bb
--- /dev/null
+++ b/2870/CH1/EX1.8/Ex1_8.sce
@@ -0,0 +1,13 @@
+clc;clear;
+//Example 1.8
+
+//constants used
+g=9.81;//acceleration due to gravity in m/s^2;
+
+//given values
+pHg=13570;
+h=74/100;//converting height into m from mm
+
+//calculation
+Patm=pHg*g*h/1000;//standard pressure formula
+disp(Patm,'the atmospheric pressure in kPa is')
diff --git a/2870/CH1/EX1.9/Ex1_9.sce b/2870/CH1/EX1.9/Ex1_9.sce
new file mode 100755
index 000000000..7cab24ee0
--- /dev/null
+++ b/2870/CH1/EX1.9/Ex1_9.sce
@@ -0,0 +1,14 @@
+clc;clear;
+//Example 1.9
+
+//constants used
+g=9.81;//acceleration due to gravity in m/s^2;
+
+//given values
+m=60;
+Patm=0.97;
+A=0.04;
+
+//calculation
+P=Patm+(m*g/A)/10^5;//standard pressure formula
+disp(P,'the pressure inside the cylinder in bar is')