Re: Why do parentheses spuriously appear when I type in a formula?
- To: mathgroup at smc.vnet.net
- Subject: [mg34580] Re: [mg34410] Why do parentheses spuriously appear when I type in a formula?
- From: Andrzej Kozlowski <andrzej at platon.c.u-tokyo.ac.jp>
- Date: Wed, 29 May 2002 02:44:25 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I have not followed this discussion carefully but something has just occurred to me, which may perhaps be useful (though I suspect you have already considered this). I think you can partly solve your problem by evaluating: $Post = # /. Power[T_, a_] :> PrecedenceForm[Power[T, a], 1000] &; Now if you enter T Ctrl-^ a Ctrl-space Ctrl-_ b you will still get the parentheses but if you evaluate the expression they won't be there any longer. You can use in-place evaluation to get rid of parentheses in inputs, which I think is a little less tedious than removing the brackets. I can't think at the moment of any negative side effects. Andrzej On Saturday, May 18, 2002, at 04:51 PM, Carl K. Woll wrote: > Hi all, > > For some strange reason, I want to type into Mathematica an expression > that > should look like T^a_b, that is, the b subscript of T raised to the a > power. > My exact key strokes are T Ctrl-^ a Ctrl-space Ctrl-_ b. However, when I > enter this expression into mathematica, it adds (spuriously in my mind) > some > parentheses, so that I get (T^a)_b. I would like to know what causes > these > parentheses to be added, and if there is anything I can do to prevent > them > from appearing. What I have to do now is go back into the expression and > edit out the parentheses. > > Carl Woll > Physics Dept > U of Washington > > > > > Andrzej Kozlowski Toyama International University JAPAN http://platon.c.u-tokyo.ac.jp/andrzej/