Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10131
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Coefficient |
| Date | 2012-05-18 09:28 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jp54om$gp8$1@smc.vnet.net> (permalink) |
| 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@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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Coefficient Bob Hanlon <hanlonr357@gmail.com> - 2012-05-18 09:28 +0000
csiph-web