first pass at dynamics_continuous.m