%a script to plot the functions used in M126 HW2
%Brad Nelson 1/22/12

%functions
f1=@(x) sin(2*exp(x));
f2=@(x) (1+25*x.^2).^(-1);

xs=-1:0.002:1;
y1=f1(xs);
y2=f2(xs);

figure;
plot(xs,y1,'-');
print -depsc f1.eps;

figure;
plot(xs,y2,'-');
print -depsc f2.eps;