home
PDF (letter size)
PDF (legal size)

## CAS simpliﬁcation comparison between Maple and Mathematica

May 10, 2012   Compiled on May 19, 2020 at 1:52am

### 1 introduction

#### 1.1 links to older version using Maple 11 and Mathematica 5.2

A detailed but older version that used Maple 11 and Mathematica 5.2 is here which contains images to each expression used.

#### 1.2 updated results using Maple 14 and Mathematica 8.04

This version only shows the ﬁnal result using an updated version of Mathematica and Maple, but does not show each expression generated. When I have more time I hope to also show those in this updated version.

For this version I used Mathematica 8.04 and Maple 14, both on windows 7. The PC is intel i7 930 @ 2.8 Ghz with 8 GB memory

This is the result of doing a simpliﬁcation measure on an expression using Maple and Mathematica using an expression posted on sci.math.symbolic by Dr Carlos.

The expression given in the original post can be found at http://sci4um.com/about26200.html

xnum = ((6-4*Sqrt[2])*Log[3-2*Sqrt[2]]+(3-2*Sqrt[2])*Log[17-12*Sqrt[2]]+32-24*Sqrt[2]);
xden = (48*Sqrt[2]-72)*(Log[Sqrt[2]+1]+Sqrt[2])/3;

x    = xnum/xden;

The answer is x = 1

Where $$x$$ is the following expression

and in expanded form

Using $$x$$ as shown above , the function Expand[] in Mathematica and expand() in Maple are then applied to $$x,x^2,x^4,x^8,x^{16},x^{32}$$, then the result is fully simpliﬁed again, and the leaf count (measure of simplifcation) is compared to the original expression to obtain a measure of the system simpliﬁcation.

Mathematica has both Simplify[expr] and FullSimplify[expr] and Maple has simplify(expr,size) and simplify(expr). Here, I used only the simplify(expr,size) since LeafCount was used.

The tables below show the result of using both functions in each system.

The tables show the size of the expression before and after simpliﬁcation, the percentage in size reduction and the cpu time used.

### 2 results

#### 2.1 Mathematica

Source code used is

##### 2.1.1 using Simplify[]

When running the above code, using Simplify[], this is the result

##### 2.1.2 using FullSimplify[]

When running the above code, using FullSimplify[], this is the result

#### 2.2 Maple

##### 2.2.1 using LeafCount()

In maple, using with(MmaTranslator[Mma]) to access the function LeafCount().

Source code

Columns have the same meaning as above.

##### 2.2.2 using length()

Source code used is

Columns have the same meaning as above.

### 3 side-by-side

This shows Mathematica Simplify result against Maple simplify(expr,size) both using LeafCount.

 Maple 14 Mathematica 8.04

And this shows Mathematica FullSimplify result against Maple simplify(expr,size) both using LeafCount.

 Maple 14 Mathematica 8.04