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


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

TraditionalForm vs OutputForm display of negative signs

Started byD Yong <darrylyong@gmail.com>
First post2011-09-16 09:55 +0000
Last post2011-09-16 09:55 +0000
Articles 1 — 1 participant

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


Contents

  TraditionalForm vs OutputForm display of negative signs D Yong <darrylyong@gmail.com> - 2011-09-16 09:55 +0000

#4998 — TraditionalForm vs OutputForm display of negative signs

FromD Yong <darrylyong@gmail.com>
Date2011-09-16 09:55 +0000
SubjectTraditionalForm vs OutputForm display of negative signs
Message-ID<j4v6e4$c8n$1@smc.vnet.net>
Does anyone have any suggestions about how to get TraditionalForm to
change the way it displays the negative sign in certain situations?

Here is a transcript of what I mean:

=========Using TraditionalForm as default output=========

In[1]:= -x^2 y - x y^2
Out[1]= x^2 (-y)-x y^2

In[2]:= -x^2 y + x y^2
Out[2]= x y^2-x^2 y

In[3]:= -x^2 y
Out[3]= -x^2 y

In[4]:= -2 x^2 y - x y^2
Out[4]= -2 x^2 y-x y^2

=========Using StandardForm as default output=========

In[1]:= -x^2 y - x y^2
Out[1]= -x^2 y - x y^2

In[2]:= -x^2 y + x y^2
Out[2]= -x^2 y + x y^2

In[3]:= -x^2 y
Out[3]= -x^2 y

In[4]:= -2 x^2 y - x y^2
Out[4]= -2 x^2 y - x y^2



I prefer to use TraditionalForm as it looks better, but I don't like
the way it handles the negative sign in this particular situation.
(Compare Output #1 above.)

If I use StandardForm as the default output and try to convert Out[1]
to TraditionalForm, it immediately converts to x^2(-y)-xy^2.

Any thoughts?

Thanks, Darryl

[toc] | [standalone]


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


csiph-web