RE: polynomialsorting.html + tensor
- To: mathgroup at smc.vnet.net
- Subject: [mg45253] RE: [mg45237] polynomialsorting.html + tensor
- From: "Dr Andy D Kucar PEng" <ceo at radio4u.com>
- Date: Wed, 24 Dec 2003 04:35:54 -0500 (EST)
- Reply-to: <ceo at radio4u.com>
- Sender: owner-wri-mathgroup at wolfram.com
L&G This is a follow-up on someone else postings from 200304, and similar postings before 200304. In my recent posting below -----Original Message----- From: Dr Andy D Kucar PEng [mailto:ceo at radio4u.com] To: mathgroup at smc.vnet.net Subject: [mg45253] [mg45237] polynomialsorting.html + tensor the vital parts of the text, i.e., the Mathematica inputs and outputs were somehow lost in the process. I'll try again, please note, in my text-only email subscripts/superscripts are getting washed out, Thus // TeXForm {x_3}\,\left( -\left( {y_2}\,{z_1} \right) + {y_1}\,{z_2} \right) + {x_2}\,\left( {y_3}\,{z_1} - {y_1}\,{z_3} \right) + {x_1}\,\left( -\left( {y_3}\,{z_2} \right) + {y_2}\,{z_3} \right) and // TraditionalForm // TeXForm outputs are presented instead {x_3}\multsp ({y_1}\multsp {z_2}-{y_2}\multsp {z_1})+ {x_2}\multsp ({y_3}\multsp {z_1}-{y_1}\multsp {z_3})+ {x_1}\multsp ({y_2}\multsp {z_3}-{y_3}\multsp {z_2}) In this "subscript sorting" example ( the "superscript sorting" example follows bellow), on some occasions, it may be desirable/necessary to produce a form in the x1( )+x2( )+x3( ) order. In some respect, there is some similarity between this kind of polynomial/subscript/superscript sorting and the tensorial notation, etc. Is there some elegant way (better than [[1,1,1,2]]) to produce an x1( )+x2( )+x3( ) output, and generally, how to control/sort/manipulate the subscripts and superscripts? A "superscript sorting" example with derivatives follows f^{(0,0,2)}(x,y,z) + f^{(0,2,0)}(x,y,z) + f^{(2,0,0)}(x,y,z), f^{(0,0,4)}(x,y,z) + 2\,f^{(0,2,2)}(x,y,z) + f^{(0,4,0)}(x,y,z) + 2\,f^{(2,0,2)}(x,y,z) + 2\,f^{(2,2,0)}(x,y,z) + f^{(4,0,0)}(x,y,z) here, it looks like, the TraditionalForm does not help, at least not in my example. The TexForm does help, partially, but starts with z derivative, instead with x one. Following the traditional/math/book form, the highest derivative should be listed first, etc., a matter of personal taste, but on some occasions compatibility with existing books may enforce the order ... It would be nice and useful (my Holiday's wish list) to be able to have Options such as f(iv) fxxxx I/we recognize the difficulties with subscripts/superscripts in general, Including these cut-and-paste hiding/incompatibility games. Thanks. Sincerely Andy