
function esempio(numero)

switch numero
    
    case 1
        
        xs=0:0.05:pi/2;
        x=0:0.01:pi/2;
        fxs=sin(xs)-0.5;
        fx=sin(x)-0.5;
        fax=abs(fx);
        gx=x.^3-2*x+0.75;
        gxs=xs.^3-2*xs+0.75;
        clf;
        hold on;
        
        plot(x,fax,'g-','LineWidth',2);
        plot(xs,fxs,'k.','LineWidth',2);
        plot(x,gx,'r-','LineWidth',2);
        % plot(xs,-gxs,'r.','LineWidth',2);
        plot(x,zeros(size(x)),'k-','LineWidth',1);
        
        hold off;
        
    case 2
        
            
            
    case 3
    x=-3:0.01:4;
    afx=abs(6*x.^2-13*x-15);
    gx=3-x;
    
    clf;
    hold on;
    
    plot(x,afx,'k-','LineWidth',2);
    plot(x,gx,'r-','LineWidth',2);
    
    hold off;
    
    
    
    
end