polynWithRootsVal(r, x)

Calculates the value of the normalised polynomial with prescribed roots at x.

rVector of roots
xThe polynomial is evaluated at this point.
return valueThe value of evaluation.

In comparison, the function polynForRoots constructs the actual polynomial.

x0 = [5,8,444,827]; eps = (max(x0)-min(x0))/200; x = min(x0)-2*eps..eps..max(x0)+2*eps; y = (@(x) polynWithRootsVal(x))(#x); plot(x,y)