##Solutions to Problems In applied mechanics
##A N Gobby
import math
##initialisation of variables
R=24.4##tonf
x=9.7##ft
M=124.##tonf ft
h=5.##in
q=14.##in
w=20.##in
h1=6.##in
p=3.##in
g=10.#.#in
##CALCULATIONS
Ra=h*q/w##tonf
Mc=Ra*h1##tonf ft
Rb=p*h1/w*q ##tonf ft
RB=w*g-(2.*g**2/2.)##tonf ft
##RESULTS
print'%s %.2f %s'%('the tonf load alone= ',RB,' tonf ft')
##Solutions to Problems In applied mechanics
##A N Gobby
import math
##initialisation of variables
p=8.##ft
h=2.##tonf/ft
a=3.##tons/ft
b=11.##ft
w=b*h##tonf
##CALCULATIONS
S=(h*b**2/h)/p##tonf
R=w-S##tonf
x=R/h##ft
M=(R*x)-((h*(x**2))/h)##tonf ft
N=-(h*a**2/h)##tonf ft
##RESULTS
print'%s %.2f %s'%('the maximum bending moment occurs=',N,' tonf ft')