Problems with end velocity

dv of end velocity needs to be a function of dx.  In really close
together segs, it changes too quickly.  Close together segs need to have
smaller changes of velocity!