summaryrefslogtreecommitdiff
path: root/213/CH2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /213/CH2
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 '213/CH2')
-rwxr-xr-x213/CH2/EX2.1/2_1.sce28
-rwxr-xr-x213/CH2/EX2.3/2_3.sce22
-rwxr-xr-x213/CH2/EX2.5/2_5.sce20
-rwxr-xr-x213/CH2/EX2.6/2_6.sce17
-rwxr-xr-x213/CH2/EX2.7/2_7.sce24
5 files changed, 111 insertions, 0 deletions
diff --git a/213/CH2/EX2.1/2_1.sce b/213/CH2/EX2.1/2_1.sce
new file mode 100755
index 000000000..c2fd0d1f8
--- /dev/null
+++ b/213/CH2/EX2.1/2_1.sce
@@ -0,0 +1,28 @@
+//To Find the Acceleration and Distance
+clc
+//Given:
+u1=0,v1=72*1000/3600 //m/s
+s1=500 //m
+//Solution:
+//Calculating the initial acceleration of the car
+a1=(v1^2-u1^2)/(2*s1) //m/s^2
+//Calculating time taken by the car to attain the speed
+t1=(v1-u1)/a1 //seconds
+//Parameters for the second case
+u2=v1,v2=90*1000/3600 //m/s
+t2=10 //seconds
+//Calculating the acceleration for the second case
+a2=(v2-u2)/t2 //m/s^2
+//Calculating the distance moved by the car in the second case
+s2=(u2*t2)+(a2/2*t2^2)
+//Parameters for the third case
+u3=v2,v3=0 //m/s
+t3=5 //seconds
+//Calculating the distance moved by the car
+s3=(u3+v3)*t3/2 //m
+//Results:
+printf("\n\n The acceleration of the car, a = %.1f m/s^2. \n",a1)
+printf(" The car takes t = %d s to attain the speed.\n",t1)
+printf(" The acceleration of the car in the second case, a = %.1f m/s^2.",a2)
+printf("\n The distance moved by the car, s = %d m.\n",s2)
+printf(" The distance travelled by the car during braking, s = %.1f m.\n\n",s3) \ No newline at end of file
diff --git a/213/CH2/EX2.3/2_3.sce b/213/CH2/EX2.3/2_3.sce
new file mode 100755
index 000000000..bcda83c83
--- /dev/null
+++ b/213/CH2/EX2.3/2_3.sce
@@ -0,0 +1,22 @@
+//To Find the Velocity
+clc
+//Given:
+//Initial parameters
+v0=100 //kmph
+t0=0
+//Parameters at the end of 40 seconds
+v1=90/100*v0 //kmph
+t1=40 //seconds
+//Solution:
+//The acceleration is given by, a=(-dv/dt)=k*v
+//Integrating, we get ln(v)=-k*t+C
+//Calculating the constant of integration
+C=integrate('1/v','v',1,100)
+//Calculating the constant of proportionality
+k=(C-2.3*log10(90))/40
+//Time after 120 seconds
+t2=120 //seconds
+//Calculating the velocity after 120 seconds
+v120=10^((-k*t2+C)/2.29)
+//Results:
+printf("\n\n The velocity at the end of 120 seconds, v120 = %.1f kmph.\n\n",v120) \ No newline at end of file
diff --git a/213/CH2/EX2.5/2_5.sce b/213/CH2/EX2.5/2_5.sce
new file mode 100755
index 000000000..560a71a0c
--- /dev/null
+++ b/213/CH2/EX2.5/2_5.sce
@@ -0,0 +1,20 @@
+//To Find the Maximum Cutting Speed
+clc
+//Given:
+s=500,s1=125,s2=250,s3=125 //mm
+t=1 //second
+//Solution:
+//Matrices for the velocity vs. time graph
+V=[0,750,750,0] //The velocity matrix
+T=[0,1/3,2/3,1] //The time matrix
+plot2d(T,V)
+//Calculating the time of uniform acceleration
+t1=rdivf('s1','v/2')
+//Calculating the time of constant speed
+t2=rdivf('s2','v')
+//Calculating the time of uniform retardation
+t3=rdivf('s3','v/2')
+//Equating the time taken to complete the stroke to 1 second
+v=(125/(1/2)+250/1+125/(1/2))/1 //mm/s
+//Results:
+printf("\n\n The maximum cutting speed, v = %d mm/s.\n\n",v) \ No newline at end of file
diff --git a/213/CH2/EX2.6/2_6.sce b/213/CH2/EX2.6/2_6.sce
new file mode 100755
index 000000000..318f4ab30
--- /dev/null
+++ b/213/CH2/EX2.6/2_6.sce
@@ -0,0 +1,17 @@
+//To Find the Angular Acceleration
+clc
+//Given:
+N0=0,N=2000 //rpm
+t=20 //seconds
+//Solution:
+//Calculating the angular velocities
+omega0=0, omega=2*%pi*N/60 //rad/s
+//Calculating the angular acceleration
+alpha=(omega-omega0)/t //rad/s^2
+//Calculating the angular distance moved by the wheel during 2000 rpm
+theta=(omega0+omega)*t/2 //rad
+//Calculating the number of revolutions made by the wheel
+n=theta/(2*%pi)
+//Results:
+printf("\n\n The angular acceleration of the wheel, alpha = %.3f rad/s^2.\n",alpha)
+printf(" The wheel makes n = %.1f revolutions.\n\n",n) \ No newline at end of file
diff --git a/213/CH2/EX2.7/2_7.sce b/213/CH2/EX2.7/2_7.sce
new file mode 100755
index 000000000..f87044b74
--- /dev/null
+++ b/213/CH2/EX2.7/2_7.sce
@@ -0,0 +1,24 @@
+//To Find Velocity and Acceleration
+clc
+//Given:
+r=1.5 //m
+N0=1200,N=1500 //rpm
+t=5 //seconds
+//Solution:
+//Calculating the angular velocities
+omega0=2*%pi*N0/60,omega=2*%pi*N/60 //rad/s
+//Calculating the linear velocity at the beginning
+v0=r*omega0 //m/s
+//Calculating the linear velocity at the end of 5 seconds
+v5=r*omega //m/s
+//Calculating the angular acceleration
+alpha=(omega-omega0)/t //ad/s^2
+//Calculating the tangential acceleration after 5 seconds
+TangentialAcceleration=alpha*(r/2) //m/s^2
+//Calculating the radial acceleration after 5 seconds
+RadialAcceleration=(omega^2)*(r/2) //m/s^2
+//Results:
+printf("\n\n The linear velocity at the beginning, v0 = %.1f m/s.\n",v0)
+printf(" The linear velocity after 5 seconds, v5 = %.1f m/s.\n",v5)
+printf(" The tangential acceleration after 5 seconds is %.1f m/s^2.\n",TangentialAcceleration)
+printf(" The radial acceleration after 5 seconds is %d m/s^2.",RadialAcceleration) \ No newline at end of file