summaryrefslogtreecommitdiff
path: root/2774/CH1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2774/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 '2774/CH1')
-rwxr-xr-x2774/CH1/EX1.2/EX1_2.sce9
-rwxr-xr-x2774/CH1/EX1.3/Ex1_3.sce15
-rwxr-xr-x2774/CH1/EX1.4/Ex1_4.sce12
-rwxr-xr-x2774/CH1/EX1.5/Ex1_5.sce11
-rwxr-xr-x2774/CH1/EX1.6/Ex1_6.sce14
5 files changed, 61 insertions, 0 deletions
diff --git a/2774/CH1/EX1.2/EX1_2.sce b/2774/CH1/EX1.2/EX1_2.sce
new file mode 100755
index 000000000..cd7645c43
--- /dev/null
+++ b/2774/CH1/EX1.2/EX1_2.sce
@@ -0,0 +1,9 @@
+clc
+// solution
+
+// initialization of variables
+m=10 // mass in Kg
+V=5 // velocity in m/s
+
+KE=m*V**2/2 // kinetic energy in N-m
+printf("The Kinetic Energy is "+string(KE)+" N.m")
diff --git a/2774/CH1/EX1.3/Ex1_3.sce b/2774/CH1/EX1.3/Ex1_3.sce
new file mode 100755
index 000000000..f82aa273b
--- /dev/null
+++ b/2774/CH1/EX1.3/Ex1_3.sce
@@ -0,0 +1,15 @@
+clc
+// solution
+
+// initialization of variables
+V=3*5*20 // Volume of air in m^3 from dimensions
+m=350 // mass in kg
+g=9.81 // gavitational acceleration in m/s^2
+rho=m/V // density
+printf("The Density is %.3f kg/m^3 \n",rho)
+
+v=1/rho // specific volume of air
+printf(" The specific volume is %.3f m^3/kg \n",v)
+
+gama=rho*g // specific weight of air
+printf(" The specific weight is %.2f N/m^3",gama)
diff --git a/2774/CH1/EX1.4/Ex1_4.sce b/2774/CH1/EX1.4/Ex1_4.sce
new file mode 100755
index 000000000..a61efa7d8
--- /dev/null
+++ b/2774/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,12 @@
+clc
+// solution
+
+// initialization of variables
+h=0.020 // height of mercury in m
+gammawater=9810 // specific weight of water in N/m^3
+Patm=0.7846*101.3 // atmospheric pressure in kPa from table B.1
+
+Pgauge=13.6*gammawater*h/1000 // pressure in Pascal from condition gammaHg=13.6*gammawater
+
+P=(Pgauge+Patm)// absolute pressure in KPa
+printf("The Pressure is %.2f kPa",P)
diff --git a/2774/CH1/EX1.5/Ex1_5.sce b/2774/CH1/EX1.5/Ex1_5.sce
new file mode 100755
index 000000000..e3c092edb
--- /dev/null
+++ b/2774/CH1/EX1.5/Ex1_5.sce
@@ -0,0 +1,11 @@
+clc
+// solution
+
+// initialization of variables
+d=10/100 // diameter of cylinder in 'm'
+P=600 // pressure in KPa
+Patm=100 // atmospheric pressure in Kpa
+K=4.8*1000 // spring constant in N/m
+
+deltax=(P-Patm)*(%pi*1000*d**2)/(4*K) // by balancing forces on piston
+printf("The Compression in spring is %.3f m",deltax)
diff --git a/2774/CH1/EX1.6/Ex1_6.sce b/2774/CH1/EX1.6/Ex1_6.sce
new file mode 100755
index 000000000..84deb8114
--- /dev/null
+++ b/2774/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,14 @@
+clc
+// solution
+
+// initialization of variables
+ma=2200 // mass of Automobile 'a' in kg
+va=25 //velocity of Automobile 'a' in m/s before collision
+va1=13.89 // velocity of Automobile 'a' after collision in m/s
+mb=1000 // mass of Automobile 'b' in kg
+vb=24.44 //velocity of Automobile 'b' after collision in m/s
+
+KE1=(ma*va**2)/2 // kinetic energy before collision
+KE2=(ma*va1**2)/2+(mb*vb**2)/2 // kinetic energy after collision
+U=(KE1-KE2)/1000 // internal energy from conservation of energy principle in kJ
+printf("The increase in kinetic energy is of %.1f kJ",U)