


x = 0.5;
num_orders = 50

func = 1/(1-x);

test_vec_out = zeros(num_orders,1);
for i=1:num_orders
  test_vec_out(i) = eval_series(x, i);
end


h = figure;
hold all
grid on;
plot(1:num_orders,test_vec_out)
line ([0 num_orders], [func func], "linestyle", ":", "color", "r");
xlabel('Maclaurin series order')
ylabel('f(0.5)')
title('Eample 1: f(0.5) = 2')
saveas(h,'example1.png')