Kostas Patsakis on Thu, 22 May 2008 23:51:24 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- 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
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=qGHWZXyPxnlrNEOPY0AHOmO7VC8O/npE5yEjM0DZDO0=; b=AUyfAqVVuksscvAsf5EC79DsjVKicAOEpmGKsXOjyU6FZtlu2/uDh7q0sX3VWwluyf4UrvPOfSEvW++PtkYF0Fwl04rzfCph40NItiMO0TD7dEbGHzWGnjHxckI7U++cnkiuxi+CVkBq5upb49vv8Q2Zebp7bLBWbVQ/45I+XdE=
- 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?