import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
F_A=20 #KN #Force at A
theta=60 #Degrees
alpha=30 #Degrees
L_BC=5 #m
#Calculations
#Length AB
L_AB=L_BC*cos(theta*pi*180**-1) #m
#Distance of line of action
x=1.25 #m
#Reactions
R_C=F_A*x*L_BC**-1 #KN
R_B=F_A-R_C #KN
#Force in AB & BC
F_AB=R_B*(sin(theta*pi*180**-1))**-1 #KN
F_BC=F_AB*cos(theta*pi*180**-1) #KN
#Force in AC & BC
F_AC=R_C*(sin(alpha*pi*180**-1))**-1 #KN
#Result
print"FOrces in members are:F_AB",round(F_AB,2),"KN"
print" :F_BC",round(F_BC,2),"KN"
print" :F_AC",round(F_AC,2),"KN"
print" :F_BC",round(F_BC,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
F_D=1 #KN
L_AD=5 #m #Length AD
L_AB=7.5 #m #Length AB
theta=60 #degrees
alpha=30 #Degrees
#Calculations
#REactions
R_B=L_AD*L_AB**-1 #KN
R_A=F_D-R_B #KN
#Forces
F_AC=R_A*(sin(alpha*pi*180**-1))**-1 #KN
F_AD=F_AC*cos(alpha*pi*180**-1) #KN
F_BC=R_B*(sin(alpha*pi*180**-1))**-1 #KN
F_BD=F_BC*(cos(alpha*pi*180**-1)) #KN
F_CD=1*(sin(theta*pi*180**-1))**-1
#Result
print"forces in members are:F_AC",round(F_AC,2),"KN"
print" :F_AD",round(F_AD,2),"KN"
print" :F_BC",round(F_BC,2),"KN"
print" :F_BD",round(F_BD,2),"KN"
print" :F_CD",round(F_CD,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
L_AB=5 #m #Length AB
theta=60 #Degrees
alpha=30 #Degrees
F_D=10 #KN
F_E=12 #KN
#Calculations
#Length
L_AC=L_AD=L_AB*(cos(theta*pi*180**-1)) #m
#Distance of line of action
x=1.25 #m
L_BC=L_AB-L_AD #m
L_BE=L_BC*cos(alpha*pi*180**-1) #m
#line of action
x2=1.875 #m
x3=3.125
#Reactions
R_B=(F_D*x+F_E*x3)*L_AB**-1 #KN
R_A=(F_D+F_E)-R_B #KN
#Forces
F_AD=F_E*(sin(theta*pi*180**-1))**-1 #KN
F_AC=F_AD*cos(theta*pi*180**-1) #KN
F_BE=F_D*(sin(alpha*pi*180**-1))**-1 #KN
F_BC=F_BE*cos(alpha*pi*180**-1) #KN
#After simplifying joint C we get
#F_CD=-F_CE
#after further simplifying
F_CE=20.784*2**-1 #KN
F_CD=F_CE #KN
F_ED=F_BE-(F_E*cos(theta*pi*180**-1)) #KN
#Result
print"forces in members are:F_AC",round(F_AC,2),"KN"
print" :F_AD",round(F_AD,2),"KN"
print" :F_BC",round(F_BC,2),"KN"
print" :F_BE",round(F_BE,2),"KN"
print" :F_CD",round(F_CD,2),"KN"
print" :F_CE",round(F_CE,2),"KN"
print" :F_ED",round(F_ED,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
L_GH=L_AG=L_HB=3 #m
L_FB=L_EH=L_DG=L_AC=4 #m
L_AB=9 #m
F_G=9 #KN
F_H=12 #KN
#Calculations
#Reactions
R_B=(F_G*L_AG+F_H*(L_AG+L_GH))*L_AB**-1 #KN
R_A=(F_G+F_H)-R_B #KN
#Joint C
#After resolving and simplifying we get
#cos(theta)=4*5**-1
#sin(theta)=3*4**-1
#Let cos(theta)=X
X=4*5**-1
Y=3*5**-1
#Forces
F_AC=R_A #KN
F_CG=R_A*X**-1 #KN
F_CD=F_CG*Y #KN
F_GD=-(F_G-F_CG*X)
F_GH=F_CG*Y
F_DH=1*X**-1 #KN
F_DE=F_GH+F_DH*Y
F_EF=F_DE #KN
F_HF=(F_H-F_GD)*X**-1
#Result
print"Forces in members are:F_AC",round(F_AC,2),"KN"
print" :F_CG",round(F_CG,2),"KN"
print" :F_CD",round(F_CD,2),"KN"
print" :F_GD",round(F_GD,2),"KN"
print" :F_GH",round(F_GH,2),"KN"
print" :F_DH",round(F_DH,2),"KN"
print" :F_DE",round(F_DE,2),"KN"
print" :F_EF",round(F_EF,2),"KN"
print" :F_HF",round(F_HF,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
F_D=1000 #N
L_AE=L_EF=L_FH=L_BH=1 #m
L_CH=2.25 #m
L=4 #m
#Calculations
#Reactions
#Let sin(theta)=0.6
#cos(theta)=0.8
#tan(theta)=0.75
#sin(theta)=X
#Cos(theta)=Y
#tan(theta)=Z
X=0.6
Y=0.8
Z=0.75
R_B=F_D*L**-1 #KN
R_A=F_D-R_B #KN
#Forces
F_AD=R_A*X**-1 #KN
F_AE=F_AD*Y #KN
F_EF=F_AE #KN
#After dimplifying And further resolving we get
F_DG=833.34*2**-1 #KN
F_DF=416.66+416.67
F_FG=F_DF*X #KN
F_FH=F_D-F_DF*Y
#Result
print"Forces in the members are:F_DG",round(F_DG,2),"KN"
print" :F_DF",round(F_DF,2),"KN"
print" :F_FG",round(F_FG,2),"KN"
print" :F_FH",round(F_FH,2),"KN"
print" :F_AD",round(F_AD,2),"KN"
print" :F_AE",round(F_AE,2),"KN"
print" :F_EF",round(F_EF,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
theta=60
alpha=30
F_C=1000 #N
#Calculations
#Force CD
F_CD=F_C*(sin(theta*pi*180**-1))**-1 #N
#Force CA
F_CA=F_CD*cos(theta*pi*180**-1) #N
#FOrce AD
F_AD=F_CD*cos(alpha*pi*180**-1)*(cos(alpha*pi*180**-1))**-1 #N
#Force BD
F_BD=F_AD*sin(alpha*pi*180**-1)+F_CD*sin(alpha*pi*180**-1) #N
#Result
print"Forces in members are:F_CD",round(F_CD,2),"N"
print" :F_CA",round(F_CA,2),"N"
print" :F_AD",round(F_AD,2),"N"
print" :F_BD",round(F_BD,2),"N"
import math
#Initilization of Variables
#LEt tan(theta)=X
#cos(theta)=Y
#sin(theta)=Z
L_EC=5
F_B=F_C=1000 #N
X=3*4**-1
Y=0.8
Z=0.6
#Calculations
#Force CD
F_CD=F_B*Z**-1 #N
#Force CB
F_CB=F_CD*Y
#Force BD
F_BD=F_B #N
#Force BA
F_BA=F_CB #N
#in joint D,resolving forces we get
#F_AD+F_ED=3333.32 .........1
#After further simplifying we get
#F_ED-F_AD=1666.66 .............2
#Froce ED
F_ED=4999.98*2**-1 #N
#Force AD
F_AD=3333.32-F_ED #N
#Result
print"Forces in the members are:F_CD",round(F_CD,2),"N"
print" :F_CB",round(F_CB,2),"N"
print" :F_BD",round(F_BD,2),"N"
print" :F_BA",round(F_BA,2),"N"
print" :F_AD",round(F_AD,2),"N"
import math
#Initilization of Variables
F_D=12 #KN #Force at D
F_C=18 #KN
L_AC=2 #m
L_CB=2 #m
L_DC=1.5 #m
L_AB=4 #m
#Calculations
#Reactions
R_B=(F_C*L_AC+F_D*L_DC)*L_AB**-1 #KN
R_A=(F_C)-R_B #KN
#Let cos(theta)=X
#sin(theta)=Y
X=0.8
Y=0.6
#Forces
F_AD=R_A*Y**-1 #KN
F_AC=F_D+F_AD*X #KN
F_CD=F_AC
F_BC=F_AC #KN
F_BD=R_B*(Y)**-1 #KN
#Result
print"forces in members are:F_AC",round(F_AC,2),"KN"
print" :F_AD",round(F_AD,2),"KN"
print" :F_BC",round(F_BC,2),"KN"
print" :F_BD",round(F_BD,2),"KN"
print" :F_CD",round(F_CD,2),"KN"
import math
#Initilization of Variables
L_AF=L_FG=L_BG=4 #m
L_AB=12 #m
F_F=3 #KN
F_G=6 #KN
F_E=8 #KN
V=1.5 #m #Vertical Distance
#Calculations
#Reactions
R_B=(F_E*V+F_F*L_AF+F_G*(L_AF+L_FG))*L_AB**-1
R_A=(F_F+F_G)-R_B
#Let cos(theta)=X
#Sin(theta)=Y
X=0.8
Y=0.6
#Forces
F_CA=F_F*Y**-1 #KN
F_FA=F_CA*X+F_E #KN
F_CF=F_CA #KN
F_CD=(F_CA+F_CF)*X #KN
F_DF=(-F_CF*Y+F_F)*Y**-1 #KN
F_GF=F_FA+F_CF*X #KN
F_DE=F_CD #KN
F_GE=F_G*Y**-1 #KN
F_GB=F_GF-F_GE*X #KN
F_BE=F_GE #KN
#Result
print"Forces in the members are:F_CA",round(F_CA,2),"KN"
print" :F_FA",round(F_FA,2),"KN"
print" :F_CF",round(F_CF,2),"KN"
print" :F_CD",round(F_CD,2),"KN"
print" :F_DF",round(F_DF,2),"KN"
print" :F_GF",round(F_GF,2),"KN"
print" :F_DE",round(F_DE,2),"KN"
print" :F_GE",round(F_GE,2),"KN"
print" :F_GB",round(F_GB,2),"KN"
print" :F_BE",round(F_BE,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
theta=60 #DEgrees
alpha=30 #Degrees
L_AE=L_EF=L_FB=4 #m
L_AB=12 #m
F_A=1 #KN
F_C=2 #KN
F_D=1 #KN
#Calculations
L_AC=L_AE*cos(alpha*pi*180**-1) #m
L_AD=F_C*L_AC #m
#Reactions
R_B=(F_C*L_AC+F_A*L_AD+F_D*L_AE)*L_AB**-1
V=(F_A+F_C+F_D)*sin(theta*pi*180**-1)+1 #KN
H=(F_A+F_C+F_D)*cos(theta*pi*180**-1) #KN
R_A=V-R_B #KN
#Forces
F_AC=(R_A-(F_A*sin(theta*pi*180**-1)))*(sin(alpha*pi*180**-1))**-1
F_AE=F_C+F_AC*cos(alpha*pi*180**-1)-F_A*cos(theta*pi*180**-1) #KN
F_CD=F_AC
F_CE=F_C #KN
F_ED=F_C+(sin(theta*pi*180**-1))**-1 #KN
F_EF=F_AE-F_C*cos(theta*pi*180**-1)-F_ED*cos(theta*pi*180**-1)
F_FB=F_EF #KN
F_BG=R_B*(sin(alpha*pi*180**-1))**-1 #KN
F_GD=F_BG #KN
#Result
print"Forces in the members are:F_AC",round(F_AC,2),"KN"
print" :F_AE",round(F_AE,2),"KN"
print" :F_CD",round(F_CD,2),"KN"
print" :F_CE",round(F_CE,2),"KN"
print" :F_ED",round(F_ED,2),"KN"
print" :F_EF",round(F_EF,2),"KN"
print" :F_FB",round(F_FB,2),"KN"
print" :F_BG",round(F_BG,2),"KN"
print" :F_GD",round(F_GD,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
theta=60 #degrees
alpha=30 #degrees
beta=90 #degrees
L_AB=2.5 #m
L_BC=5 #m
F_A=20 #KN
#Calculations
#Reactions
R_C=(F_A*L_AB*cos(theta*pi*180**-1))*L_BC**-1 #kn
R_B=F_A-R_C
#Forces
F_AB=(R_B*L_BC)*(R_C*cos(alpha*pi*180**-1))**-1 #KN
F_BC=(L_AB*sin(theta*pi*180**-1))**-1*(R_B*L_AB*cos(theta*pi*180**-1))
#Result
print"Force in Members are:F_BA",round(F_AB,2),"KN"
print" :F_BC",round(F_BC,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
L_AC=L_AD=2.5 #m
L_BC=2.5 #m
L_AB=5 #m
theta=30 #Degrees
alpha=60 #degrees
F_D=10 #KN
F_E=12 #KN
#Calculations
L_BE=L_BC*cos(theta*pi*180**-1) #m
L_AD=L_AB*cos(alpha*pi*180**-1) #m
#Distance of Line of action of load 12 KN
x=L_AB-1.875 #m
#Reactions
R_B=(F_D*L_AC*2**-1+F_E*x)*L_AB**-1 #KN
R_A=(F_D+F_E)-R_B #KN
#Forces
F_BC=(R_B*L_BE*cos(theta*pi*180**-1))*(L_BE*sin(theta*pi*180**-1))**-1
F_EC=F_E*cos(theta*pi*180**-1) #KN
F_DE=-((F_E*(L_AC-L_BE*cos(theta*pi*180**-1)))-R_B*L_BC)*(L_AC*sin(theta*pi*180**-1))**-1
#Result
print"Reactions are:R_A",round(R_A,2),"KN"
print" :R_B",round(R_B,2),"KN"
print"Forces in the members are:F_BC",round(F_BC,2),"KN"
print" :F_EC",round(F_EC,2),"KN"
print" :F_DE",round(F_DE,2),"KN"
import math
#Initilization of Variables
#Lengths
L_AG=L_GH=L_HB=3
L_AB=9 #m
L_FB=L_EH=L_DG=L_AC=4 #m
#Forces
F_G=9 #KN
F_H=12 #KN
#Calculations
#Reactions
R_B=(F_G*L_AG+F_H*(L_AG+L_GH))*L_AB**-1
R_A=(F_G+F_H)-R_B #KN
#Forces
F_3=(R_A*L_AG)*L_AC**-1 #KN
F_1=(R_A*L_AG)*L_AC**-1 #KN
F_2=(F_3*L_AC-F_G*L_AG)*L_AG**-1
#Result
print"Reactions are:R_A",round(R_A,2),"KN"
print" :R_B",round(R_B,2),"KN"
print"Forces in Members are:F_1",round(F_1,2),"KN"
print" :F_2",round(F_2,2),"KN"
print" :F_3",round(F_3,2),"KN"
import math
from math import sin, cos, tan, radians, pi
import numpy as np
#Initilization of Variables
L_CH=5 #m
L_DE=4.5 #m
L_AE=L_EC=L_FB=4 #m
L_AB=16 #m
F=80 #KN
v=0.5 #m
#Calculations
#Reactions
R_B=F*(L_AE+L_EC+L_FB)*L_AB**-1 #m
R_A=F-R_B #KN
#Forces
F1=R_A*L_AE*L_DE**-1 #KN
theta=np.arctan(L_DE*L_EC**-1)*(180*pi**-1)
alpha=np.arctan(v*L_AE**-1)*(180*pi**-1) #Degrees
beta=alpha+theta #Degrees
L_CD=(L_DE**2+L_EC**2)**0.5 #m
L_CL=L_CD*sin(beta*pi*180**-1) #m
F3=R_A*(L_AE+L_EC)*L_CL**-1 #KN
F2=-(F3*sin(alpha*pi*180**-1)-R_A)*(sin(theta*pi*180**-1))**-1
#Result
print"Forces in Members are:F1",round(F1,2),"KN"
print" :F2",round(F2,2),"KN"
print" :F3",round(F3,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
L_EC=L_FD=L_BD=L_AC=L_OH=2 #m
L_AB=L_CD=L_EF=4 #m
F=20 #KN
H=20 #KN
theta=90
alpha=45
#Calculations
#Reactios
R_B=(H*L_EC+F*(L_FD+L_BD)+F*(L_AC+L_EC+L_OH))*L_AB**-1
R_A=0-R_B #KN
H_A=3*F #All horizontal Forces
#Forces
F_BD=(F*L_FD+F*(L_FD+L_BD))*L_AB**-1 #KN
F_AC=(F*L_FD+H*(L_OH+L_EC))*L_AB**-1
F_BG=(R_B-F_BD)*(cos(alpha*pi*180**-1))**-1 #KN
F_BA=F_BG*sin(alpha*pi*180**-1)
F_AG=(H_A-F_BA)*(cos(alpha*pi*180**-1))**-1
#Result
print"Forces in the Members are:F_BD",round(F_BD,2),"KN"
print" :F_AC",round(F_AC,2),"KN"
print" :F_BG",round(F_BG,2),"KN"
print" :F_BA",round(F_BA,2),"KN"
print" :F_AG",round(F_AG,2),"KN"
import math
from math import sin, cos, tan, radians, pi
#Initilization of Variables
F_E=F_A=F_D=1 #KN
F_C=2 #KN
L_AE=L_EF=L_FB=4 #m
L_AB=12 #m
theta=60
alpha=30 #degrees
#Calculations
L_AC=L_AE*cos(alpha*pi*180**-1)
L_AD=F_C*L_AC #m
#Reactions
R_B=(F_C*L_AC+F_A*L_AD+F_D*L_AE)*L_AB**-1
#Forces
F_DG=(R_B*L_AE)*(L_FB*sin(alpha*pi*180**-1))**-1
F_FE=R_B*cos(alpha*pi*180**-1)*(sin(alpha*pi*180**-1))**-1
F_DF=0 #KN
#Result
print"Force in members:DG",round(F_DG,2),"KN"
print" :FE",round(F_FE,2),"KN"
print" :DF",round(F_DF,2),"KN"