MathGroup Archive 1997

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

Search the Archive

Re: Bug in Coefficient function?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg6888] Re: [mg6831] Bug in Coefficient function?
  • From: Richard Finley <trfin at fiona.umsmed.edu>
  • Date: Fri, 25 Apr 1997 02:31:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Jay,

The coefficient of 2*t^(2+s) + 3*t^s =  (3 + 2*t^2) * t^s   

IS  (3 + 2*t^2 )

with respect to the term t^s, so there is no error.

regards,  RF


At 02:33 AM 4/22/97 -0400, you wrote:
>Is the following behavior for the Coefficient function a bug
>in Ver3.0? It worked fine in Ver2.2.
>
>
>In[3]:=
>Coefficient[2*t^(2 + s) + 3*t^s, t^s]
>
>Out[3]=
>3 + 2*t^2
>This is incorrect, it should be 3.  
>
>In[5]:=
>Coefficient[2*t^(2 + s) + 3*t^s, t^(2+s)]
>
>Out[5]=
>2
>This is correct.
>
>Any help on this would be appreciated!
>
>Thanks,
>
>Jay H. Wolkowisky
>
>
>



  • Prev by Date: Re: Re: Fitting Explicit Functions
  • Next by Date: Re: alternating sum
  • Previous by thread: Bug in Coefficient function?
  • Next by thread: passing arg to CompiledFunction array