- Timestamp:
- 04/23/21 18:26:45 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/TreeSimplifier.cs
r17820 r17963 784 784 } else if (IsExp(node)) { 785 785 return MakeExp(MakeProduct(node.GetSubtree(0), MakeConstant(2.0))); // sqr(exp(x)) = exp(2x) 786 } else if (IsSquare(node)) { 787 return MakePower(node.GetSubtree(0), MakeConstant(4)); 786 788 } else if (IsCube(node)) { 787 789 return MakePower(node.GetSubtree(0), MakeConstant(6)); … … 809 811 } else if (IsSquare(node)) { 810 812 return MakePower(node.GetSubtree(0), MakeConstant(6)); 813 } else if (IsCube(node)) { 814 return MakePower(node.GetSubtree(0), MakeConstant(9)); 811 815 } else { 812 816 var cubeNode = cubeSymbol.CreateTreeNode();
Note: See TracChangeset
for help on using the changeset viewer.