% Simple implementation of the exp() function w/o
% computing the x^i and the i! explicitely
% Minas Spetsakis, Feb. 2018

xx=2.3;

trm = 1.0;
expres = 1.0;

for i=1:100
    trm = trm*xx/i;
    expres = expres + trm;
end;
expres
