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: [mg92488] Re: signs in the mathematica output
  • From: Simone Moriconi <simone.moriconi at eco.unipmn.it>
  • Date: Wed, 1 Oct 2008 18:33:41 -0400 (EDT)
  • References: <gbulqi$lcr$1@smc.vnet.net> <48E2FC19.1040300@gmail.com>

Thanks a lot for your help!

Simone

Jean-Marc Gulliet ha scritto:
> 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: how to generate a random serie with matrix condition
  • Next by Date: About FindRoot
  • Previous by thread: Re: signs in the mathematica output
  • Next by thread: Re: signs in the mathematica output