Physics Project

2870 days ago by bryansaggese

h1=140 # height of pyramid (m) s1=230 # base side length (m) d=22540 # force density of material used (N/m^3) y=20 # desired build time dpy=365 # days/year hpd=12 # hours/day bph=10 # blocks/hour dpb=1 # distance/block (m) wpb=250 # weight/block (N) f=h1*d*(s1*(h1-x)/h1)**2 f.integral(x) def area(a,b): h(x)=f.integral(x) w=(h(b)-h(a)).n() print 'Total Work = '+str(w) +' J' print 'Number of Workers Required = '+str((w/(y*dpy*hpd*bph*dpb*wpb)).n())+' workers' area(0,h1) 
       
Total Work = 7.79012453333333e12 J
Number of Workers Required = 35571.3449010654 workers
Total Work = 7.79012453333333e12 J
Number of Workers Required = 35571.3449010654 workers