test_run("polynomials", "polelm") failed 16/20616/3
Adeline CARNIS [Tue, 13 Nov 2018 14:05:53 +0000 (15:05 +0100)]
Change-Id: Idb20a4f38cced8544a45d75f07a0dc35fda2c7fa

scilab/modules/cacsd/macros/gtild.sci

index d6ffa49..c672ac6 100644 (file)
@@ -95,7 +95,7 @@ function mpt=dp_tilde(mp)
     // mpt(i,j)= z^n*conj(mp(j,i))(1/z)
     [m,n]=size(mp),z=varn(mp)
     //max degree
-    nmax=max(0,degree(mp));
+    nmax=max([0;degree(mp(:))]);
     for i=1:m
         for j=1:n
             mpt(j,i)=poly(coeff(conj(mp(i,j)),nmax:-1:0),z,"c")