Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1990
*January
*February
*March
*April
*May
*June
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1990

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

Search the Archive

Coefficient

  • To: mathgroup at yoda.ncsa.uiuc.edu
  • Subject: Coefficient
  • From: cfcgf at ux1.cts.eiu.edu (Chuck Fleming)
  • Date: Sun, 9 Dec 90 10:43:06 CST

> I seem to be having a problem with the behaviour of Coefficient[] in
> Mathematica, namely if I have a series such as
>  
> sum = ... + a n + b + c/n +....
>  
> then Coefficient[sum,n] gives a, Coefficient[sum,1/n] gives c, but
> Coefficient[sum,1] does NOT give b, but zero instead! This is causing me
> problems, and I cannot see a simple work-around.

You might break up sum into two sums.  One with nonnegative powers of n and
one with negative powers of n.  Then Coefficient[posSum, n, i] will give the
coefficient of n^i including i=0. 

chuck fleming




  • Prev by Date: Coefficient[] bug?
  • Next by Date: D and sinh'; s/c vs. s*c^(-1).
  • Previous by thread: Coefficient[] bug?
  • Next by thread: Re: Coefficient