Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4717
| From | HOANG <hoangnhuy83@yahoo.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Mathematica collect function, |
| Date | 2011-09-03 12:09 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j3t5ec$583$1@smc.vnet.net> (permalink) |
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
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web