14
if type(p)==16 then r=horner(p(2),x)./horner(p(3),x),return,end
16
p=horner(p(:),x);p=p(1):p(2):p(3)
19
if m==-1 then indef=%t,m=1,n=1,p=p+0;else indef=%f,end
26
rlk=coeff(plk,d)*ones(x); // for the case horner(1,x)
28
rlk=rlk.*x+coeff(plk,d-kk);
17
if m==-1 then indef=%t,m=1,n=1,p=p+0;else indef=%f,end
18
if m*n==1 then //special case for a single polynomial
21
for kk=degree(p):-1:1,r=r.*x+C(kk);end;
29
rlk=coeff(plk,d)*ones(x); // for the case horner(1,x)
31
rlk=rlk.*x+coeff(plk,d-kk);
38
if indef then r=r*eye(),end
40
r=horner(p(2),x)./horner(p(3),x),
42
r=horner(p(:),x);r=r(1):r(2):r(3)
34
if indef then r=r*eye(),end