summaryrefslogtreecommitdiff
path: root/2411/CH1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/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 '2411/CH1')
-rwxr-xr-x2411/CH1/EX1.10/Ex1_10.sce18
-rwxr-xr-x2411/CH1/EX1.11/Ex1_11.sce16
-rwxr-xr-x2411/CH1/EX1.5/Ex1_5.sce13
-rwxr-xr-x2411/CH1/EX1.6/Ex1_6.sce9
-rwxr-xr-x2411/CH1/EX1.9/Ex1_9.sce12
5 files changed, 68 insertions, 0 deletions
diff --git a/2411/CH1/EX1.10/Ex1_10.sce b/2411/CH1/EX1.10/Ex1_10.sce
new file mode 100755
index 000000000..35c8d4653
--- /dev/null
+++ b/2411/CH1/EX1.10/Ex1_10.sce
@@ -0,0 +1,18 @@
+// Scilab Code Ex1.10: : Page-14 (2008)
+clc; clear;
+m1 = 1200; // Mass of the car, kg
+m2 = 3600; // Mass of the truck, kg
+u1 = 30; // Speed of the car, m/s
+u2 = 20; // Speed of the truck, m/s
+theta = 60; // Direction of motion of the truck w.r.t. that of car, degree
+// As m1*u1 + m2*u2 = (m1 + m2)*v, solving for v along x and y directions
+v_x = (m1*u1 + m2*u2*cosd(theta))/(m1 + m2); // Common speed along x-direction, m/s
+u1 = 0; // The speed of the car after interlocking with the truck, m/s
+v_y = (m1*u1 + m2*u2*sind(theta))/(m1 + m2); // Common speed along y-direction, m/s
+v = sqrt(v_x^2 + v_y^2); // Common speed of the car-truck system, m/s
+theta = atand(v_y/v_x); // Direction of common velocity w.r.t. that of car, degree
+printf("\nThe common speed of the car-truck system = %4.1f m/s", v);
+printf("\nThe direction of common velocity = %4.1f degree north of east", theta);
+
+// Result
+// The common speed of the car-truck system = 19.8 m/s
diff --git a/2411/CH1/EX1.11/Ex1_11.sce b/2411/CH1/EX1.11/Ex1_11.sce
new file mode 100755
index 000000000..a639dfba7
--- /dev/null
+++ b/2411/CH1/EX1.11/Ex1_11.sce
@@ -0,0 +1,16 @@
+// Scilab Code Ex1.11: Page-14 (2008)
+clc; clear;
+v1 = 20; // Velocity of first piece, m/s
+v2 = 30; // Velocity of second piece, m/s
+// From conservation of momentum, in x-direction
+// m*v1*cosd(0)+m*v2*cosd(45)+m*v3*cosd(theta) = 0, solving for v3*cosd(theta)
+v3_cos_theta = -(v1*cosd(0)+v2*cosd(45)); // x-component of v3 along theta, m/s
+// From conservation of momentum, in y-direction
+// m*v1*sind(0)-m*v2*sind(45)+m*v3*sind(theta) = 0, solving for v3*sind(theta)
+v3_sin_theta = -(v1*sind(0)-v2*sind(45)); // y-component of v3 along theta, m/s
+theta = atand(v3_sin_theta/v3_cos_theta); // Direction of velocity of third piece, degree
+v3 = -(v1*cosd(0)+v2*cosd(45))/cosd(theta+180); // Velocity of third piece, m/s
+printf("\nThe velocity of third piece is %4.1f m/s towards %d degree north of west", v3, ceil(theta+180));
+
+// Result
+// The velocity of third piece is 46.4 m/s towards 153 degree north of west
diff --git a/2411/CH1/EX1.5/Ex1_5.sce b/2411/CH1/EX1.5/Ex1_5.sce
new file mode 100755
index 000000000..e66a2cbbf
--- /dev/null
+++ b/2411/CH1/EX1.5/Ex1_5.sce
@@ -0,0 +1,13 @@
+// Scilab Code Ex1.5: Page-11 (2008)
+clc; clear;
+m1 = 2; // Mass of first body, kg
+m2 = 1; // Mass of second body, kg
+F = 3; // The horizontal force applied to the mass m1, N
+F_prime = m2/(m1 + m2)*F; // Force of contact between m1 and m2, N
+printf("\nThe force of contact between m1 and m2 = %3.1f N", F_prime);
+F_prime = m1/(m1 + m2)*F; // Force of contact when F is applied to m2, N
+printf("\nThe force of contact when F is applied to m2 = %3.1f N", F_prime);
+
+// Result
+// The force of contact between m1 and m2 = 1.0 N
+// The force of contact when F is applied to m2 = 2.0 N
diff --git a/2411/CH1/EX1.6/Ex1_6.sce b/2411/CH1/EX1.6/Ex1_6.sce
new file mode 100755
index 000000000..bd48ae4e9
--- /dev/null
+++ b/2411/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,9 @@
+// Scilab Code Ex1.6: Page-12 (2008)
+clc; clear;
+v = 1; // Let the speed of the ball B be unity, unit
+v_prime = v/2; // Speed of the ball after the collision, unit
+theta = atand(v_prime/v); // The direction of motion of the ball A after collision, degree
+printf("\nThe direction of motion of the ball after collision = %2.0f degree", theta);
+
+// Result
+// The direction of motion of the ball after collision = 27 degree \ No newline at end of file
diff --git a/2411/CH1/EX1.9/Ex1_9.sce b/2411/CH1/EX1.9/Ex1_9.sce
new file mode 100755
index 000000000..ae996ba20
--- /dev/null
+++ b/2411/CH1/EX1.9/Ex1_9.sce
@@ -0,0 +1,12 @@
+// Scilab Code Ex1.9: Page-14 (2008)
+clc; clear;
+omega1 = 500; // Angular speed of rotating shaft, r.p.m.
+omega2 = 0; // Initial angular speed of the second wheel, r.p.m.
+I = 1; // For simplicity assume moment of ineria of the wheels to be unity
+I1 = I, I2 = I; // Moment of inertia of wheels A and B, kg-Sq.m
+// As I1*omega1 + I2*omega2 = (I1 + I2)*omega, solving for omega
+omega = (I1*omega1 + I2*omega2)/(I1 + I2); // Angular speed of the combination of two wheels, r.p.m.
+printf("\nThe angular speed of the combination of two wheels = %3.0f r.p.m.", omega);
+
+// Result
+// The angular speed of the combination of two wheels = 250 r.p.m. \ No newline at end of file