import math
#initialisation
q = 0.2 # Uniform load intensity in K/ft
P = 14 # Concentrated load in k
Ra = 11 # Reaction at A from wquation of equilibrium
Rb = 9 # Reaction at B from wquation of equilibrium
#calculation
V = 11 - 14 - (0.2*15) # shear force in k
print "Shear force at section D", V, "k"
M = (11*15)-(14*6)-(0.2*15*7.5) # Bending moment in K-ft
print "Bending moment at section D", M, "k-ft"
V1 = -9+(0.2*15) # Shear firce from alternative method in k
M1 = (9*9)-(0.2*7.5*15) # Bending moment from alternative method in k-ft
import math
#initialisation
q = 1 # Uniform load intensity in k/ft
M0 = 12 # Couple in k-ft
Rb = 5.25 # Reaction at B in k
Rc = 1.25 # Reaction at C in k
b = 4 # Length of section AB in ft
#calculation
Mb = -(q*(b**2))/2 # Moment acting at B
#Result
print "Bending moment at B", Mb, "k-ft"