// Question 1

function z=f(t,y)
    z=y+5*cos(5*t)*exp(t/2)-0.5*sin(5*t)*exp(t/2)
endfunction

// Question 2

function L=eulerE(f,y0,tf,dt)
    y=y0
    L=[y0]
    for i=1:(tf/dt)
        y = y + dt*f(i*dt,y)
        L=[L,y]
    end
endfunction


// Question 4

function y=g(t)
    y=sin(5*t).*exp(t/2)
endfunction
