Kostas Patsakis on Thu, 22 May 2008 23:51:24 +0200

 problem with polynomials

• To: pari-users@list.cr.yp.to
• Subject: problem with polynomials
• From: "Kostas Patsakis" <kpatsak@gmail.com>
• Date: Fri, 23 May 2008 00:44:28 +0300
• Delivery-date: Thu, 22 May 2008 23:51:24 +0200
• Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=q26encfRThAz5b5kuWwTb3saYw5ZCq44/N0NS9ZNB1VTVGiUwyPtE/zBKCv7vr9HDxlX9aqI0I40OiDsWD8sPibrTssdBdVW2gWXVmMhrGEPmaJMDLR2GQU595S7xyB1WbSLjYSRhwM9PDFxPiMeZdDRNbpGbs2KTeRw/sYHxpU=
• Mailing-list: contact pari-users-help@list.cr.yp.to; run by ezmlm

```Hello,

I'm trying to use pari in order to set the coefficients of a
polynomials from a vector.
eg if the vector is [1 0 3] then f(x)=1+x^2
i tried something like this:
poly(t)=0*t;
for(cnt=1,len,{
poly(t)=poly(t)+t^(cnt-1)*a[cnt];})

but pari does not like it...
i keep getting ***   deep recursion: poly(t)

any ideas on how I can do it?

```