Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14206 > unrolled thread

Re: How to apply tags to expression terms?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-04-16 08:21 +0000
Last post2013-04-16 08:21 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to apply tags to expression terms? Bob Hanlon <hanlonr357@gmail.com> - 2013-04-16 08:21 +0000

#14206 — Re: How to apply tags to expression terms?

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-04-16 08:21 +0000
SubjectRe: How to apply tags to expression terms?
Message-ID<kkj1lo$1r$1@smc.vnet.net>
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
<Alexei.Boulbitch@iee.lu>wrote:

> 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=
e
> user.
>
> I have seen many answers to this questions, and gave few mine. The proble=
m
> 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 =
of
> 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=
e
> sorted, and then sort the terms according to a specified list of such tag=
s.
>
> 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 =
to
> sub expressions, the held part of the expression in question. David, is i=
t
> 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: alexei.boulbitch@iee.lu
>
>
>
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web