This preview shows page 1. Sign up to view the full content.
Unformatted text preview: list_of_force_vectors.append(fnet) j = j+1 ##increment f.close() rinitial = vector(0.132,0.018,0) ball = sphere(pos=rinitial,radius = 0.1, color = color.blue) mball = .1 vball = vector(1.93,-1.38,0) deltat = .001 pball = vball*mball balltrail = curve(color=ball.color) b for fnet in list_of_force_vectors: rate(100) pball = pball + fnet*deltat ball.pos = ball.pos + (pball/mball)*deltat balltrail.append(pos=ball.pos) vfinal = pball/mball print 'final velocity =', vfinal rdis = ball.pos-rinitial; print 'position displacement =', rdis...
View Full Document
This note was uploaded on 09/12/2011 for the course PHYISCS 2211 taught by Professor Jarrio during the Spring '10 term at Georgia Institute of Technology.
- Spring '10