MathGroup Archive 2000

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

Search the Archive

Re: unexpected Simplify[] ouput


In a message dated 7/4/2000 3:38:57 PM, gorni at dimi.uniud.it writes:

>With Mathematica 4:
>
>7(-1 + a) (1 + a) // FullSimplify    gives  7(-1  + a^2)
>
>8(-1 + a) (1 + a) // FullSimplify    gives  8(-1 + a) (1 + a)

SetOptions[Simplify, ComplexityFunction -> LeafCount ];

7(-1 + a) (1 + a) // Simplify

7*(-1 + a^2)

8(-1 + a) (1 + a) // Simplify

8*(-1 + a^2)

b(-1 + a) (1 + a) // Expand // Simplify

(-1 + a^2)*b

SetOptions[Simplify, ComplexityFunction -> Automatic ];


Bob Hanlon


  • Prev by Date: Re: Why doesn't Log[ E^x ] = x ?
  • Next by Date: Division still cost more than multiplication?
  • Previous by thread: Re: unexpected Simplify[] ouput
  • Next by thread: Using Block instead of Module?