%x=1;
%z1=2*sin(x+2)+3*log10(x^2)-(x^2+2)*(2-x)^3
%x=12;
%z2=2*sin(x+2)+3*log10(x^2)-(x^2+2)*(2-x)^3
%x=-17;
%z3=2*sin(x+2)+3*log10(x^2)-(x^2+2)*(2-x)^3

%teine lahendusviis
z=@(x)2*sin(x+2)+3*log10(x^2)-(x^2+2)*(2-x)^3;
vastus1=z(1)
vastus2=z(12)
vastus3=z(-17)


