Tag Info

Hot answers tagged

1

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


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}, ...



Only top voted, non community-wiki answers of a minimum length are eligible