pgcd = bezout(p1,p2) => wrong error message about the number of expected argouts.
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
If we specify only one argout for bezout(), the error message is wrong:
x = poly(0,'x');
p1 = (x+1)*(x-3)^5;
p2 = (x-2)*(x-3)^3;
pgcd = bezout(p1,p2)
--> pgcd = bezout(p1,p2)
bezout: Wrong number of output argument(s): 2 to 3 expected.
Actually,
a) only the syntax [pgcd,U] = bezout(p1,p2) is documented. So 3 argouts are impossible.
b) we don't see why it should not be possible to get only the PGCD
ERROR LOG:
----------
See above.
HOW TO REPRODUCE THE BUG:
-------------------------
x = poly(0,'x');
p1 = (x+1)*(x-3)^5;
p2 = (x-2)*(x-3)^3;
pgcd = bezout(p1,p2)
OTHER INFORMATION:
------------------
Up to Scilab 5.5.2, the error message was: "Incompatible output argument"