MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in Coefficient[ ]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16546] Re: [mg16283] Bug in Coefficient[ ]
  • From: "Dale Horton" <daleh>
  • Date: Tue, 16 Mar 1999 04:00:19 -0500
  • Organization: Wolfram Research, Inc.
  • References: <7c58m7$7lm@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

See

http://www.wolfram.com/support/Kernel/Symbols/System/Coefficient.html

I haven't tried it on your example, but I believe it will do the trick.

-Dale


Andrzej Kozlowski wrote in message <7c58m7$7lm at smc.vnet.net>...
>Your message has lead me to discover the weirdest thing I have ever seen
>since I started using Mathematica. I still can't believe my eyes when I
>see it:
>
>In[1]:=
>Coefficient[u*v^2,u*v^2]
>Out[1]=
>0
>
>In[2]:=
>Coefficient[v*u^2,v*u^2]
>Out[2]=
>1
>
>This is not a bug, this is black magic!
>
>
>On Sun, Mar 7, 1999, Mahoro Shimura <shimshim at mse.waseda.ac.jp> 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
>
>
>Andrzej Kozlowski
>Toyama International University
>JAPAN
>http://sigma.tuins.ac.jp/
>http://eri2.tuins.ac.jp/
>
>




  • Prev by Date: Re: Modulus Question
  • Next by Date: Re: Help with MathLink and Fortran
  • Previous by thread: Re: Bug in Coefficient[ ]
  • Next by thread: Re: Interfacing C++ code to Mathematica