1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
{
"metadata": {
"name": "chapter 1.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 1:Coplanar Concurrent Force System"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Problem 1,Page No.3"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Declaration of Variables\n",
"\n",
"F1=1200 #N #Force1\n",
"F2=400 #N #Force2\n",
"\n",
"#Calculations\n",
"\n",
"theta=arctan(300*400**-1)*(180*pi**-1)\n",
"\n",
"#Components of F1\n",
"F1x=-F1*sin(theta*180**-1*pi) #N\n",
"F1y=-F1*cos(theta*180**-1*pi) #N\n",
"\n",
"#Components of F2\n",
"F2x=F2*cos(theta*180**-1*pi) #N\n",
"F2y=-F2*sin(theta*180**-1*pi) #N\n",
"\n",
"#Results\n",
"print\"Components of F1 is:F1x\",round(F1x,2),\"N\"\n",
"print\" :F1y\",round(F1y,2),\"N\"\n",
"print\"Components of F1 is:F2x\",round(F2x,2),\"N\"\n",
"print\" :F2y\",round(F2y,2),\"N\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Components of F1 is:F1x -720.0 N\n",
" :F1y -960.0 N\n",
"Components of F1 is:F2x 320.0 N\n",
" :F2y -240.0 N\n"
]
}
],
"prompt_number": 10
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Problem 1,Page No.4"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Declaration of Variables\n",
"\n",
"#Forces\n",
"F1=300 #N\n",
"F2=390 #N\n",
"F3=400 #N\n",
"\n",
"#Angles\n",
"theta1=30 #Degree\n",
"theta2=arctan(12*5**-1)*(180*pi**-1) #Degree\n",
"theta3=40 #Degree\n",
"\n",
"#Calculations\n",
"\n",
"#Components of F1\n",
"F1x=F1*cos(theta1*pi*180**-1) #N\n",
"F1y=-F1*sin(theta1*pi*180**-1) #N\n",
"\n",
"#Components of F2\n",
"F2x=-F2*cos(theta2*pi*180**-1) #N\n",
"F2y=F2*sin(theta2*pi*180**-1) #N\n",
"\n",
"#Components of F3\n",
"F3x=-F3*cos(theta3*pi*180**-1) #N\n",
"F3y=-F3*sin(theta3*pi*180**-1) #N\n",
"\n",
"#Result\n",
"print\"Components of F1 is:F1x\",round(F1x,2),\"N\"\n",
"print\" :F1y\",round(F1y,2),\"N\"\n",
"print\"Components of F2 is:F2x\",round(F2x,2),\"N\"\n",
"print\" :F2y\",round(F2y,2),\"N\"\n",
"print\"Components of F3 is:F2x\",round(F3x,2),\"N\"\n",
"print\" :F3y\",round(F3y,2),\"N\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Components of F1 is:F1x 259.81 N\n",
" :F1y -150.0 N\n",
"Components of F2 is:F2x -150.0 N\n",
" :F2y 360.0 N\n",
"Components of F3 is:F2x -306.42 N\n",
" :F3y -257.12 N\n"
]
}
],
"prompt_number": 14
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Problem 3,Page No.4"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Declaration of Variables\n",
"\n",
"#Forces\n",
"F1=20 #N\n",
"F2=60 #N\n",
"\n",
"theta1=20 #Degree\n",
"theta2=25 #Degree\n",
"\n",
"#Calculations\n",
"\n",
"#Resultant\n",
"\n",
"R=(F1**2+F2**2+2*F1*F2*cos(theta2*pi*180**-1))**0.5 #N\n",
"\n",
"X=(F1*(sin(theta2*180**-1*pi)))\n",
"Y=((F1+F2*(cos(theta2*pi*180**-1))))\n",
"alpha=arctan(X*Y**-1)*(180*pi**-1)\n",
"\n",
"#Inclination with x axis\n",
"alpha2=theta1+alpha\n",
"\n",
"#Result\n",
"print\"Resultant of two forces is\",round(alpha2,2),\"degree\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Resultant of two forces is 26.48 degree\n"
]
}
],
"prompt_number": 28
}
],
"metadata": {}
}
]
}
|