Re: Bug in Coefficient[ ]
- To: mathgroup at smc.vnet.net
- Subject: [mg16348] Re: Bug in Coefficient[ ]
- From: Bart De Boeck <deboeck at ruca.ua.ac.be>
- Date: Thu, 11 Mar 1999 02:16:32 -0500
- Organization: UA-Ruca
- References: <7bt48t$n23@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Mahoro, Coefficient needs a polynomial as input. I checked x[1]*x[2]^2 with PolynomialQ[x[1]*x[2]^2,x[1]*x[2]] and mathematica replies with General::"ivar": x[1]*x[2] is not a valid variable. I suppose this means that your 'function' is no polynomial for mathematica. regards, Bart Mahoro Shimura wrote: > Does anyone know why Coefficient[ ] does not work in > the follwing case? > > In[1]:= Coefficient[x[1]*x[2]^2,x[1]*x[2]^2] > > Out[1]= 0 > > Of course, this value must be 1. > > (I use Matematica Ver.3.0 for SPARC.) > > Thanks, > Mahoro Shimura > e-mail:shimshim at mse.waseda.ac.jp