function [f,zc,hpos,hneg]=time_ev()
    //Modelo continuo
    function dx=f(x,d,t)
        dx=0;
        if d(1)>0.5 then
            dx(1)=-1-x(1);
        else
            dx(1)=1-x(1);
        end
    endfunction

    //Cruces por cero
    function y=zc(x,d,t)
        y=1-t;
    endfunction

    //Handler positivo
    function [xnew,dnew]=hpos(x,d,t,j)
        xnew=x;
        dnew=d;
    endfunction
    
    //Handler negativo
    function [xnew,dnew]=hneg(x,d,t,j)
        xnew=x;
        dnew=1;
    endfunction
 
endfunction
