Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Extracting coefficients from multivar polynomials' topicStudent Support Forum > General > "Extracting coefficients from multivar polynomials"

Next Comment >Help | Reply To Topic
Author Comment/Response
03/22/12 10:52am

hi, I think my question is pretty basic, but I haven't been able to find anything online to help me. Here's the question. Say I have an expression:

f = x^2 + x^2*y

and i want to use mathematica to extract the coefficient for the x^2 term. If I use the command

Coefficient[f, x^2]

mathematica gives me 1+y, which is correct, but not what I wanted. I want the coefficient of only the x^2 term. Any ideas on how to get that? the actual expressions that I am dealing with are pretty complicated, but this is he crux of my problem. Thanks!

URL: ,

Subject (listing for 'Extracting coefficients from multivar polynomials')
Author Date Posted
Extracting coefficients from multivar polynomials James 03/22/12 10:52am
Re: Extracting coefficients from multivar polyn... Bill Simpson 03/25/12 5:50pm
Re: Extracting coefficients from multivar polyn... Forum Modera... 03/25/12 6:47pm
Next Comment >Help | Reply To Topic