# Singular

 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
 Font size: Tiny Small Normal Large Huge Font colour [quote="gstic"]friends, I'm looking for a singular procedure to return a given monomial's coefficient of a polynomial. Example poly f = 2 x ^ 3 + 5z^3; test (f, x ^ 3) // --> 2 test (f, y ^ 3) // --> 0 who can help me?[/quote]
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 - monomial's coefficient
Author Message
 hannes
 Post subject: Re: monomial's coefficient
 Another possibility is 'coeffs'(http://www.singular.uni-kl.de/Manual/4-0-3/sing_271.htm)and a third one:Code:jet(f/x^3,0) Another possibility is 'coeffs'(http://www.singular.uni-kl.de/Manual/4-0-3/sing_271.htm)and a third one:[code]jet(f/x^3,0)[/code]
 Posted: Tue May 24, 2016 4:29 pm
 pankajsejwal
 Post subject: Re: monomial's coefficient
 There is 'coeffs' command for this.ring r = 0,(x,y,z),dp;poly f = 2 x ^ 3 + 5z^3;> coeffs(f,x);_[1,1]=-5z3 //coefficient of x^0_[2,1]=0 // coeff of x^1_[3,1]=0 // coeff of x^2 _[4,1]=2 // coeff of x^3If you need to extract a specific entry from this matrix, directly specify the position,> coeffs(f,x)[4,1]; //For x^32Similarly for other ring variables. It shouldn't be too difficult to convert it into a function. There is 'coeffs' command for this.ring r = 0,(x,y,z),dp;poly f = 2 x ^ 3 + 5z^3;> coeffs(f,x);_[1,1]=-5z3 //coefficient of x^0_[2,1]=0 // coeff of x^1_[3,1]=0 // coeff of x^2 _[4,1]=2 // coeff of x^3If you need to extract a specific entry from this matrix, directly specify the position,> coeffs(f,x)[4,1]; //For x^32Similarly for other ring variables. It shouldn't be too difficult to convert it into a function.
 Posted: Tue May 24, 2016 7:49 am
 gstic
 Post subject: monomial's coefficient
 friends, I'm looking for a singular procedure to return a given monomial's coefficientof a polynomial.Example poly f = 2 x ^ 3 + 5z^3;test (f, x ^ 3) // --> 2 test (f, y ^ 3) // --> 0who can help me? friends, I'm looking for a singular procedure to return a given monomial's coefficientof a polynomial.Example poly f = 2 x ^ 3 + 5z^3;test (f, x ^ 3) // --> 2 test (f, y ^ 3) // --> 0who can help me?
 Posted: Mon May 23, 2016 9:36 pm

 It is currently Wed Oct 17, 2018 3:33 pm