Changed MathSimplifier.cs
Fixed a bug in the Equals method.