Changeset 3985 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 06/30/10 15:12:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
r3904 r3985 53 53 private SymbolicExpressionTreeNode MacroExpand(SymbolicExpressionTreeNode root, SymbolicExpressionTreeNode node, IList<SymbolicExpressionTreeNode> argumentTrees) { 54 54 List<SymbolicExpressionTreeNode> subtrees = new List<SymbolicExpressionTreeNode>(node.SubTrees); 55 while (node.SubTrees.Count > 0) node. SubTrees.RemoveAt(0);55 while (node.SubTrees.Count > 0) node.RemoveSubTree(0); 56 56 if (node.Symbol is InvokeFunction) { 57 57 var invokeSym = node.Symbol as InvokeFunction; … … 214 214 } else { 215 215 var div = divSymbol.CreateTreeNode(); 216 div. SubTrees.Add(a);217 div. SubTrees.Add(b);216 div.AddSubTree(a); 217 div.AddSubTree(b); 218 218 return div; 219 219 } … … 270 270 } else { 271 271 var add = addSymbol.CreateTreeNode(); 272 add. SubTrees.Add(a);273 add. SubTrees.Add(b);272 add.AddSubTree(a); 273 add.AddSubTree(b); 274 274 MergeVariables(add); 275 275 return add;
Note: See TracChangeset
for help on using the changeset viewer.