function [ d ] = DD2( x0, x1, y0, y1 )
%DD2 Compute the divided difference [x1 x0]
%   Input: data points x0,x1 and values y0, y1
%   Output: [x1 x0]

d = (y1-y0)/(x1-x0);

end

