% M3eP235to236.m
% Program on pages 234-235.
x1 = 0:0.01:3; y1 = 25*exp(0.5*x1);
y2 = 40*(1.7.^x1);
x2 = logspace(-1,1,500); y3 = 15*x2.^(0.37);
subplot(1,2,1),semilogy(x1,y1,x1,y2, '--'),...
    legend ('y = 25e^{0.5x}', 'y = 40(1.7) ^x'), ....
    xlabel('x'),ylabel('y'),grid,...
    subplot(1,2,2),loglog(x2,y3),legend('y = 15x^{0.37}'), ...
    xlabel('x'),ylabel('y'),grid
