Changeset 4238
- Timestamp:
- 08/17/10 08:08:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/SymbolicSimplifier.cs
r4226 r4238 502 502 private SymbolicExpressionTreeNode Invert(SymbolicExpressionTreeNode x) { 503 503 if (IsConstant(x)) { 504 ((ConstantTreeNode)x).Value = 1.0 / ((ConstantTreeNode)x).Value;504 return MakeConstant(1.0 / ((ConstantTreeNode)x).Value); 505 505 } else if (IsDivision(x)) { 506 506 Trace.Assert(x.SubTrees.Count == 2); … … 510 510 return MakeFraction(MakeConstant(1), x); 511 511 } 512 return x;513 512 } 514 513
Note: See TracChangeset
for help on using the changeset viewer.