MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: signs in the mathematica output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92477] Re: signs in the mathematica output
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Wed, 1 Oct 2008 18:31:26 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <gbulqi$lcr$1@smc.vnet.net>

Simone Moriconi wrote:

> Hello everybody! I have a problem in using the Mathematica Package which is probably a bit stupid but very annoying when you have long expressions.. 
> 
> When I "FullSimplify" big equations, in the output the negative sign is always put aside i.e. if I do something like:
> 
> FullSimplify[(1-s)(1-a)]
> 
> I obtain 
> 
> (-1+s)(-1+a).
> 
> Which is very confusing with long and tedius expressions. Does anybody know a way to solve this problem?

You could use *TraditionalForm* or
*PolynomialForm[_, TraditionalOrder -> True]* as follows:

In[5]:= Simplify[(1 - s) (1 - a)]

Out[5]= (-1 + a) (-1 + s)

In[6]:= % // TraditionalForm

Out[6]= (a-1) (s-1)

In[7]:= PolynomialForm[%%, TraditionalOrder -> True]

Out[7]= (a-1) (s-1)

HTH,
-- Jean-Marc



  • Prev by Date: About FindRoot
  • Next by Date: Re: extracting contour points
  • Previous by thread: Re: signs in the mathematica output
  • Next by thread: Re: signs in the mathematica output