function f = logistic(x,r)
% logistic(x,r) defines the logistic map
% logistic(x,r) = rx(1-x)
f = r .* x .* (1-x);

