function xdot=logi(x);
xdot=x*(1-x);