Returns the normalised polynomial with prescribed roots.
x | The vector of roots. |
return value | polynomial |
In comparison, the function polynWithRootsVal will not calculate the actual coefficients, hence is more efficient when small number of values are to be calculated.
x0 = [5,8,444,827];
unit = 1V
p = polynForRoots(x0*unit)
eps = (max(x0)-min(x0))/200;
x = (min(x0)-2*eps..eps..max(x0)+2*eps)*unit;
y = p.polynEval(#x);
plot(x,y)