def findmin(x, v, dt): t = 0.0 while (t < 500): xnew, vnew = metodos.rungekutta2(quest11.a, x, v, dt) if xnew > x: return x x, v = xnew, vnew t += dt
def findmin(x,v,dt): t=0.0; while(t<500): xnew,vnew=metodos.rungekutta2(quest11.a,x,v,dt) if xnew>x: return x x,v=xnew,vnew t+=dt
def main(x,v,dt): t=0.0; while(t<3): print t,x,v x,v=metodos.rungekutta2(quest11.a,x,v,dt) t+=dt