MathGroup Archive 2011

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

Search the Archive

Re: Mathematica collect function,

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121200] Re: Mathematica collect function,
  • From: Peter Pein <petsie at dordos.net>
  • Date: Sat, 3 Sep 2011 17:56:23 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j3t5ec$583$1@smc.vnet.net>

Am 03.09.2011 14:09, schrieb HOANG:
> Hi all, 
> 
> I would like to use the collect function for this:
> 
> (1 + 2 Z +  Z Z.U)^2 + (1 + 2 Z + Z Z.U) (Z (1 + Z) + Z.U (Z + Z Z.U)) + (1 + Z + Z.U + (Z.U)^2) (Z (1 + Z) + Z.U (Z + Z Z.U)) + (Z (1 + Z) + Z.U (Z + Z Z.U)) (Z (1 + Z.U) + Z.U (Z + (Z.U)^2))
> This is what I tried in Mathematica:
> 
> Collect[(1 + 2*Z + Z* Z*U)^2 + (1 + 2*Z + Z* Z*U)* (Z* (1 + Z) + Z*U* (Z + Z* Z*U)) + (1 + Z + Z*U + (Z*U)^2)* (Z *(1 + Z) + Z*U (Z + Z *Z*U)) + (Z* (1 + Z) + 
> Z*U* (Z + Z* Z*U)) *(Z* (1 + Z*U) + Z*U *(Z + (Z*U)^2), Z]
> 
> 
> But it does not work 
> However, it works when I tried this one:
> 
> Collect[(1 + Z)^2 + (1 + Z)*(Z + Z*Z*U) + (1 + Z*U)* (Z + Z*Z*U) + (Z +Z*Z*U)*(Z +(Z*U)^2) + Z *((1 + Z)^2 + (1 + Z*U)* (Z + Z* Z*U)) + Z*U *((1 + Z)* (Z + Z*Z*U) + (Z + Z* Z*U)* (Z + (Z*U)^2)), Z]
> 
> Someone knows why? thanks for your answer
> 

There is a closing parenthesis missing (just before the comma)





  • Prev by Date: Re: Quit versus Clear["Global`*"]
  • Next by Date: Re: Assembling PDFs into a PDF document?
  • Previous by thread: Mathematica collect function,
  • Next by thread: Re: Mathematica collect function,