MathGroup Archive 2004

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

Search the Archive

Re: GCD of a list of polynomial coefficient

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50244] Re: [mg50219] GCD of a list of polynomial coefficient
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 23 Aug 2004 06:34:06 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

p[x] = 5x+10;

k=CoefficientList[p[x], x];

GCD@@k

5

This is the same as

Apply[GCD, k]

5


Bob Hanlon

> 
> From: vsp at mycosmos.gr (John Vassiliou)
To: mathgroup at smc.vnet.net
> Date: 2004/08/21 Sat AM 03:04:21 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg50244] [mg50219] GCD of a list of polynomial coefficient
> 
> Dear Friends,
> 
> I wand to get a GCD of a list of polynomial coefficients but
> had no luck, i.e. p[x]=5x+10, k=CoefficientList[p[x],x]={5,10},
> GCD[k]={5,10}. No result. I cant remove the curly braces from
> GCD[{...}] in order GCD to work. please help
> 
> thanks
> 
> 


  • Prev by Date: Re: minimal power
  • Next by Date: Re: Simply derivative question, Math 5.
  • Previous by thread: Re: GCD of a list of polynomial coefficient
  • Next by thread: PDE with boundary condition ODE