Learning by trial and error differential