function y = fun(z)
n = 2;
x = 0.2;
for i = 1:n
    x = x*(1+z*x);
endfor
y = x-1;
end