function xp=Dog(t,x);
% DOG ODE right hand side modeling the dog hunts jogger problem
%   xp=Dog(t,x); computes the right hand side of the ODE modeling the
%   dog hunts the jogger problem at time t and position x.

w=10;
xi=[8*t; 0];
xp=w/norm(xi-x)*(xi-x);

