bOn 2015-10-14 at 22:01 GMT+02:00 Bill Allombert wrote:
On Wed, Oct 14, 2015 at 09:35:37PM +0200, Loďc Grenié wrote:
> Package: pari
> Version: a68ecb0
>
>     Hello,
>
>     this is probably known but Pol() can create very nice objects.
>
> Pol([1,2,3],[4,5,6]~)
> Pol(['y],1)
>
>    Maybe _gtopoly could check the type of the arguments?

If you meant

? Pol([[1,2,3],[4,5,6]~])
%1 = [1,2,3]*x+[4,5,6]~

? Pol([matid(2),[1,2;3,4]])^2
%5 = [1,0;0,1]*x^2+[2,4;6,8]*x+[7,10;15,22]

I do not think this is a bug.  If anything, this is be useful for creating
FlxX.

     This is not really a bug but it can still create not very readable objects:

? f
%2 = (x,y)->x*y + 1
? type(f)
%3 = "t_POL"

   where f was created by

? f=Pol([(x,y)->x,1],'y)

     Anyway, I do not really mind, it's just that I was surprised when I applied
  Pol to a non-standard vector.

     Long life to FlxX !

            Loïc