function [value,isterminal,direction] = exer7e(t,y,Z,h6,state) value = y(4) - 0.1; isterminal = 1; direction = 0;