Back to Forum | View unanswered posts | View active topics
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 |
 |
|
Consult the manual. Singular provides the functions [b]coef[/b] http://www.singular.uni-kl.de/Manual/latest/sing_270.htm#SEC309 and [b]coeffs[/b] http://www.singular.uni-kl.de/Manual/latest/sing_271.htm#SEC310
|
|
|
 |
Posted: Fri Apr 29, 2016 2:50 pm |
|
|
 |
|
|
Post subject: |
Re: which function can generate the coefficients of a polynomial |
 |
|
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
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
|
|
|
 |
Posted: Sun Apr 17, 2016 9:17 pm |
|
|
 |
|
|
Post subject: |
which function can generate the coefficients of a polynomial |
 |
|
which function can generate the coefficients of a polynomial?
which function can generate the coefficients of a polynomial?
|
|
|
 |
Posted: Sat Feb 20, 2016 4:44 am |
|
|
 |
|
|
It is currently Fri May 13, 2022 10:58 am
|
|