The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to apply tags to expression terms?
Replies: 1   Last Post: Apr 16, 2013 4:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Bob Hanlon

Posts: 906
Registered: 10/29/11
Re: How to apply tags to expression terms?
Posted: Apr 16, 2013 4:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

You might get "better" results using a default output form of
TraditionalForm (Mathematica | Preferences=85 | Evaluation | Format type of
new output cells: | TraditionalForm) or apply it manually, e.g.,

(x^2 - 1)/(x + 1) // Simplify // TraditionalForm

x - 1

(x^2 - 1)/(x + 1) // Cancel // TraditionalForm

x - 1

Bob Hanlon

On Tue, Apr 16, 2013 at 12:35 AM, Alexei Boulbitch

> Dear Community members,
> I often see on this site an at the StackExchange the repeating questions
> of how to rearrange some expression, that Mathematica "likes" to keep in
> one form, but the user prefers another one. It is like in this trivial
> example:
> (x^2 - 1)/(x + 1) // Simplify
> that Mathematica returns -1+x, rather than x-1 that might be wished by th=

> user.
> I have seen many answers to this questions, and gave few mine. The proble=

> here is that the answers are non-universal: they strongly depend upon the
> expression in question. Besides, they require some additional programming=

> and the more complex is the formula to sort, the longer will be the part =
> the sorting code.
> It seems that the problem of sorting terms of analytic expressions in the
> desired order might be solved, if one could assign tags to the terms to b=

> sorted, and then sort the terms according to a specified list of such tag=
> Now comes my question, do you know how to apply tags to expression terms?
> I have seen an analogous functionality in the Presentation Master, the
> package of David Park. There, however, the tags are used to be assigned =

> sub expressions, the held part of the expression in question. David, is i=
> possible to assign tags to expressions that are not held?
> Thank you in advance.
> Alexei
> Alexei BOULBITCH, Dr., habil.
> IEE S.A.
> ZAE Weiergewan,
> 11, rue Edmond Reuter,
> L-5326 Contern, LUXEMBOURG
> Office phone : +352-2454-2566
> Office fax: +352-2454-3566
> mobile phone: +49 151 52 40 66 44
> e-mail:

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.