%uloha 124 A,B

load pocitace
% A) aproximace primkou
[yA,polynom,SA]=aprox_poly(r,p,1);
% B) aproximace parabolou
[yB,polynom,SB]=aprox_poly(r,p,2);

plot(r,p,'kx', r,yA,'r',r,yB,'m')