MathGroup Archive 2012

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

Search the Archive

Re: Coefficient


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
>



  • 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