Timeline for Why can't I remove Orderless from Plus?
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 6, 2012 at 22:06 | vote | accept | VF1 | ||
| Nov 6, 2012 at 3:49 | comment | added | VF1 | @Rojo I find it interesting though, that after ClearAttributes[Plus, Orderless], MMA still returns 1+x even for Plus[x,1] input. | |
| Nov 6, 2012 at 3:45 | answer | added | VF1 | timeline score: 3 | |
| Nov 5, 2012 at 19:43 | history | tweeted | twitter.com/#!/StackMma/status/265539988077305856 | ||
| Nov 4, 2012 at 19:50 | comment | added | Rojo | Also, perhaps you would like wrapping your code in Module (or Block, depending on what you are doing) with Plus=plus, so you can use the + symbol at will. Module[{Plus = plus}, x + 1] | |
| Nov 4, 2012 at 19:49 | comment | added | Rojo | Yeah, that would work for 2 arguments, for more you can use Riffle. Row@Riffle[{##}, " + "] &. I would prefer using that as Format to plus more than as an ownvalue. Something like Format[plus[args__]] := Interpretation[HoldForm[Plus[args]], plus[args]] | |
| Nov 4, 2012 at 19:29 | comment | added | VF1 | @Rojo actually, don't worry about it. I figured it out. plus = Row[{#1, " + ", #2}] &; was what I was looking for: x~plus~1 // TraditionalForm gives exactly what I want. | |
| Nov 4, 2012 at 19:26 | comment | added | Rojo | What exactly are you trying to do? I see the problem but I don't understand the objective well enough to offer alternatives. Your suggested fix still makes x+1 turn into 1+x, right? | |
| Nov 4, 2012 at 19:18 | comment | added | VF1 | I found another solution, which is again not that great (as in it is super slow), but at least it gives me the results I want: Rasterize[TraditionalForm[a]]+Rasterize[TraditionalForm[b]] | |
| Nov 4, 2012 at 19:11 | history | edited | VF1 | CC BY-SA 3.0 | Clarification for an expected answer |
| Nov 4, 2012 at 19:01 | history | asked | VF1 | CC BY-SA 3.0 |