function y = getexp1(x) %--------------------------------- % Use getexp.m to evaluate % exp(x). Modify call for % positive and negative x. %--------------------------------- % Usage: y = getexp1(x) %--------------------------------- if (x >= 0); y = getexp(x); else; y = 1/getexp(-x); end;