Tag Info

New answers tagged

1

expr = aaa - 3 bbb + ccc + ddd - eee expr /. _?Negative :> 0 (* aaa + ccc + ddd *)


-1

a perfect answer directly from wolfram group: http://forums.wolfram.com/mathgroup/archive/1997/Aug/msg00052.html


1

I typically wouldn't respond to an attempt without at least some demonstrated code, but I happen to have a complete answer already coded up for my own purposes. F0 = Sqrt[2/4] IdentityMatrix[4]; F1 = {{0, 1, 0, 0}, {1, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0} }; F2 = {{0, -I, 0, 0}, {I, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0} }; F3 = {{1, 0, 0, 0}, ...



Top 50 recent answers are included