Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10131 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-05-18 09:28 +0000 |
| Last post | 2012-05-18 09:28 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Coefficient Bob Hanlon <hanlonr357@gmail.com> - 2012-05-18 09:28 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-05-18 09:28 +0000 |
| Subject | Re: Coefficient |
| Message-ID | <jp54om$gp8$1@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@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
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web