Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4717 > unrolled thread

Mathematica collect function,

Started byHOANG <hoangnhuy83@yahoo.com>
First post2011-09-03 12:09 +0000
Last post2011-09-03 21:58 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Mathematica collect function, HOANG <hoangnhuy83@yahoo.com> - 2011-09-03 12:09 +0000
    Re: Mathematica collect function, Peter Pein <petsie@dordos.net> - 2011-09-03 21:58 +0000

#4717 — Mathematica collect function,

FromHOANG <hoangnhuy83@yahoo.com>
Date2011-09-03 12:09 +0000
SubjectMathematica collect function,
Message-ID<j3t5ec$583$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#4728

FromPeter Pein <petsie@dordos.net>
Date2011-09-03 21:58 +0000
Message-ID<j3u7v1$a96$1@smc.vnet.net>
In reply to#4717
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)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web