Singular https://www.singular.uni-kl.de/forum/ |
|
which function can generate the coefficients of a polynomial https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2520 |
Page 1 of 1 |
Author: | coeff [ Sat Feb 20, 2016 4:44 am ] |
Post subject: | which function can generate the coefficients of a polynomial |
which function can generate the coefficients of a polynomial? |
Author: | pankajsejwal [ Sun Apr 17, 2016 9:17 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 |
Author: | gorzel [ Fri Apr 29, 2016 2:50 pm ] |
Post subject: | Re: which function can generate the coefficients of a polynomial |
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 |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |