Kevin Ryde on Mon, 18 May 2020 08:55:26 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Efficient way to define and evaluate polynomial function
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Efficient way to define and evaluate polynomial function
- From: Kevin Ryde <user42_kevin@yahoo.com.au>
- Date: Mon, 18 May 2020 16:49:57 +1000
- Delivery-date: Mon, 18 May 2020 08:55:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1589784920; bh=sgn8OQLo81o7Zn2VwnhHdNzAPOm3MKa6RNsP9dUuuR4=; h=From:To:Subject:References:Date:In-Reply-To:From:Subject; b=WKcIxHm+L2LqP/qSXiQbodAajJtJBmT2mBZLCH+cUXYhQAOkE2dQNcdwXklntwwLRaDR5r7/EVcwLWqFPLWd9cutGvWrH+MMelJqws6RHDaiypzHaOu1rrvvl/fKPf/CGaCcO5v3Zp+Bhga93ncDMjA2OH6khvE21yfczy6hXuKokC/keSAXz2XowhHvAYZKdKMzDmA8qaWQoVpkwPGFSB4muaaRfh2m8uha09RRvgmKlMaydBahTGenXGmyR35K787pdi+HfJjuV0OvW147RE3tOZ0Ha1rZUUrOc3viUeqHEY0MEva8vA+4hTR/yivZtHtQexzwqn1RJJywo4WrNw==
- In-reply-to: <20200513174046.GD32054@yellowpig> (Bill Allombert's message of "Wed, 13 May 2020 19:40:46 +0200")
- Organization: Bah Humbug
- References: <001201d62946$ae0dd540$0a297fc0$@raulinfoissac.fr> <20200513174046.GD32054@yellowpig>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> writes:
>
> my(P=(2*n^6 + 6*n^5 + 5*n^4 - n^2)); sumn_5(n)=subst(P,'n,n)/12
Is an inline polynomial literal like 2*'n^6 + ... recognised by gp as a
constant? Or usually better P to ensure the object created only once?
Oh, and the same for smallish vectors or matrices?