function f = f321(x) % Izracun vrednosti funkcije x^3 + 2x^2 + 10x - 20 f = ((x+2).*x+10).*x-20;