function vi=virhe(app,m)
x=linspace(-2,2,m);
ap=cos(x)+(abs(x)).^0.5-polyval(app,x);
vi=max(abs(ap));