MathGroup Archive 2009

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

Search the Archive

Re: Coefficient Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104049] Re: Coefficient Question
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Sat, 17 Oct 2009 07:01:51 -0400 (EDT)
  • References: <hb9jsr$k4$1@smc.vnet.net>

Scott wrote:

> I've got the expression
>
> 8(3+5k+4x1+6x2+45x3)
>
> and I want to extract the constant 24.
>
> Yes, I can define a function and then set k and x1 and x2 and x3 to 0
> but there has to be easier way, no?
>
> Any suggestions?
>
> Thanks much.
>
> Cheers, Scott
>

In this particular case you may use:

Select[Expand[expr],NumberQ]

-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Re: About binary relations
  • Next by Date: Re: Coefficient Question
  • Previous by thread: Re: Coefficient Question
  • Next by thread: Re: Coefficient Question