Tag Info

New answers tagged

0

Allways you can use pattern replace expr1 = a^2 - b + c*d expr2 = a - b expr3 = -a + b - c expr/. Times[-1, x_] :> Times[1, x] (* a^2 + b + c * d a + b a + b + c *)


4

You have found the snags and you're right -- it's a simple matter. You just need the right rules. For a pure symbolic expression you can use Kuba's suggestion. a^2 - b + c*d /. -1 -> 1 a^2 + b + c d For dealing with complex numbers you can use (1 - b I) a /. x_Complex /; Im[x] < 0 -> Conjugate[x] (1 + b I) a If your expressions are ...


1

Just to get it working: you need to read and fully grok the documentation for Manipulate... it explains in detail why constructs like this are used, and the changes in "expected" behaviors within Manipulate. f[dL1_List, dL2_List] := Module[{dL1SymList, dL2SymList}, dL1SymList = (Symbol["dL1" <> ToString[#]] &) /@ dL1; dL2SymList = ...



Top 50 recent answers are included