% [Cut and paste these one liners to the command line.]
% ONELINERS
%     Relates to sections 1.1 and 1.2.
%
% What does each do?  How many operations are involved?


% next five relate to e^8.3:

N=40; k=1:N; fk=cumprod(k);

x=8.3; (1+sum(( x.^k )./fk ) - exp(x))/exp(x) % needs above

N=11; k=1:N; fk=cumprod(k);

e=exp(1); es=cumprod(e*(ones(1,8)));

(es(8)*(1+sum(( (.3).^k )./fk ) ) - exp(8.3))/exp(8.3)  % needs prev. two lines


% next three relate to x^2-2000x+5=0:

format long g, roots([1 -2000 5])'

[1000+sqrt(999995) 1000-sqrt(999995)]

[1000+sqrt(999995) 5/(1000+sqrt(999995))]

