Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: '"Collect" function use' topicStudent Support Forum > General > Archives > ""Collect" function use"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Peter Pein
02/05/13 07:15am

Hi Bob,

there is no need to collect by powers of y:

In[1]:= poly=x+3 x^2+2 x^3-2 y+6 x y-5 x^2 y+8 x y^2-4 x^2 y^2;
c2=Coefficient[poly,y,2]
D[c2,x]
Out[2]= 8 x-4 x^2
Out[3]= 8-8 x

Have a look at the documentation for information about neat functions like CoefficientList or CoefficientArray!

Peter


URL: ,

Subject (listing for '"Collect" function use')
Author Date Posted
"Collect" function use Bob Stewart 02/04/13 2:47pm
Re: S. Saralamba 02/04/13 10:59pm
Re: Bill Simpson 02/05/13 00:52am
Re: Peter Pein 02/05/13 07:15am
< Previous CommentHelp | Reply To Comment | Reply To Topic