Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mathematica 8.0, obvious simplification missed, why?

I apologize beforehand if there’s an obvious answer, I’m not a user of Mathematica but I’m working on a borrowed laptop and that’s what I have available for the moment. For some reason Simplify and FullSimplify are missing obvious simplifications, for instance:

Simplify[1/2 (2/5 (x - y)^2 + 2/3 z)]

Yields:

1/2 (2/5 (x - y)^2 + (2 z)/3)

For some reason, it doesn't get rid of the 1/2 factor, try it yourself!

Of course I can do it manually but I have much bigger expressions with the same problem.

Am I missing something?

PS: This laptop has Mathematica 8.0

EDIT: FullSimplify works for the previous example but it doesn't for

FullSimplify[1/2 (2 (x - y)^2 + 2/5 (y - z)^2)]
like image 902
royalstream Avatar asked Dec 17 '22 04:12

royalstream


2 Answers

FullSimplify works for me:

In[693]:= Simplify[1/2 (2/5 (x - y)^2 + 2/3 z)]

Out[693]= 1/2 (2/5 (x - y)^2 + (2 z)/3)

In[694]:= FullSimplify[1/2 (2/5 (x - y)^2 + 2/3 z)]

Out[694]= 1/5 (x - y)^2 + z/3

In[695]:= $Version

Out[695]= "8.0 for Mac OS X x86 (64-bit) (October 5, 2011)"
like image 120
Cassini Avatar answered Dec 22 '22 17:12

Cassini


I don't know why Simplify misses this case, but FullSimplify helps out here:

FullSimplify[1/2 (2/5 (x - y)^2 + 2/3 z)]

gives:

Mathematica graphics

like image 38
Arnoud Buzing Avatar answered Dec 22 '22 18:12

Arnoud Buzing