MathGroup Archive 2012

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

Search the Archive

Re: Coefficient

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126547] Re: Coefficient
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Fri, 18 May 2012 05:26:29 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201205170810.EAA05070@smc.vnet.net>

series = a + b Cos[t] + c x[t] Cos[t];

Coefficient[series /. x[t] -> 0, Cos[t]]

b

Coefficient[series, Cos[t]] /. x[t] -> 0

b

CoefficientList[series, {Cos[t], x[t]}][[2, 1]]

b

Coefficient[Coefficient[series, Cos[t]], x[t], 0]

b


Bob Hanlon


On Thu, May 17, 2012 at 4:10 AM, J Jesus Rico-Melgoza
<ricomelgozajjesus at gmail.com> wrote:
>
> Dear members,
>
> I am using the function Coefficient[expr, form] in series such as
>
> x(t)=a+b Cos[t]+c x[t]Cos[t]
>
> I wonder if it is possible to force mathematica to find only the
> coefficient b when using
>
> series = a + b Cos[t] + c x[t] Cos[t]
>
> Coefficient[series, Cos[t]]
>
>
> Sol
>
> b + c x[t]
>
>
> Regards
>
>
> Jesus Rico-Melgoza
>



  • References:
    • Coefficient
      • From: J Jesus Rico-Melgoza <ricomelgozajjesus@gmail.com>
  • Prev by Date: Re: Partition string into length n chunks
  • Next by Date: Re: Partition Help
  • Previous by thread: Coefficient
  • Next by thread: Re: Coefficient