summaryrefslogtreecommitdiff
path: root/1205/CH2
diff options
context:
space:
mode:
Diffstat (limited to '1205/CH2')
-rw-r--r--1205/CH2/EX2.1/S_2_1.sce30
-rw-r--r--1205/CH2/EX2.12.1/E2_12_1.sce20
-rw-r--r--1205/CH2/EX2.12.2/E2_12_2.sce21
-rw-r--r--1205/CH2/EX2.2/S_2_2.sce38
-rw-r--r--1205/CH2/EX2.3/S_2_3.sce28
-rw-r--r--1205/CH2/EX2.4/S_2_4.sce25
-rw-r--r--1205/CH2/EX2.5/S_2_5.sce7
-rw-r--r--1205/CH2/EX2.6/S_2_6.sce22
-rw-r--r--1205/CH2/EX2.7.1/E2_7_1.sce11
-rw-r--r--1205/CH2/EX2.7.2/E2_7_2.sce11
-rw-r--r--1205/CH2/EX2.7.3/E2_7_3.sce9
-rw-r--r--1205/CH2/EX2.7/S_2_7.sce30
-rw-r--r--1205/CH2/EX2.8/S_2_8.sce59
13 files changed, 311 insertions, 0 deletions
diff --git a/1205/CH2/EX2.1/S_2_1.sce b/1205/CH2/EX2.1/S_2_1.sce
new file mode 100644
index 000000000..357f8c861
--- /dev/null
+++ b/1205/CH2/EX2.1/S_2_1.sce
@@ -0,0 +1,30 @@
+clc;
+
+//Getting resultant of two vectors
+
+P=40; // N Magnitude of vector P
+Q=60 // N Magnitude of vector Q
+// imagine triangle for triangle law of vectors
+B=180-25;// degree , Angle between vector P and vector Q
+
+//R- Resultant vector
+B=B*%pi/180;// conversion into radian
+//R^2=P^2+Q^2-2*P*Q*cos(B); Cosine Law
+R=sqrt(P^2+Q^2-2*P*Q*cos(B));// N
+
+printf("Maginitude of Resultant is R= %.2f N\n",R);
+
+
+//A- Angle between Resultant and P vector, Unknown
+
+// sin(A)/Q == sin(B)/R sine law
+
+A=asin(Q*sin(B)/R);// radian
+
+
+A=A*180/%pi;//// Conversion into degree
+
+alpha=A+20;// degree
+printf("Angle of Resultant vector R with x axis is %.2f Degrees\n",alpha);
+
+
diff --git a/1205/CH2/EX2.12.1/E2_12_1.sce b/1205/CH2/EX2.12.1/E2_12_1.sce
new file mode 100644
index 000000000..e6cf53915
--- /dev/null
+++ b/1205/CH2/EX2.12.1/E2_12_1.sce
@@ -0,0 +1,20 @@
+clc;
+F=500;//N, Given force
+thetax=60;//degree , angle made by F with X axis
+thetay=45;//degree , angle made by F with Y axis
+thetaz=120;//degree , angle made by F with Z axis
+
+//conversion into radian
+thetax=thetax*pi/180;
+thetay=thetay*pi/180;
+thetaz=thetaz*pi/180;
+
+//Calculating component
+Fx=F*cos(thetax);//N, Component of F along x axis
+Fy=F*cos(thetay);//N, Component of F along y axis
+Fz=F*cos(thetaz);//N, Component of F along z axis
+
+printf("Component of F alongX axis is %.2f N\n",Fx);
+printf("Component of F along Y axis is %.2f N\n",Fy);
+printf("Component of F along Z axis is %.2f N\n",Fz);
+printf("We may write F as \n F = %.2f i + %.2f j + %.2f k",Fx,Fy,Fz);
diff --git a/1205/CH2/EX2.12.2/E2_12_2.sce b/1205/CH2/EX2.12.2/E2_12_2.sce
new file mode 100644
index 000000000..f043f87ef
--- /dev/null
+++ b/1205/CH2/EX2.12.2/E2_12_2.sce
@@ -0,0 +1,21 @@
+clc;
+//F=700N i +1500N j, given forc
+
+Fx=100;//N, Comonent along X axis
+Fy=-150;// N, Component along Y axis
+Fz=300;// N, Component along Z axis
+
+F=sqrt(Fx^2+Fy^2+Fz^2);// N, magnitude of force F
+thetax=acos(Fx/F);// radian , angle with +ve x axis
+thetay=acos(Fy/F);// radian , angle with +ve y axis
+thetaz=acos(Fz/F);// radian , angle with +ve z axis
+
+//Conversion of angles into degree
+thetax=thetax*180/pi;//degree
+thetay=thetay*180/pi;//degree
+thetaz=thetaz*180/pi;//degree
+printf("Magnitude of F is %.2f N\n",F);
+printf("Angle made by F with +ve X axis %.2f degree\n",thetax);
+
+printf("Angle made by F with +ve Y axis %.2f degree\n",thetay);
+printf("Angle made by F with +ve Z axis %.2f degree\n",thetaz);
diff --git a/1205/CH2/EX2.2/S_2_2.sce b/1205/CH2/EX2.2/S_2_2.sce
new file mode 100644
index 000000000..d20edfac6
--- /dev/null
+++ b/1205/CH2/EX2.2/S_2_2.sce
@@ -0,0 +1,38 @@
+clc;
+
+R=25; // kN Magnitude of Resultant vector
+alpha=45;//degree
+// T1 and T2 are tensions in rope 1 and rope 2 respectively
+A=30;// degree , Angle between vector T1 and resultant
+B=alpha;// degree , Angle between vector T2 and resultant
+C=180-(A+B);// degree , Angle between vector T1 and T2
+
+
+// conversion of angles into radian
+A=A*%pi/180;
+B=B*%pi/180;
+C=C*%pi/180;
+
+
+// sin(A)/T2 == sin(B)/T1 == sin(C)/R .............. sine law
+
+T1=(R*sin(B))/sin(C);//kN
+T2=(R*sin(A))/sin(C);//kN
+
+
+printf("Tension in rope 1 is T1=%.2f kN and in rope 2 is T2=%.2f kN \n",T1,T2);
+
+
+// Minimum value of T2 occcurs when T1 and T2 are perpendicular to each other i.e C=90 degree
+C=90;//degree
+A=30;// degree
+B=180-(A+C);//degrees
+alpha=B;//degrees
+B=B*%pi/180;// radian
+T2=R*sin(B);// kN
+T1=R*cos(B);//kN
+printf("Minimum tension in rope 2 is T2=%.2f kN \n",T2);
+printf("corrosponding T1=%.2f kN \n ",T1);
+printf("alpha=%.2f degrees",alpha);
+
+
diff --git a/1205/CH2/EX2.3/S_2_3.sce b/1205/CH2/EX2.3/S_2_3.sce
new file mode 100644
index 000000000..16c6ab169
--- /dev/null
+++ b/1205/CH2/EX2.3/S_2_3.sce
@@ -0,0 +1,28 @@
+clc;
+F1=725;// N
+F2=500;// N
+F3=780;//N
+theta=acos(840/1160);//radian, Angle made by F1 with -X axis
+alpha=acos(3/5);//radian, Angle made by F2 with -X axis
+beta=acos(12/13);//radian, Angle made by F3 with X axis
+
+F1x=-F1*cos(theta);//N, Horizontal component of F1
+F2x=-F2*cos(alpha);//N, Horizontal component of F2
+F3x=F3*cos(beta);//N, Horizontal component of F3
+
+F1y=F1*sin(theta);//N, Vertical component of F1
+F2y=-F2*sin(alpha);//N, Vertical component of F2
+F3y=-F3*sin(beta);//N, Vertical component of F3
+
+Rx=F1x+F2x+F3x;//N Horizontal component of R- resultant
+Ry=F1y+F2y+F3y;//N Vertical component of R- resultant
+
+//R=Rx i +Ry j
+
+printf("R= %.2f i + %.2f j \n", Rx,Ry);
+
+alpha=atan(Ry/Rx);//Radian, Angle made by resultant with +ve x axis
+alpha=alpha*180/%pi;//Conversion into degrees
+
+R=sqrt(Rx^2+Ry^2);// N , Magnitude of resultant
+printf("alpha= %.2f degrees and R= %.2f N",alpha,R);
diff --git a/1205/CH2/EX2.4/S_2_4.sce b/1205/CH2/EX2.4/S_2_4.sce
new file mode 100644
index 000000000..5776956b9
--- /dev/null
+++ b/1205/CH2/EX2.4/S_2_4.sce
@@ -0,0 +1,25 @@
+clc;
+
+W=8000; // N weight of automobile
+alpha=2;//degree
+// TAB and TAC are tensions in cable AB and cable AC respectively
+A=90+30;// degree , Angle between vector T1 and resultant
+B=alpha;// degree , Angle between vector T2 and resultant
+C=180-(A+B);// degree , Angle between vector T1 and T2
+
+
+// conversion of angles into radian
+A=A*%pi/180;
+B=B*%pi/180;
+C=C*%pi/180;
+
+
+// sin(A)/TAB == sin(B)/TAC == sin(C)/W .............. sine law
+
+
+TAB=(W*sin(A))/sin(C);//N
+TAC=(W*sin(B))/sin(C);//N
+
+printf("Tension in cable AB is TAB=%.2f N and in Cable AC is TAC=%.2f N \n",TAB,TAC);
+
+
diff --git a/1205/CH2/EX2.5/S_2_5.sce b/1205/CH2/EX2.5/S_2_5.sce
new file mode 100644
index 000000000..7b665d0be
--- /dev/null
+++ b/1205/CH2/EX2.5/S_2_5.sce
@@ -0,0 +1,7 @@
+mass=30;// kg
+W=mass*9.81;// N, Weight of package
+alpha=15;//degree
+alpha=alpha*%pi/180;// Conversion into radian
+F=W*sin(alpha);//N
+printf("F= %.2f N",F);
+
diff --git a/1205/CH2/EX2.6/S_2_6.sce b/1205/CH2/EX2.6/S_2_6.sce
new file mode 100644
index 000000000..83668de5f
--- /dev/null
+++ b/1205/CH2/EX2.6/S_2_6.sce
@@ -0,0 +1,22 @@
+clc;
+alpha=atan(7/4);//rad
+beta=atan(1.5/4);//rad
+T_AB=200;//N tension in cable AB
+T_AE=-300;//N, tension in cable AE
+// R= T_AB+T_AC+T_AE+F_D=0 ...Equillibrium Condition...........1
+
+
+T_ABx=-T_AB*sin(alpha);// Xcomponent of T_AB
+T_ABy=T_AB*cos(alpha);//Y component of T_AB
+
+// T_ACx=T_AC*sin(beta); Xcomponent of T_AC
+// T_ACy=T_AC*cos(beta); Y component of T_AC
+
+// Sum Fx =0 gives -T_AB*sin(alpha) N + T_AC*sin(beta) +F_D=0..........2
+//Sum Fy=0 gives T_AB*cos(alpha) N +T_AC*cos(beta) +T_AE =0................3
+
+T_AC=(-T_AB*cos(alpha)-T_AE)/cos(beta);//N, From 3
+
+F_D=T_AB*sin(alpha)-T_AC*sin(beta);//N, From 2
+
+printf("Value of drag force is F_D=%.2f N and tension in cable AC is T_AC= %.2f N",F_D,T_AC);
diff --git a/1205/CH2/EX2.7.1/E2_7_1.sce b/1205/CH2/EX2.7.1/E2_7_1.sce
new file mode 100644
index 000000000..00e14d563
--- /dev/null
+++ b/1205/CH2/EX2.7.1/E2_7_1.sce
@@ -0,0 +1,11 @@
+F=800 // N , given force
+theta=145 // Degrees , angle with posiyive X axis
+
+theta=theta*%pi/180;// Conversion into radian
+
+Fx=F*sin(theta);//N, Horizontal component
+Fy=F*cos(theta);// N, Vertical Component
+
+printf("Horizontal component of F is %.2f N\n",Fx);
+printf("Vertial component of F is %.2f N\n",Fy);
+printf("We may write F as \n F = %.2f i + %.2f j",Fx,Fy);
diff --git a/1205/CH2/EX2.7.2/E2_7_2.sce b/1205/CH2/EX2.7.2/E2_7_2.sce
new file mode 100644
index 000000000..be8584648
--- /dev/null
+++ b/1205/CH2/EX2.7.2/E2_7_2.sce
@@ -0,0 +1,11 @@
+clc;
+F=300 // N , given force
+AB=sqrt(8^2+6^2);// m Length of AB
+cos_alpha=8/AB;
+sin_alpha=-6/AB;
+Fx=F*cos_alpha;//N, Horizontal component
+Fy=F*sin_alpha;// N, Vertical Component
+
+printf("Horizontal component of F is %.2f N\n",Fx);
+printf("Vertial component of F is %.2f N\n",Fy);
+printf("We may write F as \n F = %.2f i + %.2f j",Fx,Fy);
diff --git a/1205/CH2/EX2.7.3/E2_7_3.sce b/1205/CH2/EX2.7.3/E2_7_3.sce
new file mode 100644
index 000000000..964c1647b
--- /dev/null
+++ b/1205/CH2/EX2.7.3/E2_7_3.sce
@@ -0,0 +1,9 @@
+clc;
+//F=700N i +1500N j, given forc
+
+Fx=700;//N, Horizontal component
+Fy=1500;// N, Vertical Component
+tan_theta=Fy/Fx;
+theta=atan(tan_theta);// degrees , angle with +ve x axis
+F=Fy/sin(theta);// N
+printf("Magnitude of F is %.2f N\n",F);
diff --git a/1205/CH2/EX2.7/S_2_7.sce b/1205/CH2/EX2.7/S_2_7.sce
new file mode 100644
index 000000000..ff95faa36
--- /dev/null
+++ b/1205/CH2/EX2.7/S_2_7.sce
@@ -0,0 +1,30 @@
+
+clc;
+dx=-40;//m
+dy=80;//m
+dz=30;//m
+f=2500;//N, Mafnitude of force F
+d=sqrt(dx^2+dy^2+dz^2);//m, total distance of vector AB
+//F=f*lambda, lambda - unit vector= AB/d. So we can calculate each component by multiplying this unit vector
+Fx=f*dx/d;//N , X component of F
+Fy=f*dy/d;//N , Y component of F
+Fz=f*dz/d;//N , Z component of F
+
+printf("Component of F along X axis is %.2f N\n",Fx);
+printf("Component of F along Y axis is %.2f N\n",Fy);
+printf("Component of F along Z axis is %.2f N\n",Fz);
+printf("We may write F as \n F = %.2f i + %.2f j + %.2f k\n",Fx,Fy,Fz);
+
+thetax=acos(Fx/f);// radian , angle with +ve x axis
+thetay=acos(Fy/f);// radian , angle with +ve y axis
+thetaz=acos(Fz/f);// radian , angle with +ve z axis
+
+//Conversion of angles into degree
+thetax=thetax*180/%pi;//degree
+thetay=thetay*180/%pi;//degree
+thetaz=thetaz*180/%pi;//degree
+
+printf("Angle made by F with +ve X axis %.2f degree\n",thetax);
+
+printf("Angle made by F with +ve Y axis %.2f degree\n",thetay);
+printf("Angle made by F with +ve Z axis %.2f degree\n",thetaz);
diff --git a/1205/CH2/EX2.8/S_2_8.sce b/1205/CH2/EX2.8/S_2_8.sce
new file mode 100644
index 000000000..7cc58eae3
--- /dev/null
+++ b/1205/CH2/EX2.8/S_2_8.sce
@@ -0,0 +1,59 @@
+clc;
+T_AB=4200;//N , Tension in cable AB
+T_AC=6000;//N , Tension in cable AC
+// Vector AB=-(5m)i+(3m)j+(4m)k
+//Vector Ac= -(5m)i+(3m)j+(5m)k
+ABx=-5;//m
+ABy=3;//m
+ABz=4;//m
+ACx=-5;//m
+ACy=3;//m
+ACz=-5;//m
+
+AB=sqrt((-5)^2+3^2+4^2);//m, Magnitude of vector AB
+AC=sqrt((-5)^2+3^2+5^2);//m, Magnitude of vector AC
+//vT_AB=T_AB*lambdaAB, lambdaAB - unit vector= vAB/AB. So we can calculate each component by multiplying this unit vector
+T_ABx=T_AB*ABx/AB;//N , X component of T_AB
+T_ABy=T_AB*ABy/AB;//N , Y component of T_AB
+T_ABz=T_AB*ABz/AB;//N , Z component of T_AB
+
+printf("Component of T_AB along X axis is %.2f N\n",T_ABx);
+printf("Component of T_AB along Y axis is %.2f N\n",T_ABy);
+printf("Component of T_AB along Z axis is %.2f N\n",T_ABz);
+printf("We may write T_AB as \n T_AB = %.2f i + %.2f j + %.2f k\n",T_ABx,T_ABy,T_ABz);
+
+
+//vT_AC=T_AC*lambdaAC, lambdaAC - unit vector= vAC/AC. So we can calculate each component by multiplying this unit vector
+T_ACx=T_AC*ACx/AC;//N , X component of T_AC
+T_ACy=T_AC*ACy/AC;//N , Y component of T_AC
+T_ACz=T_AC*ACz/AC;//N , Z component of T_AC
+
+printf("Component of T_AC along X axis is %.2f N\n",T_ACx);
+printf("Component of T_AC along Y axis is %.2f N\n",T_ACy);
+printf("Component of T_AC along Z axis is %.2f N\n",T_ACz);
+printf("We may write T_AC as \n T_AC = %.2f i + %.2f j + %.2f k\n",T_ACx,T_ACy,T_ACz);
+
+Rx=T_ABx+T_ACx;//N ,X component of R
+Ry=T_ABy+T_ACy;//N ,Y component of R
+Rz=T_ABz+T_ACz;//N ,Z component of R
+
+printf("Component of R along X axis is %.2f N\n",Rx);
+printf("Component of R along Y axis is %.2f N\n",Ry);
+printf("Component of R along Z axis is %.2f N\n",Rz);
+printf("We may write R as \n R = %.2f i + %.2f j + %.2f k\n",Rx,Ry,Rz);
+
+R=sqrt(Rx^2+Ry^2+Rz^2);//N, Magnitude of resultant
+
+thetax=acos(Rx/R);// radian , angle with +ve x axis
+thetay=acos(Ry/R);// radian , angle with +ve y axis
+thetaz=acos(Rz/R);// radian , angle with +ve z axis
+
+//Conversion of angles into degree
+thetax=thetax*180/%pi;//degree
+thetay=thetay*180/%pi;//degree
+thetaz=thetaz*180/%pi;//degree
+
+printf("Angle made by R with +ve X axis %.2f degree\n",thetax);
+
+printf("Angle made by R with +ve Y axis %.2f degree\n",thetay);
+printf("Angle made by F with +ve Z axis %.2f degree\n",thetaz);