Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7247
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Bob Hanlon <hanlonr357@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Find the derised results |
| Date | Fri, 16 Dec 2011 10:50:21 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <jcf7pd$6md$1@smc.vnet.net> (permalink) |
| References | <201112150956.EAA23039@smc.vnet.net> |
| Lines | 47 |
| NNTP-Posting-Date | 16 Dec 2011 09:55:06 GMT |
| NNTP-Posting-Host | aa37dce4.news.twtelecom.net |
| X-Trace | DXC=hcT?cWWk^mWIQ@m7RATcWVC_A=>8kQj6]=_1NR_H?JP]FWL[9bk^=0^EFiONJ7[GoVSK@HHi27kO^ |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:7247 |
Show key headers only | View raw
expr = {x, y, z,
t}.{{x1, y1, z1, t1}, {x2, y2, z2, t2}, {x3, y3, z3, t3}, {x4, y4,
z4, t4}}.{x, y, z, t}
t (t t4 + t1 x + t2 y + t3 z) + x (x x1 + t x4 + x2 y + x3 z) +
y (x y1 + y y2 + t y4 + y3 z) + z (x z1 + y z2 + z z3 + t z4)
Coefficient[expr, x1] x1
x^2*x1
x1*CoefficientList[expr, x1] // Rest
{x^2*x1}
Cases[expr // Expand, _*x1]
{x^2*x1}
Select[expr // Expand, MemberQ[#, x1] &]
x^2*x1
Cases[expr // Expand, _?(MemberQ[#, x1] &)]
{x^2*x1}
Select[expr // Expand, ! FreeQ[#, x1] &]
x^2*x1
Cases[expr // Expand, _?(! FreeQ[#, x1] &)]
{x^2*x1}
Bob Hanlon
On Thu, Dec 15, 2011 at 4:56 AM, =E9=81=93 =E5=8E=9A <shlwell1988@gmail.com> wrote:
> {x,y,z,t}.{{x1,y1,z1,t1},{x2,y2,z2,t2},{x3,y3,z3,t3},{x4,y4,z4,t4}}.
> {x,y,z,t}
>
> How can I find those terms with x1 in the above result by some
> different methods?
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Find the derised results Bob Hanlon <hanlonr357@gmail.com> - 2011-12-16 10:50 +0000
csiph-web