Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - which function can generate the coefficients of a polynomial
Author Message
  Post subject:  Re: which function can generate the coefficients of a polynomial  Reply with quote
Consult the manual. Singular provides the functions
coef
http://www.singular.uni-kl.de/Manual/la ... htm#SEC309
and
coeffs
http://www.singular.uni-kl.de/Manual/la ... htm#SEC310
Post Posted: Fri Apr 29, 2016 2:50 pm
  Post subject:  Re: which function can generate the coefficients of a polynomial  Reply with quote
I am not aware of any existing function but this might help,

proc pcoeffs(poly p)
{
list st;
for(int i=0;i<size(p);i++)
{
st=insert(st,leadcoef(p));
p=p-lead(p);
}
st=insert(st,leadcoef(p[size(p)]));
return(st);
}

Usage:
ring r = 0,x,dp;
> pcoeffs(3x3-2x+4);
[1]:
4
[2]:
-2
[3]:
3
Post Posted: Sun Apr 17, 2016 9:17 pm
  Post subject:  which function can generate the coefficients of a polynomial  Reply with quote
which function can generate the coefficients of a polynomial?
Post Posted: Sat Feb 20, 2016 4:44 am


It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group